mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 02:44:58 +08:00
Update core
This commit is contained in:
@@ -83,7 +83,8 @@ namespace SqlSugar
|
|||||||
DisableNvarchar = it.MoreSettings.DisableNvarchar,
|
DisableNvarchar = it.MoreSettings.DisableNvarchar,
|
||||||
PgSqlIsAutoToLower = it.MoreSettings.PgSqlIsAutoToLower,
|
PgSqlIsAutoToLower = it.MoreSettings.PgSqlIsAutoToLower,
|
||||||
IsAutoRemoveDataCache = it.MoreSettings.IsAutoRemoveDataCache,
|
IsAutoRemoveDataCache = it.MoreSettings.IsAutoRemoveDataCache,
|
||||||
IsWithNoLockQuery = it.MoreSettings.IsWithNoLockQuery
|
IsWithNoLockQuery = it.MoreSettings.IsWithNoLockQuery,
|
||||||
|
TableEnumIsString=it.MoreSettings.TableEnumIsString
|
||||||
},
|
},
|
||||||
SlaveConnectionConfigs = it.SlaveConnectionConfigs
|
SlaveConnectionConfigs = it.SlaveConnectionConfigs
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|||||||
@@ -844,7 +844,14 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else
|
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)
|
if (dt.Rows != null && dt.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user