Skip to content

Commit b5322eb

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

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,16 @@ var orders = ctx.Orders.IncludeOptimized(x => x.Items.Where(y => y.IsActive));
1616

1717
```
1818
[Try it](https://dotnetfiddle.net/uFBqTO)
19+
20+
## AllowQueryBatch
21+
22+
In some scenario, you may want to disable the Query Batch features to execute every query as individual.
23+
24+
{% include template-example.html %}
25+
```csharp
26+
27+
// using Z.EntityFramework.Plus; // Don't forget to include this.
28+
29+
QueryIncludeOptimizedManager.AllowQueryBatch = false;
30+
31+
```

0 commit comments

Comments
 (0)