Update unit tests

This commit is contained in:
sunkaixuna
2021-10-31 17:50:21 +08:00
parent c6456076cd
commit a996e8f483
7 changed files with 26 additions and 26 deletions

View File

@@ -25,13 +25,13 @@ namespace OrmTest
}
}
});
public static SqlSugarClient ssDb => new SqlSugarClient(new ConnectionConfig()
public static SqlSugarScope ssDb => new SqlSugarScope(new ConnectionConfig()
{
DbType = DbType.MySql,
ConnectionString = Config.ConnectionString,
InitKeyType = InitKeyType.Attribute,
IsAutoCloseConnection = true,
IsShardSameThread = true,
//IsShardSameThread = true,
AopEvents = new AopEvents
{
OnLogExecuting = (sql, p) =>
@@ -56,13 +56,13 @@ namespace OrmTest
}
}
});
public static SqlSugarClient singleAndSsDb = new SqlSugarClient(new ConnectionConfig()
public static SqlSugarScope singleAndSsDb = new SqlSugarScope(new ConnectionConfig()
{
DbType = DbType.MySql,
ConnectionString = Config.ConnectionString,
InitKeyType = InitKeyType.Attribute,
IsAutoCloseConnection = true,
IsShardSameThread = true,
//IsShardSameThread = true,
AopEvents = new AopEvents
{
OnLogExecuting = (sql, p) =>