Update difflog

This commit is contained in:
sunkaixuna 2022-01-04 23:15:18 +08:00
parent 7f8282c115
commit 2e56d0cc0c

View File

@ -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)
{