已删除4个文件
已重命名59个文件
已复制3个文件
已修改11个文件
已添加11个文件
ÎļþÃû´Ó Yw.Application.Curve.Core/1-pump-curve/1-mgr/PumpCurve_Controller.cs ÐÞ¸Ä |
| | |
| | | [HttpPut] |
| | | public bool UpdateCoordParas(UpdatePumpCoordParasInput input) |
| | | { |
| | | var bol = _service.UpdateCoordParas(input.ID, input.CoordParas, UserManager.UserID, DateTime.Now); |
| | | var bol = _service.UpdateCoordParas(input.ID, input.CoordParas); |
| | | return bol; |
| | | } |
| | | |
| | |
| | | [HttpPut] |
| | | public bool UpdateCurveExpress(UpdatePumpCurveExpressInput input) |
| | | { |
| | | var bol = _service.UpdateCurveInfo(input.ID, input.CurveExpress.Transfer(), UserManager.UserID, DateTime.Now); |
| | | var bol = _service.UpdateCurveInfo(input.ID, input.CurveExpress.Transfer()); |
| | | return bol; |
| | | } |
| | | |
| | |
| | | [HttpPut] |
| | | public bool UpdateReliabilityStatus(UpdateReliabilityStatusInput input) |
| | | { |
| | | var bol = _service.UpdateReliabilityStatus(input.ID, input.ReliabilityStatus, UserManager.UserID, DateTime.Now); |
| | | var bol = _service.UpdateReliabilityStatus(input.ID, input.ReliabilityStatus); |
| | | return bol; |
| | | } |
| | | |
ÎļþÃû´Ó Yw.Application.Curve.Core/9-tool/CurveTool_Controller.cs ÐÞ¸Ä |
| | |
| | | public List<CurvePoint> GeneralFitPointList([Required] CurveExpressToolInput input) |
| | | { |
| | | var fitHelper = new FitHelper(input.DefinePoints, input.FitType); |
| | | var pointNumber = ConfigHelper.PointNumber; |
| | | var pointNumber = Settings.CurveParasHelper.Curve.PointNumber; |
| | | if (input.PointNumber.HasValue) |
| | | { |
| | | pointNumber = input.PointNumber.Value; |
| | |
| | | var vm = new PumpCurveExpressToolOutput(); |
| | | |
| | | //æ¬ç¨ |
| | | var pointNumberQH = ConfigHelper.PointNumber; |
| | | var pointNumberQH = Settings.CurveParasHelper.Curve.PointNumber; |
| | | if (input.PointNumberQH.HasValue) |
| | | { |
| | | pointNumberQH = input.PointNumberQH.Value; |
| | |
| | | |
| | | //åç |
| | | var hasQP = false; |
| | | var pointNumberQP = ConfigHelper.PointNumber; |
| | | var pointNumberQP = Settings.CurveParasHelper.Curve.PointNumber; |
| | | if (input.PointNumberQP.HasValue) |
| | | { |
| | | pointNumberQP = input.PointNumberQP.Value; |
| | |
| | | |
| | | //æç |
| | | var hasQE = false; |
| | | var pointNumberQE = ConfigHelper.PointNumber; |
| | | var pointNumberQE = Settings.CurveParasHelper.Curve.PointNumber; |
| | | if (input.PointNumberQE.HasValue) |
| | | { |
| | | pointNumberQE = input.PointNumberQE.Value; |
| | |
| | | global using Yw.JWT; |
| | | global using Yw.Curve; |
| | | global using Yw.Model.Curve; |
| | | global using Yw.Dto; |
| | | global using Yw.Dto.Curve; |
| | |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2023-11-24T04:42:58.9596873Z;True|2023-11-24T11:01:27.7460883+08:00;True|2023-11-22T11:00:47.6114775+08:00;True|2023-11-15T09:32:40.8990513+08:00;True|2023-11-08T14:05:47.8074399+08:00;True|2023-11-08T13:33:00.5811678+08:00;True|2023-11-08T11:55:54.5929525+08:00;True|2023-11-07T11:05:59.7264456+08:00;True|2023-11-07T11:05:52.0532331+08:00;True|2023-10-24T23:17:54.0748672+08:00;True|2023-10-21T14:38:03.2722172+08:00;True|2023-09-26T14:10:22.2485377+08:00;True|2023-08-29T11:46:24.5710627+08:00;True|2023-08-23T11:34:59.7400481+08:00;True|2023-08-21T13:31:52.3074533+08:00;True|2023-08-18T16:51:57.4477528+08:00;True|2023-08-18T13:49:11.3231257+08:00;True|2023-08-17T14:51:49.8452519+08:00;True|2023-08-17T11:44:23.5001902+08:00;True|2023-08-16T17:43:46.8283841+08:00;True|2023-08-16T11:10:43.5110570+08:00;True|2023-08-15T16:51:35.3016945+08:00;True|2023-08-15T15:04:30.4334950+08:00;True|2023-08-10T15:23:57.4783701+08:00;True|2023-08-08T10:01:53.7466486+08:00;True|2023-08-07T11:49:59.7506144+08:00;True|2023-08-05T10:38:53.6104500+08:00;True|2023-08-02T15:25:21.6024349+08:00;True|2023-08-02T15:20:20.4985081+08:00;True|2023-08-02T13:31:18.6184059+08:00;True|2023-08-02T13:30:52.4975034+08:00;True|2023-08-02T13:29:34.9010019+08:00;True|2023-08-02T13:28:35.4729592+08:00;True|2023-07-25T15:08:42.3375388+08:00;True|2023-07-17T10:31:53.5181752+08:00;True|2023-07-17T10:31:44.6652344+08:00;True|2023-07-13T12:10:11.2591498+08:00;True|2023-05-25T18:02:16.3580168+08:00;True|2023-05-25T15:44:32.4909866+08:00;</History> |
| | | <History>True|2024-03-27T06:38:11.7362547Z;True|2023-11-24T12:42:58.9596873+08:00;True|2023-11-24T11:01:27.7460883+08:00;True|2023-11-22T11:00:47.6114775+08:00;True|2023-11-15T09:32:40.8990513+08:00;True|2023-11-08T14:05:47.8074399+08:00;True|2023-11-08T13:33:00.5811678+08:00;True|2023-11-08T11:55:54.5929525+08:00;True|2023-11-07T11:05:59.7264456+08:00;True|2023-11-07T11:05:52.0532331+08:00;True|2023-10-24T23:17:54.0748672+08:00;True|2023-10-21T14:38:03.2722172+08:00;True|2023-09-26T14:10:22.2485377+08:00;True|2023-08-29T11:46:24.5710627+08:00;True|2023-08-23T11:34:59.7400481+08:00;True|2023-08-21T13:31:52.3074533+08:00;True|2023-08-18T16:51:57.4477528+08:00;True|2023-08-18T13:49:11.3231257+08:00;True|2023-08-17T14:51:49.8452519+08:00;True|2023-08-17T11:44:23.5001902+08:00;True|2023-08-16T17:43:46.8283841+08:00;True|2023-08-16T11:10:43.5110570+08:00;True|2023-08-15T16:51:35.3016945+08:00;True|2023-08-15T15:04:30.4334950+08:00;True|2023-08-10T15:23:57.4783701+08:00;True|2023-08-08T10:01:53.7466486+08:00;True|2023-08-07T11:49:59.7506144+08:00;True|2023-08-05T10:38:53.6104500+08:00;True|2023-08-02T15:25:21.6024349+08:00;True|2023-08-02T15:20:20.4985081+08:00;True|2023-08-02T13:31:18.6184059+08:00;True|2023-08-02T13:30:52.4975034+08:00;True|2023-08-02T13:29:34.9010019+08:00;True|2023-08-02T13:28:35.4729592+08:00;True|2023-07-25T15:08:42.3375388+08:00;True|2023-07-17T10:31:53.5181752+08:00;True|2023-07-17T10:31:44.6652344+08:00;True|2023-07-13T12:10:11.2591498+08:00;True|2023-05-25T18:02:16.3580168+08:00;True|2023-05-25T15:44:32.4909866+08:00;</History> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | <Project Sdk="Microsoft.NET.Sdk"> |
| | | |
| | | <PropertyGroup> |
| | | <TargetFramework>net6.0</TargetFramework> |
| | | <ImplicitUsings>enable</ImplicitUsings> |
| | | <Nullable>disable</Nullable> |
| | | <RootNamespace>Yw.Application</RootNamespace> |
| | | <GenerateDocumentationFile>True</GenerateDocumentationFile> |
| | | <GeneratePackageOnBuild>True</GeneratePackageOnBuild> |
| | | <Version>1.0.7</Version> |
| | | <Description>åºç¨å级</Description> |
| | | </PropertyGroup> |
| | | <PropertyGroup> |
| | | <TargetFramework>net6.0</TargetFramework> |
| | | <ImplicitUsings>enable</ImplicitUsings> |
| | | <Nullable>disable</Nullable> |
| | | <RootNamespace>Yw.Application</RootNamespace> |
| | | <GenerateDocumentationFile>True</GenerateDocumentationFile> |
| | | <GeneratePackageOnBuild>True</GeneratePackageOnBuild> |
| | | <Version>3.0.0</Version> |
| | | <Description>åºç¨å级</Description> |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.jwt.core\1.0.1\contentFiles\any\net6.0\JWT.json"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.jwt.core\1.0.2\contentFiles\any\net6.0\JWT.json"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.service.assets.core\1.0.6\contentFiles\any\net6.0\paras_assets_settings.json"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.service.assets.core\1.0.7\contentFiles\any\net6.0\paras_assets_settings.json"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.service.health.core\1.0.0\contentFiles\any\net6.0\paras_health_settings.json"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.service.health.core\1.1.2\contentFiles\any\net6.0\paras_health_settings.json"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.service.monitor.core\1.1.4\contentFiles\any\net6.0\paras_monitor_settings.json"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.yitter.core\1.0.0\contentFiles\any\net6.0\paras_yitter_settings.json"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </Content> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.jwt.core\1.0.1\contentFiles\any\net6.0\JWT.json"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.jwt.core\1.0.2\contentFiles\any\net6.0\JWT.json"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.service.assets.core\1.0.6\contentFiles\any\net6.0\paras_assets_settings.json"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.service.assets.core\1.0.7\contentFiles\any\net6.0\paras_assets_settings.json"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.service.health.core\1.0.0\contentFiles\any\net6.0\paras_health_settings.json"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.service.health.core\1.1.2\contentFiles\any\net6.0\paras_health_settings.json"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.service.monitor.core\1.1.4\contentFiles\any\net6.0\paras_monitor_settings.json"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.yitter.core\1.0.0\contentFiles\any\net6.0\paras_yitter_settings.json"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </Content> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.Application.Core" Version="1.2.7" /> |
| | | <PackageReference Include="Yw.Quartz.Core" Version="1.0.0" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <Folder Include="2-pump-curve-mapping\2-std\" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <ProjectReference Include="..\Yw.Coordinate\Yw.Coordinate.csproj" /> |
| | | <ProjectReference Include="..\Yw.Service.Curve.Core\Yw.Service.Curve.Core.csproj" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.Application.Core" Version="3.0.1" /> |
| | | <PackageReference Include="Yw.Dto.Curve.Core" Version="3.0.0" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
| | |
| | | EndProject |
| | | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yw.Entry.Curve.Core", "Yw.Entry.Curve.Core\Yw.Entry.Curve.Core.csproj", "{7F9D6EB3-52FC-4E78-960C-CD6F726D0172}" |
| | | EndProject |
| | | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yw.Coordinate", "Yw.Coordinate\Yw.Coordinate.csproj", "{3EA3B1DA-2041-483A-9DDB-32A20377222E}" |
| | | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yw.Dto.Curve.Core", "Yw.Dto.Curve.Core\Yw.Dto.Curve.Core.csproj", "{17F3D647-3C7D-4DC5-8BC4-2370C2CBDE45}" |
| | | EndProject |
| | | Global |
| | | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
| | |
| | | {7F9D6EB3-52FC-4E78-960C-CD6F726D0172}.Debug|Any CPU.Build.0 = Debug|Any CPU |
| | | {7F9D6EB3-52FC-4E78-960C-CD6F726D0172}.Release|Any CPU.ActiveCfg = Release|Any CPU |
| | | {7F9D6EB3-52FC-4E78-960C-CD6F726D0172}.Release|Any CPU.Build.0 = Release|Any CPU |
| | | {3EA3B1DA-2041-483A-9DDB-32A20377222E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
| | | {3EA3B1DA-2041-483A-9DDB-32A20377222E}.Debug|Any CPU.Build.0 = Debug|Any CPU |
| | | {3EA3B1DA-2041-483A-9DDB-32A20377222E}.Release|Any CPU.ActiveCfg = Release|Any CPU |
| | | {3EA3B1DA-2041-483A-9DDB-32A20377222E}.Release|Any CPU.Build.0 = Release|Any CPU |
| | | {17F3D647-3C7D-4DC5-8BC4-2370C2CBDE45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
| | | {17F3D647-3C7D-4DC5-8BC4-2370C2CBDE45}.Debug|Any CPU.Build.0 = Debug|Any CPU |
| | | {17F3D647-3C7D-4DC5-8BC4-2370C2CBDE45}.Release|Any CPU.ActiveCfg = Release|Any CPU |
| | | {17F3D647-3C7D-4DC5-8BC4-2370C2CBDE45}.Release|Any CPU.Build.0 = Release|Any CPU |
| | | EndGlobalSection |
| | | GlobalSection(SolutionProperties) = preSolution |
| | | HideSolutionNode = FALSE |
| | |
| | | global using Yw.Newtonsoft; |
| | | global using MathNet.Numerics; |
| | | global using MathNet.Numerics; |
| | | global using System.Runtime.Serialization; |
| | | global using System.ComponentModel.DataAnnotations; |
| | | global using System.ComponentModel; |
| | | global using System.Text; |
| | | global using Yw.Model; |
| | | global using Yw.Untity; |
| | |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2023-11-24T04:41:35.1109248Z;True|2023-11-07T10:59:03.8484346+08:00;True|2023-09-22T13:16:35.5213053+08:00;True|2023-09-19T13:47:08.6616971+08:00;True|2023-09-19T13:42:42.1690038+08:00;True|2023-09-18T15:12:24.4129783+08:00;False|2023-09-18T15:11:19.1798407+08:00;True|2023-09-01T13:20:20.4261550+08:00;True|2023-09-01T11:08:43.5292206+08:00;True|2023-08-29T16:21:32.3346453+08:00;</History> |
| | | <History>True|2024-03-27T05:52:13.3065511Z;True|2023-11-24T12:41:35.1109248+08:00;True|2023-11-07T10:59:03.8484346+08:00;True|2023-09-22T13:16:35.5213053+08:00;True|2023-09-19T13:47:08.6616971+08:00;True|2023-09-19T13:42:42.1690038+08:00;True|2023-09-18T15:12:24.4129783+08:00;False|2023-09-18T15:11:19.1798407+08:00;True|2023-09-01T13:20:20.4261550+08:00;True|2023-09-01T11:08:43.5292206+08:00;True|2023-08-29T16:21:32.3346453+08:00;</History> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | <RootNamespace>$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace> |
| | | <GenerateDocumentationFile>True</GenerateDocumentationFile> |
| | | <ProduceReferenceAssembly>True</ProduceReferenceAssembly> |
| | | <Version>1.0.1</Version> |
| | | <Version>3.0.0</Version> |
| | | </PropertyGroup> |
| | | |
| | | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.Calculation.Core" Version="1.0.3" /> |
| | | <PackageReference Include="Yw.MathNet.Core" Version="1.0.0" /> |
| | | <PackageReference Include="Yw.Model.Core" Version="1.0.4" /> |
| | | <PackageReference Include="Yw.Calculation.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.MathNet.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.Untity.Core" Version="3.0.0" /> |
| | | </ItemGroup> |
| | | </Project> |
ÎļþÃû´Ó Yw.Application.Curve.Core/0-core/4-helper/ConfigHelper.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Curve |
| | | namespace Yw.Dto.Curve |
| | | { |
| | | internal class ConfigHelper |
| | | { |
ÎļþÃû´Ó Yw.Application.Curve.Core/0-core/2-extensions/Extensions.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Curve |
| | | namespace Yw.Dto.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/1-pump-curve/1-mgr/dto/AddPumpCurveInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æ·»å æ³µæ²çº¿ |
ÎļþÃû´Ó Yw.Application.Curve.Core/1-pump-curve/1-mgr/dto/PumpCurveDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æ³µæ²çº¿ |
ÎļþÃû´Ó Yw.Application.Curve.Core/1-pump-curve/1-mgr/dto/UpdatePumpCurveInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æ´æ°æ³µæ²çº¿ |
ÎļþÃû´Ó Yw.Application.Curve.Core/2-pump-curve-mapping/1-mgr/dto/AddPumpCurveMappingInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æ·»å æ³µæ²çº¿æ å° |
ÎļþÃû´Ó Yw.Application.Curve.Core/2-pump-curve-mapping/1-mgr/dto/PumpCurveMappingDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/2-pump-curve-mapping/1-mgr/dto/SetPumpWorkingCurveInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/2-pump-curve-mapping/1-mgr/dto/UpdatePumpCurveMappingInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æ´æ°æ³µæ²çº¿æ å° |
ÎļþÃû´Ó Yw.Application.Curve.Core/3-pump-curve-extension/1-mgr/dto/AddPumpCurveExMappingInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/3-pump-curve-extension/1-mgr/dto/PumpCurveExMappingDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/3-pump-curve-extension/1-mgr/dto/UpdatePumpCurveExMappingInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/9-tool/dto/CurveExpressToolInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/9-tool/dto/PumpCurveExpressToolInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/9-tool/dto/PumpCurveExpressToolOutput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/9-tool/dto/PumpCurvePointToolDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/0-core/3-dto/CurveIDInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Curve |
| | | namespace Yw.Dto.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/0-core/3-dto/PumpIDAndCurveIDInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Curve |
| | | namespace Yw.Dto.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/0-core/3-dto/UpdatePumpCoordParasInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Curve |
| | | namespace Yw.Dto.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/0-core/3-dto/UpdatePumpCurveExpressInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Curve |
| | | namespace Yw.Dto.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/0-core/3-dto/UpdateReliabilityStatusInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Curve |
| | | namespace Yw.Dto.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/0-core/3-dto/curve-info/CurveExpressDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Curve |
| | | namespace Yw.Dto.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/0-core/3-dto/curve-info/CurveExpressInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Curve |
| | | namespace Yw.Dto.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/0-core/3-dto/curve-info/PumpCurveExpressDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Curve |
| | | namespace Yw.Dto.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/0-core/3-dto/curve-info/PumpCurveExpressInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Curve |
| | | namespace Yw.Dto.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/0-core/3-dto/pumpid/PumpIDInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Curve |
| | | namespace Yw.Dto.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Curve.Core/0-core/3-dto/pumpid/PumpIdsInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Curve |
| | | namespace Yw.Dto.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
¶Ô±ÈÐÂÎļþ |
| | |
| | | global using System.ComponentModel.DataAnnotations; |
| | | global using System.Text; |
| | | global using Yw.Untity; |
| | | global using Yw.Curve; |
| | | global using Yw.Service.Curve; |
| | | global using Yw.Dto.Curve; |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <!-- |
| | | https://go.microsoft.com/fwlink/?LinkID=208121. |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <Configuration>Release</Configuration> |
| | | <Platform>Any CPU</Platform> |
| | | <PublishDir>bin\Release\net6.0\publish\</PublishDir> |
| | | <PublishProtocol>FileSystem</PublishProtocol> |
| | | </PropertyGroup> |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <!-- |
| | | https://go.microsoft.com/fwlink/?LinkID=208121. |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2024-03-27T06:33:53.0819704Z;</History> |
| | | </PropertyGroup> |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <Project Sdk="Microsoft.NET.Sdk"> |
| | | |
| | | <PropertyGroup> |
| | | <TargetFramework>net6.0</TargetFramework> |
| | | <ImplicitUsings>enable</ImplicitUsings> |
| | | <Nullable>disable</Nullable> |
| | | <Version>3.0.0</Version> |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.Dto.Core" Version="3.0.1" /> |
| | | <PackageReference Include="Yw.Service.Curve.Core" Version="3.0.0" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <_LastSelectedProfileId>D:\WorkData\模å\Code\Curve\Yw.Dto.Curve.Core\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId> |
| | | </PropertyGroup> |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Curve |
| | | { |
| | | internal class ConfigHelper |
| | | { |
| | | |
| | | /// <summary> |
| | | /// é»è®¤è¿æ¥é
ç½® |
| | | /// </summary> |
| | | internal static ConnectionConfig DefaultConnectionConfig |
| | | { |
| | | get |
| | | { |
| | | //SnowFlakeSingle.WorkId = Settings.SqlSugar.SnowFlakeWorkId; ä¸åæºå¨é
ç½®çå¯ä¸æ°å; // åæå¡å¨ä¸éè¦æå® |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.PostgreSQL,//æ°æ®åºç±»å |
| | | ConnectionString = CurveParasHelper.Curve.DataBase.PostgreSql.ConnectString, |
| | | IsAutoCloseConnection = true,//æ¯å¦èªå¨å
³é |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |
| | | //PgSqlIsAutoToLower = false //æ°æ®åºåå¨å¤§ååæ®µç ï¼éè¦æè¿ä¸ªè®¾ä¸ºfalse ï¼å¹¶ä¸å®ä½ååæ®µåç§°è¦ä¸æ · |
| | | }, |
| | | AopEvents = new AopEvents |
| | | { |
| | | OnLogExecuting = (sql, p) => |
| | | { |
| | | // var sqlString = UtilMethods.GetNativeSql(sql, p); |
| | | //LogHelper.Debug(sqlString); |
| | | // Console.WriteLine(sql); |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// PostgreSqlè¿æ¥é
ç½® |
| | | /// </summary> |
| | | internal static ConnectionConfig PostgreSqlConnectionConfig |
| | | { |
| | | get |
| | | { |
| | | //SnowFlakeSingle.WorkId = Settings.SqlSugar.SnowFlakeWorkId; ä¸åæºå¨é
ç½®çå¯ä¸æ°å; // åæå¡å¨ä¸éè¦æå® |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.PostgreSQL,//æ°æ®åºç±»å |
| | | ConnectionString = CurveParasHelper.Curve.DataBase.PostgreSql.ConnectString, |
| | | IsAutoCloseConnection = true,//æ¯å¦èªå¨å
³é |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |
| | | //PgSqlIsAutoToLower = false //æ°æ®åºåå¨å¤§ååæ®µç ï¼éè¦æè¿ä¸ªè®¾ä¸ºfalse ï¼å¹¶ä¸å®ä½ååæ®µåç§°è¦ä¸æ · |
| | | }, |
| | | AopEvents = new AopEvents |
| | | { |
| | | OnLogExecuting = (sql, p) => |
| | | { |
| | | // var sqlString = UtilMethods.GetNativeSql(sql, p); |
| | | //LogHelper.Debug(sqlString); |
| | | // Console.WriteLine(sql); |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// SQLiteè¿æ¥é
ç½® |
| | | /// </summary> |
| | | internal static ConnectionConfig SQLiteConnectionConfig |
| | | { |
| | | get |
| | | { |
| | | //SnowFlakeSingle.WorkId = Settings.SqlSugar.SnowFlakeWorkId; ä¸åæºå¨é
ç½®çå¯ä¸æ°å; // åæå¡å¨ä¸éè¦æå® |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.Sqlite,//æ°æ®åºç±»å |
| | | ConnectionString = CurveParasHelper.Curve.DataBase.SQLite.ConnectString, |
| | | IsAutoCloseConnection = true,//æ¯å¦èªå¨å
³é |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |
| | | //PgSqlIsAutoToLower = false //æ°æ®åºåå¨å¤§ååæ®µç ï¼éè¦æè¿ä¸ªè®¾ä¸ºfalse ï¼å¹¶ä¸å®ä½ååæ®µåç§°è¦ä¸æ · |
| | | }, |
| | | AopEvents = new AopEvents |
| | | { |
| | | OnLogExecuting = (sql, p) => |
| | | { |
| | | // var sqlString = UtilMethods.GetNativeSql(sql, p); |
| | | //LogHelper.Debug(sqlString); |
| | | // Console.WriteLine(sql); |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
ÎļþÃû´Ó Yw.Service.Curve.Core/1-entity/PumpCurve.cs ÐÞ¸Ä |
| | |
| | | /// æ³µæ²çº¿ |
| | | /// </summary> |
| | | [SugarTable("pump_curve")] |
| | | public class PumpCurve : BaseEntity, System.ICloneable |
| | | public class PumpCurve : BaseTraceEntity, System.ICloneable |
| | | { |
| | | |
| | | /// <summary> |
| | |
| | | this.CurveInfo = rhs.CurveInfo; |
| | | this.ReliabilityStatus = rhs.ReliabilityStatus; |
| | | this.InputTime = rhs.InputTime; |
| | | this.CreateTime = rhs.CreateTime; |
| | | this.CreateUserID = rhs.CreateUserID; |
| | | this.CreateUserName = rhs.CreateUserName; |
| | | this.UpdateTime = rhs.UpdateTime; |
| | | this.UpdateUserID = rhs.UpdateUserID; |
| | | this.UpdateUserName = rhs.UpdateUserName; |
| | | this.Description = rhs.Description; |
| | | } |
| | | |
| | |
| | | /// å½å
¥æ¶é´ |
| | | /// </summary> |
| | | public DateTime InputTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å建æ¶é´ |
| | | /// </summary> |
| | | public DateTime CreateTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å建人id |
| | | /// </summary> |
| | | public long CreateUserID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å建人åç§° |
| | | /// </summary> |
| | | public string CreateUserName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ´æ°æ¶é´ |
| | | /// </summary> |
| | | public DateTime? UpdateTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ´æ°äººid |
| | | /// </summary> |
| | | public long? UpdateUserID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ´æ°äººåç§° |
| | | /// </summary> |
| | | public string UpdateUserName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 说æ |
ÎļþÃû´Ó Yw.Service.Curve.Core/2-model/1-pump/PumpCurve.cs ÐÞ¸Ä |
| | |
| | | this.UpdateUserID = rhs.UpdateUserID; |
| | | this.UpdateUserName = rhs.UpdateUserName; |
| | | this.Description = rhs.Description; |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <summary> |
| | | /// åæ åæ° |
| | | /// </summary> |
| | | public string CoordParas { get; set; } |
| | | public string CoordParas { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ²çº¿ä¿¡æ¯ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Curve_DataBase |
| | | { |
| | | /// <summary> |
| | | /// æ°æ®åºç±»å |
| | | /// </summary> |
| | | public string DbType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¥å |
| | | /// </summary> |
| | | public Paras_Curve_DataBase_Factory Factory { get; set; } |
| | | |
| | | /// <summary> |
| | | /// PostgreSql |
| | | /// </summary> |
| | | public Paras_Curve_DataBase_PostgreSql PostgreSql { get; set; } |
| | | |
| | | /// <summary> |
| | | /// SQLite |
| | | /// </summary> |
| | | public Paras_Curve_DataBase_SQLite SQLite { get; set; } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Curve_DataBase_Factory |
| | | { |
| | | /// <summary> |
| | | /// æ¯å¦å¼å¯ç¼å |
| | | /// </summary> |
| | | public bool EnableCache { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¼åæ¶é´ï¼ç§ï¼ |
| | | /// </summary> |
| | | public int CacheTime { get; set; } |
| | | } |
| | | } |
copy from Yw.Service.Curve.Core/3-settings/paras/Paras_Curve_DataBase.cs
copy to Yw.Service.Curve.Core/03-settings/paras/Paras_Curve_DataBase_PostgreSql.cs
Îļþ´Ó Yw.Service.Curve.Core/3-settings/paras/Paras_Curve_DataBase.cs ¸´ÖÆ |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Curve_DataBase |
| | | public class Paras_Curve_DataBase_PostgreSql |
| | | { |
| | | /// <summary> |
| | | /// è¿æ¥å符串 |
| | | /// </summary> |
| | | public string ConnectString { get; set; } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
ÎļþÃû´Ó Yw.Service.Curve.Core/3-settings/paras/Paras_Curve_DataBase.cs ÐÞ¸Ä |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Curve_DataBase |
| | | public class Paras_Curve_DataBase_SQLite |
| | | { |
| | | /// <summary> |
| | | /// è¿æ¥å符串 |
| | | /// </summary> |
| | | public string ConnectString { get; set; } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.DAL |
| | | { |
| | | /// <summary> |
| | | /// æ³µæ²çº¿ |
| | | /// </summary> |
| | | public interface IPumpCurve : IBaseTraceDAL<Entity.PumpCurve> |
| | | { |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ´æ° CurveInfo |
| | | /// </summary> |
| | | bool UpdateCurveInfo(long ID, string CurveInfo); |
| | | |
| | | /// <summary> |
| | | /// æ´æ° CoordParas |
| | | /// </summary> |
| | | bool UpdateCoordParas(long ID, string CoordParas); |
| | | |
| | | /// <summary> |
| | | /// æ´æ°å¯ä¿¡åº¦ |
| | | /// </summary> |
| | | bool UpdateReliabilityStatus(long ID, int ReliabilityStatus); |
| | | |
| | | /// <summary> |
| | | /// éè¿ ID å é¤ åæ¶å 餿 å° |
| | | /// </summary> |
| | | bool DeleteExByID(long ID); |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.DAL |
| | | { |
| | | /// <summary> |
| | | /// æ³µæ²çº¿æ å° |
| | | /// </summary> |
| | | public interface IPumpCurveMapping : IBaseDAL<Entity.PumpCurveMapping>, IUpdateSorter |
| | | { |
| | | |
| | | |
| | | /// <summary> |
| | | /// æå
¥æå± |
| | | /// </summary> |
| | | long InsertEx(Entity.PumpCurve curveEntity, Entity.PumpCurveMapping mappingEntity); |
| | | |
| | | /// <summary> |
| | | /// æ´æ°æå± |
| | | /// </summary> |
| | | bool UpdateEx(Entity.PumpCurve curveEntity, Entity.PumpCurveMapping mappingEntity); |
| | | |
| | | /// <summary> |
| | | /// éè¿ PumpID è·å |
| | | /// </summary> |
| | | List<Entity.PumpCurveMapping> GetByPumpID(long PumpID); |
| | | |
| | | /// <summary> |
| | | /// éè¿ PumpIds è·å |
| | | /// </summary> |
| | | List<Entity.PumpCurveMapping> GetByPumpIds(List<long> PumpIds); |
| | | |
| | | /// <summary> |
| | | /// éè¿ CurveID è·å |
| | | /// </summary> |
| | | List<Entity.PumpCurveMapping> GetByCurveID(long CurveID); |
| | | |
| | | /// <summary> |
| | | /// æ´æ° OtherName |
| | | /// </summary> |
| | | bool UpdateOtherName(long ID, string OtherName); |
| | | |
| | | /// <summary> |
| | | /// æ´æ° IsWorking |
| | | /// </summary> |
| | | bool UpdateIsWorking(long ID, bool IsWorking); |
| | | |
| | | /// <summary> |
| | | /// è®¾ç½®å·¥ä½æ²çº¿ |
| | | /// </summary> |
| | | bool SetWorkingCurve(long ID, long PumpID); |
| | | |
| | | /// <summary> |
| | | /// éè¿ PumpID å é¤ |
| | | /// </summary> |
| | | bool DeleteByPumpID(long PumpID); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
ÎļþÃû´Ó Yw.Service.Curve.Core/4-dal/1-pump/PumpCurve.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.PostgreSql |
| | | { |
| | | /// <summary> |
| | | /// æ³µæ²çº¿ |
| | | /// </summary> |
| | | public partial class PumpCurve : BaseDAL<Entity.PumpCurve> |
| | | public partial class PumpCurve : BaseTraceDAL<Entity.PumpCurve> |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public override ConnectionConfig ConnectionConfig |
| | | { |
| | | get { return ConfigHelper.DefaultConnectionConfig; } |
| | | |
| | | get { return ConfigHelper.PostgreSqlConnectionConfig; } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ´æ° CurveInfo |
| | | /// </summary> |
| | | public bool UpdateCurveInfo(long ID, string CurveInfo, long UpdateUserID, DateTime UpdateTime) |
| | | public bool UpdateCurveInfo(long ID, string CurveInfo) |
| | | { |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | return db.Updateable<Entity.PumpCurve>() |
| | | .SetColumns(x => x.CurveInfo == CurveInfo) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == DateTime.Now) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID).ExecuteCommandHasChange(); |
| | | } |
| | | } |
| | |
| | | /// <summary> |
| | | /// æ´æ° CoordParas |
| | | /// </summary> |
| | | public bool UpdateCoordParas(long ID, string CoordParas, long UpdateUserID, DateTime UpdateTime) |
| | | public bool UpdateCoordParas(long ID, string CoordParas) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | return db.Updateable<Entity.PumpCurve>() |
| | | .SetColumns(x => x.CoordParas == CoordParas) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == DateTime.Now) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID).ExecuteCommandHasChange(); |
| | | } |
| | | } |
| | |
| | | /// <summary> |
| | | /// æ´æ°å¯ä¿¡åº¦ |
| | | /// </summary> |
| | | public bool UpdateReliabilityStatus(long ID, int ReliabilityStatus, long UpdateUserID, DateTime UpdateTime) |
| | | public bool UpdateReliabilityStatus(long ID, int ReliabilityStatus) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | return db.Updateable<Entity.PumpCurve>() |
| | | .SetColumns(x => x.ReliabilityStatus == ReliabilityStatus) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == DateTime.Now) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID).ExecuteCommandHasChange(); |
| | | } |
| | | } |
ÎļþÃû´Ó Yw.Service.Curve.Core/4-dal/1-pump/PumpCurveMapping.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.PostgreSql |
| | | { |
| | | /// <summary> |
| | | /// æ³µæ²çº¿æ å° |
| | |
| | | /// </summary> |
| | | public override ConnectionConfig ConnectionConfig |
| | | { |
| | | get { return ConfigHelper.DefaultConnectionConfig; } |
| | | get { return ConfigHelper.PostgreSqlConnectionConfig; } |
| | | } |
| | | |
| | | /// <summary> |
copy from Yw.Service.Curve.Core/4-dal/1-pump/PumpCurve.cs
copy to Yw.Service.Curve.Core/04-dal/03-sqlite/PumpCurve.cs
Îļþ´Ó Yw.Service.Curve.Core/4-dal/1-pump/PumpCurve.cs ¸´ÖÆ |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.SQLite |
| | | { |
| | | /// <summary> |
| | | /// æ³µæ²çº¿ |
| | | /// </summary> |
| | | public partial class PumpCurve : BaseDAL<Entity.PumpCurve> |
| | | public partial class PumpCurve : BaseTraceDAL<Entity.PumpCurve> |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public override ConnectionConfig ConnectionConfig |
| | | { |
| | | get { return ConfigHelper.DefaultConnectionConfig; } |
| | | |
| | | get { return ConfigHelper.SQLiteConnectionConfig; } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ´æ° CurveInfo |
| | | /// </summary> |
| | | public bool UpdateCurveInfo(long ID, string CurveInfo, long UpdateUserID, DateTime UpdateTime) |
| | | public bool UpdateCurveInfo(long ID, string CurveInfo) |
| | | { |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | return db.Updateable<Entity.PumpCurve>() |
| | | .SetColumns(x => x.CurveInfo == CurveInfo) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == DateTime.Now) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID).ExecuteCommandHasChange(); |
| | | } |
| | | } |
| | |
| | | /// <summary> |
| | | /// æ´æ° CoordParas |
| | | /// </summary> |
| | | public bool UpdateCoordParas(long ID, string CoordParas, long UpdateUserID, DateTime UpdateTime) |
| | | public bool UpdateCoordParas(long ID, string CoordParas) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | return db.Updateable<Entity.PumpCurve>() |
| | | .SetColumns(x => x.CoordParas == CoordParas) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == DateTime.Now) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID).ExecuteCommandHasChange(); |
| | | } |
| | | } |
| | |
| | | /// <summary> |
| | | /// æ´æ°å¯ä¿¡åº¦ |
| | | /// </summary> |
| | | public bool UpdateReliabilityStatus(long ID, int ReliabilityStatus, long UpdateUserID, DateTime UpdateTime) |
| | | public bool UpdateReliabilityStatus(long ID, int ReliabilityStatus) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | return db.Updateable<Entity.PumpCurve>() |
| | | .SetColumns(x => x.ReliabilityStatus == ReliabilityStatus) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == DateTime.Now) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID).ExecuteCommandHasChange(); |
| | | } |
| | | } |
copy from Yw.Service.Curve.Core/4-dal/1-pump/PumpCurveMapping.cs
copy to Yw.Service.Curve.Core/04-dal/03-sqlite/PumpCurveMapping.cs
Îļþ´Ó Yw.Service.Curve.Core/4-dal/1-pump/PumpCurveMapping.cs ¸´ÖÆ |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.SQLite |
| | | { |
| | | /// <summary> |
| | | /// æ³µæ²çº¿æ å° |
| | |
| | | /// </summary> |
| | | public override ConnectionConfig ConnectionConfig |
| | | { |
| | | get { return ConfigHelper.DefaultConnectionConfig; } |
| | | get { return ConfigHelper.SQLiteConnectionConfig; } |
| | | } |
| | | |
| | | /// <summary> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Service.Curve |
| | | { |
| | | /// <summary> |
| | | /// DALè¾
å©ç±» |
| | | /// </summary> |
| | | internal class DALCreateHelper |
| | | { |
| | | /// <summary> |
| | | /// å建DAL |
| | | /// </summary> |
| | | /// <typeparam name="T"></typeparam> |
| | | /// <returns></returns> |
| | | public static T CreateDAL<T>() |
| | | { |
| | | var dbType = Settings.CurveParasHelper.Curve.DataBase.DbType; |
| | | var enableCache = Settings.CurveParasHelper.Curve.DataBase.Factory.EnableCache; |
| | | var cacheTime = Settings.CurveParasHelper.Curve.DataBase.Factory.CacheTime; |
| | | return Yw.DALFactory.CreateDAL<T>(dbType, enableCache, cacheTime); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
ÎļþÃû´Ó Yw.Service.Curve.Core/5-service/1-pump-curve/PumpCurve.cs ÐÞ¸Ä |
| | |
| | | { |
| | | var all = PumpCurveCacheHelper.GetSet(() => |
| | | { |
| | | var dal = new DAL.PumpCurve(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurve>(); |
| | | var entityList = dal.GetAll(); |
| | | var modelList = Entity2Models(entityList); |
| | | if (modelList == null) |
| | |
| | | //éè¿ ID æ´æ°ç¼å |
| | | internal static void UpdateCache(long ID) |
| | | { |
| | | var dal = new DAL.PumpCurve(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurve>(); |
| | | var entityDb = dal.GetByID(ID); |
| | | var modelDb = Entity2Model(entityDb); |
| | | var all = GetCache(); |
| | |
| | | { |
| | | if (Ids == null || Ids.Count < 1) |
| | | return; |
| | | var dal = new DAL.PumpCurve(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurve>(); |
| | | var entityList = dal.GetByIds(Ids); |
| | | var modelList = Entity2Models(entityList); |
| | | var all = GetCache(); |
| | |
| | | public Model.PumpCurve GetByID(long ID) |
| | | { |
| | | var all = GetAll(); |
| | | return all.Find(x => x.ID == ID); |
| | | |
| | | return all.Find(x => x.ID == ID); |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// éè¿ ID è·å |
| | | /// </summary> |
| | |
| | | return default; |
| | | } |
| | | var entity = Model2Entity(model); |
| | | var dal = new DAL.PumpCurve(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurve>(); |
| | | var id = dal.Insert(entity); |
| | | if (id > 0) |
| | | { |
| | |
| | | { |
| | | return false; |
| | | } |
| | | var dal = new DAL.PumpCurve(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurve>(); |
| | | var entity_list = Model2Entities(list); |
| | | var ids = dal.InsertsR(entity_list); |
| | | if (ids != null && ids.Count > 0) |
| | |
| | | return false; |
| | | } |
| | | var entity = Model2Entity(model); |
| | | var dal = new DAL.PumpCurve(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurve>(); |
| | | var bol = dal.Update(entity); |
| | | if (bol) |
| | | { |
| | |
| | | return false; |
| | | } |
| | | var entity_list = Model2Entities(list.ToList()); |
| | | var dal = new DAL.PumpCurve(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurve>(); |
| | | var bol = dal.Updates(entity_list); |
| | | if (bol) |
| | | { |
| | |
| | | /// <summary> |
| | | /// æ´æ° CurveInfo |
| | | /// </summary> |
| | | public bool UpdateCurveInfo(long ID, PumpCurveInfoModel CurveInfo, long UpdateUserID, DateTime UpdateTime) |
| | | public bool UpdateCurveInfo(long ID, PumpCurveInfoModel CurveInfo) |
| | | { |
| | | if (ID < 1) |
| | | { |
| | | return false; |
| | | } |
| | | var dal = new DAL.PumpCurve(); |
| | | var bol = dal.UpdateCurveInfo(ID, CurveInfo?.ToJson(), UpdateUserID, UpdateTime); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurve>(); |
| | | var bol = dal.UpdateCurveInfo(ID, CurveInfo?.ToJson()); |
| | | if (bol) |
| | | { |
| | | UpdateCache(ID); |
| | |
| | | /// <summary> |
| | | /// æ´æ° CoordParas |
| | | /// </summary> |
| | | public bool UpdateCoordParas(long ID, Dictionary<string, string> CoordParas, long UpdateUserID, DateTime UpdateTime) |
| | | public bool UpdateCoordParas(long ID, Dictionary<string, string> CoordParas) |
| | | { |
| | | if (ID < 1) |
| | | { |
| | | return false; |
| | | } |
| | | var dal = new DAL.PumpCurve(); |
| | | var bol = dal.UpdateCoordParas(ID, ParasHelper.ToString(CoordParas), UpdateUserID, UpdateTime); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurve>(); |
| | | var bol = dal.UpdateCoordParas(ID, ParasHelper.ToString(CoordParas)); |
| | | if (bol) |
| | | { |
| | | UpdateCache(ID); |
| | |
| | | /// <summary> |
| | | /// æ´æ° ReliabilityStatus |
| | | /// </summary> |
| | | public bool UpdateReliabilityStatus(long ID, eReliabilityStatus ReliabilityStatus, long UpdateUserID, DateTime UpdateTime) |
| | | public bool UpdateReliabilityStatus(long ID, eReliabilityStatus ReliabilityStatus) |
| | | { |
| | | if (ID < 1) |
| | | { |
| | | return false; |
| | | } |
| | | var dal = new DAL.PumpCurve(); |
| | | var bol = dal.UpdateReliabilityStatus(ID, (int)ReliabilityStatus, UpdateUserID, UpdateTime); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurve>(); |
| | | var bol = dal.UpdateReliabilityStatus(ID, (int)ReliabilityStatus); |
| | | if (bol) |
| | | { |
| | | UpdateCache(ID); |
| | |
| | | Msg = "å卿²çº¿å
³èå
³ç³»"; |
| | | return false; |
| | | } |
| | | var dal = new DAL.PumpCurve(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurve>(); |
| | | var bol = dal.DeleteByID(ID); |
| | | if (bol) |
| | | { |
| | |
| | | public bool DeleteExByID(long ID, out string Msg) |
| | | { |
| | | Msg = string.Empty; |
| | | var dal = new DAL.PumpCurve(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurve>(); |
| | | var bol = dal.DeleteExByID(ID); |
| | | if (bol) |
| | | { |
ÎļþÃû´Ó Yw.Service.Curve.Core/5-service/2-pump-curve-mapping/PumpCurveMapping.cs ÐÞ¸Ä |
| | |
| | | { |
| | | var all = PumpCurveMappingCacheHelper.GetSet(() => |
| | | { |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var entityList = dal.GetAll(); |
| | | var modelList = Entity2Models(entityList); |
| | | if (modelList == null) |
| | |
| | | //éè¿ ID æ´æ°ç¼å |
| | | internal static Model.PumpCurveMapping UpdateCache(long ID) |
| | | { |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var entityDb = dal.GetByID(ID); |
| | | var modelDb = Entity2Model(entityDb); |
| | | var all = GetCache(); |
| | |
| | | { |
| | | if (Ids == null || Ids.Count < 1) |
| | | return; |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var entityList = dal.GetByIds(Ids); |
| | | var modelList = Entity2Models(entityList); |
| | | var all = GetCache(); |
| | |
| | | //éè¿ PumpID æ´æ°ç¼å |
| | | internal static void UpdateCacheByPumpID(long PumpID) |
| | | { |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var entityList = dal.GetByPumpID(PumpID); |
| | | var modelList = Entity2Models(entityList); |
| | | var all = GetCache(); |
| | |
| | | { |
| | | return; |
| | | } |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var entityList = dal.GetByPumpIds(PumpIds); |
| | | var modelList = Entity2Models(entityList); |
| | | var all = GetCache(); |
| | |
| | | //éè¿ CurveID æ´æ°ç¼å |
| | | internal static void UpdateCacheByCurveID(long CurveID) |
| | | { |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var entityList = dal.GetByCurveID(CurveID); |
| | | var modelList = Entity2Models(entityList); |
| | | var all = GetCache(); |
| | |
| | | return default; |
| | | } |
| | | var entity = Model2Entity(model); |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var id = dal.Insert(entity); |
| | | if (id > 0) |
| | | { |
| | |
| | | return false; |
| | | } |
| | | var entity = Model2Entity(model); |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var bol = dal.Update(entity); |
| | | if (bol) |
| | | { |
| | |
| | | { |
| | | return default; |
| | | } |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var bol = dal.UpdateSortCode(ID, SortCode); |
| | | if (bol) |
| | | { |
| | |
| | | { |
| | | return default; |
| | | } |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var bol = dal.UpdateSorter(sorters.ToEntityList()); |
| | | if (bol) |
| | | { |
| | |
| | | public bool DeleteByID(long ID, out string Msg) |
| | | { |
| | | Msg = string.Empty; |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var bol = dal.DeleteByID(ID); |
| | | if (bol) |
| | | { |
| | |
| | | return false; |
| | | } |
| | | |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var bol = dal.SetWorkingCurve(ID, model.PumpID); |
| | | if (bol) |
| | | { |
ÎļþÃû´Ó Yw.Service.Curve.Core/5-service/3-pump-curve-mapping-extension/PumpCurveExMapping.cs ÐÞ¸Ä |
| | |
| | | } |
| | | var curveEntity = PumpCurve.Model2Entity(curve); |
| | | var mappingEntity = PumpCurveMapping.Model2Entity(mapping); |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var id = dal.InsertEx(curveEntity, mappingEntity); |
| | | if (id > 0) |
| | | { |
| | |
| | | } |
| | | var curveEntity = PumpCurve.Model2Entity(curve); |
| | | var mappingEntity = PumpCurveMapping.Model2Entity(mapping); |
| | | var dal = new DAL.PumpCurveMapping(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IPumpCurveMapping>(); |
| | | var bol = dal.UpdateEx(curveEntity, mappingEntity); |
| | | if (bol) |
| | | { |
| | |
| | | global using System.Collections; |
| | | global using SqlSugar; |
| | | global using AutoMapper; |
| | | global using Yw.Newtonsoft; |
| | | global using Yw.Curve; |
| | | global using Yw.Settings; |
| | | global using Yw.Untity; |
| | |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2023-11-24T04:42:29.4629539Z;True|2023-11-24T11:00:06.9513357+08:00;True|2023-11-22T10:59:43.5869760+08:00;True|2023-11-15T09:31:29.7022607+08:00;True|2023-11-08T13:30:50.1423957+08:00;True|2023-11-08T11:54:49.6715090+08:00;True|2023-11-07T11:00:32.3186525+08:00;True|2023-11-07T11:00:20.7173571+08:00;True|2023-10-24T23:16:33.8643304+08:00;True|2023-10-21T14:19:25.2606768+08:00;True|2023-09-26T14:09:33.8756384+08:00;True|2023-08-29T11:33:28.5466784+08:00;True|2023-08-21T13:26:43.3162454+08:00;True|2023-08-18T13:08:38.6378644+08:00;True|2023-08-16T17:42:45.3685771+08:00;True|2023-08-16T11:48:48.4326811+08:00;True|2023-08-15T15:00:14.6493599+08:00;True|2023-08-10T15:20:03.2786400+08:00;True|2023-08-07T11:48:46.2865626+08:00;True|2023-08-07T11:15:37.1248435+08:00;True|2023-08-07T10:40:31.7277832+08:00;True|2023-08-04T17:10:25.6488475+08:00;True|2023-08-02T15:24:28.5531853+08:00;True|2023-08-02T15:19:18.2260163+08:00;True|2023-08-02T13:26:30.0499052+08:00;True|2023-07-17T10:30:15.0370305+08:00;True|2023-07-13T11:54:33.7989040+08:00;True|2023-07-13T11:54:23.3967174+08:00;True|2023-07-06T09:49:52.7407983+08:00;True|2023-05-25T15:37:23.5406830+08:00;False|2023-05-25T15:36:09.3589239+08:00;</History> |
| | | <History>True|2024-03-27T06:04:50.4437801Z;True|2024-03-27T14:04:30.9570873+08:00;True|2023-11-24T12:42:29.4629539+08:00;True|2023-11-24T11:00:06.9513357+08:00;True|2023-11-22T10:59:43.5869760+08:00;True|2023-11-15T09:31:29.7022607+08:00;True|2023-11-08T13:30:50.1423957+08:00;True|2023-11-08T11:54:49.6715090+08:00;True|2023-11-07T11:00:32.3186525+08:00;True|2023-11-07T11:00:20.7173571+08:00;True|2023-10-24T23:16:33.8643304+08:00;True|2023-10-21T14:19:25.2606768+08:00;True|2023-09-26T14:09:33.8756384+08:00;True|2023-08-29T11:33:28.5466784+08:00;True|2023-08-21T13:26:43.3162454+08:00;True|2023-08-18T13:08:38.6378644+08:00;True|2023-08-16T17:42:45.3685771+08:00;True|2023-08-16T11:48:48.4326811+08:00;True|2023-08-15T15:00:14.6493599+08:00;True|2023-08-10T15:20:03.2786400+08:00;True|2023-08-07T11:48:46.2865626+08:00;True|2023-08-07T11:15:37.1248435+08:00;True|2023-08-07T10:40:31.7277832+08:00;True|2023-08-04T17:10:25.6488475+08:00;True|2023-08-02T15:24:28.5531853+08:00;True|2023-08-02T15:19:18.2260163+08:00;True|2023-08-02T13:26:30.0499052+08:00;True|2023-07-17T10:30:15.0370305+08:00;True|2023-07-13T11:54:33.7989040+08:00;True|2023-07-13T11:54:23.3967174+08:00;True|2023-07-06T09:49:52.7407983+08:00;True|2023-05-25T15:37:23.5406830+08:00;False|2023-05-25T15:36:09.3589239+08:00;</History> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | <RootNamespace>Yw</RootNamespace> |
| | | <GenerateDocumentationFile>True</GenerateDocumentationFile> |
| | | <GeneratePackageOnBuild>True</GeneratePackageOnBuild> |
| | | <Version>1.0.6</Version> |
| | | <Version>3.0.0</Version> |
| | | <Description>å®åç¼åå
³èæ´æ°</Description> |
| | | </PropertyGroup> |
| | | |
| | |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.DynamicExpresso.Core" Version="1.0.0" /> |
| | | <PackageReference Include="Yw.RabbitMq.Core" Version="1.0.0" /> |
| | | <PackageReference Include="Yw.Redis.Core" Version="1.0.1" /> |
| | | <PackageReference Include="Yw.Service.Core" Version="1.1.3" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <ProjectReference Include="..\Yw.Coordinate\Yw.Coordinate.csproj" /> |
| | | <PackageReference Include="Yw.CurveBase.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.DAL.PostgreSql.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.DAL.SQLite.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.DALFactory.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.IDAL.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.Service.Core" Version="3.0.0" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | |
| | | "Curve": { |
| | | "DataBase": { |
| | | "ConnectString": "PORT=5432;DATABASE=yw_health;HOST=localhost;PASSWORD=123456;USER ID=postgres;" |
| | | "DbType": "PostgreSql", //PostgreSqlãSQLite |
| | | "Factory": { |
| | | "EnableCache": true, |
| | | "CacheTime": 10 |
| | | }, |
| | | "PostgreSql": { |
| | | "ConnectString": "PORT=5432;DATABASE=yw_curve;HOST=localhost;PASSWORD=123456;USER ID=postgres;" |
| | | }, |
| | | "SQLite": { |
| | | "ConnectString": "Data Source=yw_curve.db;" |
| | | } |
| | | }, |
| | | "PointNumber": 12 |
| | | } |