|
|
@ -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) => |
|
|
|