mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 01:47:06 +08:00
Synchronization code
This commit is contained in:
parent
5a8884e3af
commit
d966791d0c
@ -18,7 +18,7 @@ namespace SqlSugar
|
||||
private SqlSugarProvider _Context = null;
|
||||
private string _ThreadId;
|
||||
private ConnectionConfig _CurrentConnectionConfig;
|
||||
private List<SugarTenant> _AllClients;
|
||||
internal List<SugarTenant> _AllClients;
|
||||
private bool _IsAllTran = false;
|
||||
private bool _IsOpen = false;
|
||||
private MappingTableList _MappingTables;
|
||||
@ -1202,6 +1202,16 @@ namespace SqlSugar
|
||||
{
|
||||
var result= new SqlSugarClient(UtilMethods.CopyConfig(this.Ado.Context.CurrentConnectionConfig));
|
||||
result.QueryFilter = this.QueryFilter;
|
||||
if (_AllClients != null)
|
||||
{
|
||||
foreach (var item in _AllClients)
|
||||
{
|
||||
if (!result.IsAnyConnection(item.ConnectionConfig.ConfigId))
|
||||
{
|
||||
result.AddConnection(UtilMethods.CopyConfig(item.ConnectionConfig));
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public DateTime GetDate()
|
||||
|
@ -850,6 +850,16 @@ namespace SqlSugar
|
||||
{
|
||||
var result= new SqlSugarClient(UtilMethods.CopyConfig(this.Ado.Context.CurrentConnectionConfig));
|
||||
result.QueryFilter = this.QueryFilter;
|
||||
if (this.ScopedContext._AllClients != null)
|
||||
{
|
||||
foreach (var item in this.ScopedContext._AllClients)
|
||||
{
|
||||
if (!result.IsAnyConnection(item.ConnectionConfig.ConfigId))
|
||||
{
|
||||
result.AddConnection(UtilMethods.CopyConfig(item.ConnectionConfig));
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public DynamicBuilder DynamicBuilder()
|
||||
|
Loading…
Reference in New Issue
Block a user