Synchronization code

This commit is contained in:
sunkaixuan 2024-04-03 09:21:28 +08:00
parent 088ba6377a
commit 7f1bbc40a9

View File

@ -746,10 +746,14 @@ namespace SqlSugar
{
dt = new DataTable();
}
else if (this.WhereColumnList?.Any() == true)
{
else if (this.WhereColumnList?.Any() == true)
{
dt = this.Context.Queryable<T>().Filter(null, true).WhereClassByWhereColumns(this.UpdateObjs.ToList(), this.WhereColumnList.ToArray()).ToDataTable();
}
else if (this.UpdateBuilder.TableName.HasValue())
{
dt = this.Context.Queryable<T>().AS(this.UpdateBuilder.TableName).Filter(null, true).WhereClassByPrimaryKey(this.UpdateObjs.ToList()).ToDataTable();
}
else
{
dt = this.Context.Queryable<T>().Filter(null, true).WhereClassByPrimaryKey(this.UpdateObjs.ToList()).ToDataTable();