feat: 完成saas多租户测试

This commit is contained in:
chenchun
2024-07-28 00:25:00 +08:00
parent df1a4d7149
commit 8b890a9271
2 changed files with 33 additions and 32 deletions

View File

@@ -57,12 +57,10 @@ namespace Yi.Framework.SqlSugarCore
connectionCreator.DataExecuted = DataExecuted;
connectionCreator.OnLogExecuting = OnLogExecuting;
connectionCreator.OnLogExecuted = OnLogExecuted;
var currentConnection = GetCurrentConnectionString();
var currentDbType = GetCurrentDbType();
SqlSugarClient = new SqlSugarClient(connectionCreator.Build(action: options =>
{
options.ConnectionString = currentConnection;
options.ConnectionString = GetCurrentConnectionString();
options.DbType = GetCurrentDbType();
}));
connectionCreator.SetDbAop(SqlSugarClient);
}