mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Synchronization code
This commit is contained in:
@@ -169,11 +169,21 @@ namespace SqlSugar
|
||||
.ExecuteCommand();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this._Context?.CurrentConnectionConfig?.MoreSettings?.IsAutoDeleteQueryFilter == true)
|
||||
{
|
||||
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;
|
||||
InsertDatas(children, thisPkColumn);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugarCore</id>
|
||||
<version>5.1.4.125</version>
|
||||
<version>5.1.4.127-preview13</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据科技</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
Reference in New Issue
Block a user