lixiaojun
2024-07-23 a99a3974be061a99d11306e75d9820de59cdc374
Service/HStation.Service.Phart.Core/04-service/00-core/03-helper/DbFirstHelper.cs
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 ¸´ÖÆ
@@ -1,4 +1,4 @@
namespace HStation.Service.Organize
namespace HStation.Service
{
    /// <summary>
    ///
@@ -13,7 +13,7 @@
            msg = string.Empty;
            try
            {
                var connectConfig = HStation.Organize.ConfigHelper.DefaultConnectionConfig;
                var connectConfig = HStation.Xhs.ConfigHelper.PostgreSqlConnectionConfig;
                if (connectConfig == null)
                {
                    msg = "连接配置初始化失败";
@@ -31,7 +31,7 @@
                        }
                        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";
                            }
@@ -41,8 +41,9 @@
                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))