Synchronization code

This commit is contained in:
sunkaixuan 2023-10-16 12:21:17 +08:00
parent 6acb380a20
commit 3b35a6bf7f

View File

@ -214,11 +214,11 @@ namespace SqlSugar
this.Context.Ado.IsEnableLogEvent = false;
foreach (var item in TableNames.GroupBy(it=>it.Key).Select(it=>it).ToDictionary(it=>it.Key,it=>it.First().Value))
{
if (!this.Context.DbMaintenance.IsAnyTable(item.Key, false))
if (!this.Context.CopyNew().DbMaintenance.IsAnyTable(item.Key, false))
{
lock (SplitLockObj)
{
if (!this.Context.DbMaintenance.IsAnyTable(item.Key, false))
if (!this.Context.CopyNew().DbMaintenance.IsAnyTable(item.Key, false))
{
if (item.Value != null)
{