copy from HStation.Service.Organize.Core/05-service/00-core/03-helper/DbFirstHelper.cs
copy to Service/HStation.Service.Phart.Core/04-service/00-core/03-helper/DbFirstHelper.cs
Îļþ´Ó HStation.Service.Organize.Core/05-service/00-core/03-helper/DbFirstHelper.cs ¸´ÖÆ |
| | |
| | | namespace HStation.Service.Organize |
| | | namespace HStation.Service |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | msg = string.Empty; |
| | | try |
| | | { |
| | | var connectConfig = HStation.Organize.ConfigHelper.DefaultConnectionConfig; |
| | | var connectConfig = HStation.Xhs.ConfigHelper.PostgreSqlConnectionConfig; |
| | | if (connectConfig == null) |
| | | { |
| | | msg = "è¿æ¥é
ç½®åå§å失败"; |
| | |
| | | } |
| | | if (column.DataType == StaticConfig.CodeFirst_BigString) |
| | | { |
| | | if (XhsParasHelper.Xhs.DataBase.DbType == HStation.Organize.DbType.PostgreSql) |
| | | if (HStation.Settings.XhsParasHelper.Xhs.DataBase.DbType == HStation.Xhs.DbType.PostgreSql) |
| | | { |
| | | column.DataType = "character varying"; |
| | | } |
| | |
| | | |
| | | var typeList = new List<Type>() |
| | | { |
| | | typeof(Entity.EmployeeMain), |
| | | typeof(Entity.UserLoginMap), |
| | | typeof(Entity.XhsPhartDiagram), |
| | | typeof(Entity.XhsPhartGraph), |
| | | typeof(Entity.XhsPumpPhartMapping) |
| | | }; |
| | | |
| | | using (var db = new SqlSugarClient(connectConfig)) |