|
@ -843,9 +843,16 @@ namespace SqlSugar |
|
|
dt = this.Context.Queryable<T>().Where(whereSql).AddParameters(parameters).ToDataTable(); |
|
|
dt = this.Context.Queryable<T>().Where(whereSql).AddParameters(parameters).ToDataTable(); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
if (this.UpdateObjs.ToList().Count == 0) |
|
|
|
|
|
{ |
|
|
|
|
|
dt = new DataTable(); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
{ |
|
|
{ |
|
|
dt = this.Context.Queryable<T>().WhereClassByPrimaryKey(this.UpdateObjs.ToList()).ToDataTable(); |
|
|
dt = this.Context.Queryable<T>().WhereClassByPrimaryKey(this.UpdateObjs.ToList()).ToDataTable(); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
if (dt.Rows != null && dt.Rows.Count > 0) |
|
|
if (dt.Rows != null && dt.Rows.Count > 0) |
|
|
{ |
|
|
{ |
|
|
foreach (DataRow row in dt.Rows) |
|
|
foreach (DataRow row in dt.Rows) |
|
|