Explorar o código

update Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarRepository.cs.
其它租户连接配置继承默认租户的数据库驼峰转下划线配置

Signed-off-by: ileego <fei.gao@live.cn>

ileego %!s(int64=2) %!d(string=hai) anos
pai
achega
18fec93291
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarRepository.cs

+ 2 - 1
Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarRepository.cs

@@ -55,7 +55,8 @@ public class SqlSugarRepository<T> : SimpleClient<T> where T : class, new()
                 ConfigId = tenant.Id,
                 DbType = tenant.DbType,
                 IsAutoCloseConnection = true,
-                ConnectionString = tenant.Connection
+                ConnectionString = tenant.Connection,
+                EnableUnderLine = mainConnConfig.EnableUnderLine,
             };
             iTenant.AddConnection(connectionConfig);
             SqlSugarSetup.SetDbConfig(connectionConfig);