mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Synchronization code
This commit is contained in:
@@ -1242,6 +1242,19 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
public SqlSugarClient CopyNew()
|
public SqlSugarClient CopyNew()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if(_AllClients!=null&&_AllClients.Count>1&& _configAction != null)
|
||||||
|
{
|
||||||
|
List<ConnectionConfig> connections = new List<ConnectionConfig>();
|
||||||
|
foreach (var item in _AllClients)
|
||||||
|
{
|
||||||
|
connections.Add(UtilMethods.CopyConfig(item.ConnectionConfig));
|
||||||
|
}
|
||||||
|
var newDb= new SqlSugarClient(connections, _configAction);
|
||||||
|
newDb.QueryFilter = this.QueryFilter;
|
||||||
|
return newDb;
|
||||||
|
}
|
||||||
|
|
||||||
SqlSugarClient result;
|
SqlSugarClient result;
|
||||||
if(_configAction!=null)
|
if(_configAction!=null)
|
||||||
result=new SqlSugarClient(UtilMethods.CopyConfig(this.Ado.Context.CurrentConnectionConfig),_configAction);
|
result=new SqlSugarClient(UtilMethods.CopyConfig(this.Ado.Context.CurrentConnectionConfig),_configAction);
|
||||||
|
Reference in New Issue
Block a user