mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 13:21:59 +08:00
Update db.UpdateNav
This commit is contained in:
@@ -170,9 +170,19 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this._Context.Deleteable<object>()
|
if (this._Context?.CurrentConnectionConfig?.MoreSettings?.IsAutoDeleteQueryFilter == true)
|
||||||
.AS(thisEntity.DbTableName)
|
{
|
||||||
.In(thisFkColumn.DbColumnName, ids.Distinct().ToList()).ExecuteCommand();
|
this._Context.Deleteable<object>()
|
||||||
|
.AS(thisEntity.DbTableName)
|
||||||
|
.EnableQueryFilter(thisEntity.Type)
|
||||||
|
.In(thisFkColumn.DbColumnName, ids.Distinct().ToList()).ExecuteCommand();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this._Context.Deleteable<object>()
|
||||||
|
.AS(thisEntity.DbTableName)
|
||||||
|
.In(thisFkColumn.DbColumnName, ids.Distinct().ToList()).ExecuteCommand();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_NavigateType = NavigateType.OneToMany;
|
_NavigateType = NavigateType.OneToMany;
|
||||||
InsertDatas(children, thisPkColumn);
|
InsertDatas(children, thisPkColumn);
|
||||||
|
|||||||
Reference in New Issue
Block a user