File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
docs2/pages/documentations Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments