IgnoreQueryFilters

The IgnoreQueryFilters feature is used to indicate to EF Core that it should ignore global query filters for this query. It simply passes along this call to the underlying EF Core feature for disabling global filters.

Compatible with the following providers:

The following example shows how to add IgnoreQueryFilters to a specification.

public class CustomerSpec : Specification<Customer>
{
    public CustomerSpec(string name)
    {
        Query.Where(x => x.Name == name)
             .IgnoreQueryFilters();
    }
}