mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-26 10:49:20 +08:00
Synchronization code
This commit is contained in:
@@ -746,10 +746,14 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
dt = new DataTable();
|
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();
|
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
|
else
|
||||||
{
|
{
|
||||||
dt = this.Context.Queryable<T>().Filter(null, true).WhereClassByPrimaryKey(this.UpdateObjs.ToList()).ToDataTable();
|
dt = this.Context.Queryable<T>().Filter(null, true).WhereClassByPrimaryKey(this.UpdateObjs.ToList()).ToDataTable();
|
||||||
|
|||||||
Reference in New Issue
Block a user