Update demo

This commit is contained in:
sunkaixuna 2021-10-26 21:22:39 +08:00
parent b4b9f7e28a
commit 35163aa1c1
5 changed files with 5 additions and 10 deletions

View File

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

View File

@ -55,13 +55,12 @@ 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,
AopEvents = new AopEvents
{
OnLogExecuting = (sql, p) =>

View File

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

View File

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

View File

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