Browse Source

Synchronization code

pull/30/head
sunkaixuan 2 years ago
parent
commit
5da87be380
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/SplitInsertable.cs

2
Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/SplitInsertable.cs

@ -211,7 +211,7 @@ namespace SqlSugar
{
var isLog = this.Context.Ado.IsEnableLogEvent;
this.Context.Ado.IsEnableLogEvent = false;
foreach (var item in TableNames)
foreach (var item in TableNames.GroupBy(it=>it.Key).Select(it=>it).ToDictionary(it=>it.Key,it=>it))
{
if (!this.Context.DbMaintenance.IsAnyTable(item.Key, false))
{

Loading…
Cancel
Save