注塑车间报表初版

This commit is contained in:
2024-07-29 17:12:20 +08:00
parent 0e09a8187c
commit 42f2d7ec9f
10 changed files with 227 additions and 24 deletions

View File

@@ -33,24 +33,27 @@ public static class ConfigureSqlSugarExtensions
},
});
foreach (var item in conn.ConfigList)
if (conn.ConfigList != null)
{
connectConfigList.Add(new ConnectionConfig
foreach (var item in conn.ConfigList)
{
ConnectionString = item.connectionStr,
DbType = item.dbType,
IsAutoCloseConnection = true,
ConfigId = item.ServiceName,
InitKeyType = InitKeyType.Attribute,
MoreSettings = new ConnMoreSettings()
connectConfigList.Add(new ConnectionConfig
{
IsAutoRemoveDataCache = true, // 自动清理缓存
IsAutoToUpper = false,
//PgSqlIsAutoToLower = false,
DisableNvarchar = true
},
});
ConnectionString = item.connectionStr,
DbType = item.dbType,
IsAutoCloseConnection = true,
ConfigId = item.ServiceName,
InitKeyType = InitKeyType.Attribute,
MoreSettings = new ConnMoreSettings()
{
IsAutoRemoveDataCache = true, // 自动清理缓存
IsAutoToUpper = false,
//PgSqlIsAutoToLower = false,
DisableNvarchar = true
},
});
}
}
services.AddSqlSugar(connectConfigList, client =>