mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Update ScopedClient
This commit is contained in:
@@ -14,6 +14,24 @@ namespace SqlSugar
|
||||
private ScopedClient()
|
||||
{
|
||||
|
||||
}
|
||||
public ScopedClient(ConnectionConfig config)
|
||||
{
|
||||
this.db = new SqlSugarClient(config);
|
||||
}
|
||||
public ScopedClient(List<ConnectionConfig> configs)
|
||||
{
|
||||
this.db = new SqlSugarClient(configs);
|
||||
}
|
||||
public ScopedClient(ConnectionConfig config, Action<SqlSugarClient> configAction)
|
||||
{
|
||||
this.db = new SqlSugarClient(config);
|
||||
this.configAction = configAction;
|
||||
}
|
||||
public ScopedClient(List<ConnectionConfig> configs, Action<SqlSugarClient> configAction)
|
||||
{
|
||||
this.db = new SqlSugarClient(configs);
|
||||
this.configAction = configAction;
|
||||
}
|
||||
public ScopedClient(SqlSugarClient context,Action<SqlSugarClient> configAction)
|
||||
{
|
||||
|
Reference in New Issue
Block a user