Skip to content

Commit a54945a

Browse files
authored
Update ef6-query-include-optimized.md
1 parent b5322eb commit a54945a

File tree

1 file changed

+3
-27
lines changed

1 file changed

+3
-27
lines changed

docs2/pages/ef-docs/documentations/query-include-optimized/ef6-query-include-optimized.md

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var orders = ctx.Orders
5353

5454
## EF+ Query IncludeOptimized
5555

56-
IncludeQuery method works like "Include" method but creates an efficient query to reduce the number of data to transfer.
56+
IncludeOptimized method works like "Include" method but creates an efficient query to reduce the number of data to transfer.
5757

5858
{% include template-example.html %}
5959
```csharp
@@ -66,33 +66,9 @@ var orders = ctx.Orders.IncludeOptimized(x => x.Items);
6666
```
6767
[Try it in EF6](https://dotnetfiddle.net/d8P4FS)
6868

69-
## EF+ Query IncludeOptimized Filter
69+
## Options
7070

71-
Same as with EF+ Query IncludeFilter, it is possible to filter which related entities to load and then to launch a query.
72-
73-
{% include template-example.html %}
74-
```csharp
75-
76-
// using Z.EntityFramework.Plus; // Don't forget to include this.
77-
var ctx = new EntitiesContext();
78-
79-
var orders = ctx.Orders.IncludeOptimized(x => x.Items.Where(y => y.IsActive));
80-
81-
```
82-
[Try it in EF6](https://dotnetfiddle.net/uFBqTO)
83-
84-
### AllowQueryBatch
85-
86-
In some scenario, you may want to disable the Query Batch features to execute every query as individual.
87-
88-
{% include template-example.html %}
89-
```csharp
90-
91-
// using Z.EntityFramework.Plus; // Don't forget to include this.
92-
93-
QueryIncludeOptimizedManager.AllowQueryBatch = false;
94-
95-
```
71+
- [IncludeOptimized Filter](options/ef6-query-include-optimized-filter.md)
9672

9773
## Real Life Scenarios
9874

0 commit comments

Comments
 (0)