Browse Source

Update golbal filter

pull/31/head
sunkaixuan 2 years ago
parent
commit
fcd1b05a6f
  1. 8
      Src/Asp.NetCore2/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs

8
Src/Asp.NetCore2/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs

@ -304,6 +304,14 @@ namespace SqlSugar
{ {
foreach (var item in db.QueryFilter.GeFilterList) foreach (var item in db.QueryFilter.GeFilterList)
{ {
if (this.RemoveFilters != null && this.RemoveFilters.Length > 0)
{
if (this.RemoveFilters.Contains(item.type))
{
continue;
}
}
PropertyInfo field = item.GetType().GetProperty("exp", flag); PropertyInfo field = item.GetType().GetProperty("exp", flag);
if (field != null) if (field != null)
{ {

Loading…
Cancel
Save