| | |
| | | msg = string.Empty; |
| | | try |
| | | { |
| | | var connectConfig = HStation.Assets.ConfigHelper.PostgreSqlConnectionConfig; |
| | | var connectConfig = HStation.Assets.ConfigHelper.DefaultConnectionConfig; |
| | | if (connectConfig == null) |
| | | { |
| | | msg = "连接配置初始化失败"; |
| | |
| | | typeof(Entity.PumpPartMain), |
| | | typeof(Entity.PumpPropContent), |
| | | typeof(Entity.PumpSeries), |
| | | typeof(Entity.PumpType), |
| | | typeof(Entity.ValveMain), |
| | | typeof(Entity.ValveSeries), |
| | | typeof(Entity.ElbowMain), |
| | | typeof(Entity.ElbowSeries), |
| | | typeof(Entity.ThreeLinkMain), |
| | | typeof(Entity.ThreeLinkSeries), |
| | | typeof(Entity.FourLinkMain), |
| | | typeof(Entity.FourLinkSeries), |
| | | typeof(Entity.PipeLineMain), |
| | | typeof(Entity.PipeLineSeries), |
| | | typeof(Entity.NozzleMain), |
| | | typeof(Entity.NozzleSeries), |
| | | typeof(Entity.AdaptingManage), |
| | | typeof(Entity.PipeLineRoughnessCoefficient), |
| | | typeof(Entity.PumpTypeSeriesMap), |
| | | typeof(Yw.Entity.SysModule), |
| | | typeof(Yw.Entity.SysType), |
| | | typeof(Yw.Entity.SysCatalog), |
| | |
| | | typeof(Yw.Entity.SysPropMapping), |
| | | typeof(Yw.Entity.SysPropChoice), |
| | | typeof(Yw.Entity.SysPropValue), |
| | | typeof(Yw.Entity.SysPropValuePure), |
| | | }; |
| | | }; |
| | | |
| | | using (var db = new SqlSugarClient(connectConfig)) |
| | | { |