Update ScopedClient

This commit is contained in:
sunkaixuna 2021-07-09 23:55:49 +08:00
parent 6431ce7d40
commit d9b5783921

View File

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