mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update unit tests
This commit is contained in:
parent
c6456076cd
commit
a996e8f483
@ -25,13 +25,13 @@ namespace OrmTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
public static SqlSugarClient ssDb => new SqlSugarClient(new ConnectionConfig()
|
public static SqlSugarScope ssDb => new SqlSugarScope(new ConnectionConfig()
|
||||||
{
|
{
|
||||||
DbType = DbType.Dm,
|
DbType = DbType.Dm,
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = true,
|
||||||
IsShardSameThread = true,
|
//IsShardSameThread = true,
|
||||||
AopEvents = new AopEvents
|
AopEvents = new AopEvents
|
||||||
{
|
{
|
||||||
OnLogExecuting = (sql, p) =>
|
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.Dm,
|
DbType = DbType.Dm,
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = true,
|
||||||
IsShardSameThread = true,
|
//IsShardSameThread = true,
|
||||||
AopEvents = new AopEvents
|
AopEvents = new AopEvents
|
||||||
{
|
{
|
||||||
OnLogExecuting = (sql, p) =>
|
OnLogExecuting = (sql, p) =>
|
||||||
|
@ -25,13 +25,13 @@ namespace OrmTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
public static SqlSugarClient ssDb => new SqlSugarClient(new ConnectionConfig()
|
public static SqlSugarScope ssDb => new SqlSugarScope(new ConnectionConfig()
|
||||||
{
|
{
|
||||||
DbType = DbType.Kdbndp,
|
DbType = DbType.Kdbndp,
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = true,
|
||||||
IsShardSameThread = true,
|
// IsShardSameThread = true,
|
||||||
AopEvents = new AopEvents
|
AopEvents = new AopEvents
|
||||||
{
|
{
|
||||||
OnLogExecuting = (sql, p) =>
|
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.Kdbndp,
|
DbType = DbType.Kdbndp,
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = true,
|
||||||
IsShardSameThread = true,
|
//IsShardSameThread = true,
|
||||||
AopEvents = new AopEvents
|
AopEvents = new AopEvents
|
||||||
{
|
{
|
||||||
OnLogExecuting = (sql, p) =>
|
OnLogExecuting = (sql, p) =>
|
||||||
|
@ -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,
|
DbType = DbType.MySql,
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = true,
|
||||||
IsShardSameThread = true,
|
//IsShardSameThread = true,
|
||||||
AopEvents = new AopEvents
|
AopEvents = new AopEvents
|
||||||
{
|
{
|
||||||
OnLogExecuting = (sql, p) =>
|
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,
|
DbType = DbType.MySql,
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = true,
|
||||||
IsShardSameThread = true,
|
//IsShardSameThread = true,
|
||||||
AopEvents = new AopEvents
|
AopEvents = new AopEvents
|
||||||
{
|
{
|
||||||
OnLogExecuting = (sql, p) =>
|
OnLogExecuting = (sql, p) =>
|
||||||
|
@ -25,13 +25,13 @@ namespace OrmTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
public static SqlSugarClient ssDb => new SqlSugarClient(new ConnectionConfig()
|
public static SqlSugarScope ssDb => new SqlSugarScope(new ConnectionConfig()
|
||||||
{
|
{
|
||||||
DbType = DbType.Oracle,
|
DbType = DbType.Oracle,
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = true,
|
||||||
IsShardSameThread = true,
|
//IsShardSameThread = true,
|
||||||
AopEvents = new AopEvents
|
AopEvents = new AopEvents
|
||||||
{
|
{
|
||||||
OnLogExecuting = (sql, p) =>
|
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.Oracle,
|
DbType = DbType.Oracle,
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = true,
|
||||||
IsShardSameThread = true,
|
//IsShardSameThread = true,
|
||||||
AopEvents = new AopEvents
|
AopEvents = new AopEvents
|
||||||
{
|
{
|
||||||
OnLogExecuting = (sql, p) =>
|
OnLogExecuting = (sql, p) =>
|
||||||
|
@ -25,13 +25,13 @@ namespace OrmTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
public static SqlSugarClient ssDb => new SqlSugarClient(new ConnectionConfig()
|
public static SqlSugarScope ssDb => new SqlSugarScope(new ConnectionConfig()
|
||||||
{
|
{
|
||||||
DbType = DbType.PostgreSQL,
|
DbType = DbType.PostgreSQL,
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = true,
|
||||||
IsShardSameThread = true,
|
//IsShardSameThread = true,
|
||||||
AopEvents = new AopEvents
|
AopEvents = new AopEvents
|
||||||
{
|
{
|
||||||
OnLogExecuting = (sql, p) =>
|
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.PostgreSQL,
|
DbType = DbType.PostgreSQL,
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = true,
|
||||||
IsShardSameThread = true,
|
//IsShardSameThread = true,
|
||||||
AopEvents = new AopEvents
|
AopEvents = new AopEvents
|
||||||
{
|
{
|
||||||
OnLogExecuting = (sql, p) =>
|
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.SqlServer,
|
DbType = DbType.SqlServer,
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = true,
|
||||||
IsShardSameThread = true,
|
//IsShardSameThread = true,
|
||||||
AopEvents = new AopEvents
|
AopEvents = new AopEvents
|
||||||
{
|
{
|
||||||
OnLogExecuting = (sql, p) =>
|
OnLogExecuting = (sql, p) =>
|
||||||
|
@ -25,13 +25,13 @@ namespace OrmTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
public static SqlSugarClient ssDb => new SqlSugarClient(new ConnectionConfig()
|
public static SqlSugarScope ssDb => new SqlSugarScope(new ConnectionConfig()
|
||||||
{
|
{
|
||||||
DbType = DbType.Sqlite,
|
DbType = DbType.Sqlite,
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = true,
|
||||||
IsShardSameThread = true,
|
//IsShardSameThread = true,
|
||||||
AopEvents = new AopEvents
|
AopEvents = new AopEvents
|
||||||
{
|
{
|
||||||
OnLogExecuting = (sql, p) =>
|
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.Sqlite,
|
DbType = DbType.Sqlite,
|
||||||
ConnectionString = Config.ConnectionString,
|
ConnectionString = Config.ConnectionString,
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = true,
|
||||||
IsShardSameThread = true,
|
//IsShardSameThread = true,
|
||||||
AopEvents = new AopEvents
|
AopEvents = new AopEvents
|
||||||
{
|
{
|
||||||
OnLogExecuting = (sql, p) =>
|
OnLogExecuting = (sql, p) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user