Update demo

This commit is contained in:
sunkaixuna
2021-10-26 21:20:30 +08:00
parent 501ac235f7
commit b4b9f7e28a
6 changed files with 3 additions and 7 deletions

View File

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