| | |
| | | msg = string.Empty; |
| | | try |
| | | { |
| | | var connectConfig = HStation.PBS.ConfigHelper.DefaultConnectionConfig; |
| | | var connectConfig = PBS.ConfigHelper.DefaultConnectionConfig; |
| | | if (connectConfig == null) |
| | | { |
| | | msg = "连接配置初始化失败"; |
| | |
| | | } |
| | | if (column.DataType == StaticConfig.CodeFirst_BigString) |
| | | { |
| | | if (PBSParasHelper.PBS.DataBase.DbType == HStation.PBS.DbType.PostgreSql) |
| | | if (PBSParasHelper.PBS.DataBase.DbType == PBS.DbType.PostgreSql) |
| | | { |
| | | column.DataType = "character varying"; |
| | | } |
| | |
| | | typeof(PBS.Entity.Facility), |
| | | typeof(PBS.Entity.ModelTemplate), |
| | | typeof(PBS.Entity.ModelTemplateGroup), |
| | | typeof(PBS.Entity.ElecPrice), |
| | | typeof(PBS.Entity.WaterEquipment), |
| | | }; |
| | | using (var db = new SqlSugarClient(connectConfig)) |
| | | { |