From a49f6f2d7416b890cc6e368626ea62ef30d89f0c Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 23 Sep 2022 22:47:02 +0800 Subject: [PATCH] Update db.DeleteNav --- .../SqlSugar/Abstract/ExecuteNavProvider/DeleteNavManyToMany.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/DeleteNavManyToMany.cs b/Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/DeleteNavManyToMany.cs index dbfbf8eaa..0eb136064 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/DeleteNavManyToMany.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/DeleteNavManyToMany.cs @@ -34,7 +34,7 @@ namespace SqlSugar } var aids = _ParentList.Select(it => parentPkColumn.PropertyInfo.GetValue(it)).ToList(); - var bids = _Context.Queryable().AS(mappingEntity.DbTableName).In(mappingA.DbColumnName, aids) + var bids = _Context.Queryable().Filter(mappingEntity.Type).AS(mappingEntity.DbTableName).In(mappingA.DbColumnName, aids) .Select(mappingB.DbColumnName).ToDataTable() .Rows.Cast().Select(it => it[0]).ToList();