mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 04:59:34 +08:00
Synchronization code
This commit is contained in:
parent
088ba6377a
commit
7f1bbc40a9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user