Skip to content

Commit 3eb51ef

Browse files
Update query-filter.md
1 parent b7d79a0 commit 3eb51ef

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

docs2/pages/documentations/query-filter.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -306,26 +306,6 @@ var list = ctx.Categories.ToList()
306306

307307
```
308308

309-
### Include Filtering
310-
311-
Including related entities can be useful. For example, every time you load a post, you want to include all active comments related.
312-
313-
**Require:** EF+ Query Include
314-
315-
*In this example, All active comments are included for every post.*
316-
317-
{% include template-example.html %}
318-
```csharp
319-
320-
// using Z.EntityFramework.Plus; // Don't forget to include this.
321-
var ctx = new EntitiesContext();
322-
ctx.Filter<Post>(q => q.IncludeFilter(x => x.Comments.Where(y => y.IsActive));
323-
324-
// Load all active comments related to post loaded
325-
var list = ctx.Posts.Take(20).ToList();
326-
327-
```
328-
329309
## Limitations
330310

331311
- Entity Framework 5

0 commit comments

Comments
 (0)