Browse Source

Update BulkUpdate

pull/19/head
sunkaixuan 2 years ago
parent
commit
be957e0a1a
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/FastestProvider/FastestProvider.cs

4
Src/Asp.Net/SqlSugar/Abstract/FastestProvider/FastestProvider.cs

@ -213,6 +213,10 @@ namespace SqlSugar
dataTable.TableName = this.queryable.SqlBuilder.GetTranslationTableName(tableName);
DataTable dt = GetCopyWriteDataTable(dataTable);
IFastBuilder buider = GetBuider();
if (dt.Columns.Count != dataTable.Columns.Count)
{
ActionIgnoreColums(whereColumns, updateColumns, dt, buider.IsActionUpdateColumns);
}
buider.Context = context;
await buider.CreateTempAsync<object>(dt);
await buider.ExecuteBulkCopyAsync(dt);

Loading…
Cancel
Save