mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 02:44:58 +08:00
db.UseTran BUG
This commit is contained in:
@@ -940,6 +940,11 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
private void AllClientEach(Action<ISqlSugarClient> action)
|
private void AllClientEach(Action<ISqlSugarClient> action)
|
||||||
{
|
{
|
||||||
|
if (this._AllClients == null)
|
||||||
|
{
|
||||||
|
this._AllClients = new List<SugarTenant>();
|
||||||
|
this._AllClients.Add(new SugarTenant() { ConnectionConfig=this.CurrentConnectionConfig, Context=this.Context });
|
||||||
|
}
|
||||||
if (_AllClients.HasValue())
|
if (_AllClients.HasValue())
|
||||||
{
|
{
|
||||||
foreach (var item in _AllClients.Where(it => it.Context.HasValue()))
|
foreach (var item in _AllClients.Where(it => it.Context.HasValue()))
|
||||||
|
|||||||
Reference in New Issue
Block a user