Skip to content

Commit

Permalink
Ardalis/doc ignorequeryfilters (#212)
Browse files Browse the repository at this point in the history
* clean up files; add doc for ignorequeryfilters

* update nav_orders
  • Loading branch information
ardalis authored Jan 12, 2022
1 parent 11ff80a commit 9a2939d
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 121 deletions.
112 changes: 0 additions & 112 deletions azure-pipelines.yml.obsolete

This file was deleted.

28 changes: 28 additions & 0 deletions docs/features/ignorequeryfilters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
layout: default
title: IgnoreQueryFilters
nav_order: 3
has_children: false
parent: ORM-Specific Features
grand_parent: Features
---

# IgnoreQueryFilters

The `IgnoreQueryFilters` feature is used to indicate to EF Core (it is not supported by EF 6) 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](https://docs.microsoft.com/ef/core/querying/filters#disabling-filters).

## Sample

The following specification implements the `IgnoreQueryFilters()` expression:

```csharp
public class CompanyByIdIgnoreQueryFilters : Specification<Company>, ISingleResultSpecification
{
public CompanyByIdIgnoreQueryFilters(int id)
{
Query
.Where(company => company.Id == id)
.IgnoreQueryFilters();
}
}
```
2 changes: 1 addition & 1 deletion docs/features/include.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: default
title: Include
nav_order: 3
nav_order: 4
has_children: false
parent: ORM-Specific Features
grand_parent: Features
Expand Down
2 changes: 1 addition & 1 deletion docs/features/search.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: default
title: Search
nav_order: 5
nav_order: 6
has_children: false
parent: ORM-Specific Features
grand_parent: Features
Expand Down
2 changes: 1 addition & 1 deletion docs/features/then-include.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: default
title: ThenInclude
nav_order: 4
nav_order: 5
has_children: false
parent: ORM-Specific Features
grand_parent: Features
Expand Down
6 changes: 0 additions & 6 deletions nuget.txt

This file was deleted.

0 comments on commit 9a2939d

Please sign in to comment.