Browse Source

Update difflog

pull/12/head
sunkaixuna 3 years ago
parent
commit
2e56d0cc0c
  1. 9
      Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs

9
Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs

@ -844,7 +844,14 @@ namespace SqlSugar
}
else
{
dt=this.Context.Queryable<T>().WhereClassByPrimaryKey(this.UpdateObjs.ToList()).ToDataTable();
if (this.UpdateObjs.ToList().Count == 0)
{
dt = new DataTable();
}
else
{
dt = this.Context.Queryable<T>().WhereClassByPrimaryKey(this.UpdateObjs.ToList()).ToDataTable();
}
}
if (dt.Rows != null && dt.Rows.Count > 0)
{

Loading…
Cancel
Save