You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs2/pages/ef-docs/documentations/query-db-set-filter/ef6-query-db-set-filter.md
+8-136Lines changed: 8 additions & 136 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,139 +25,11 @@ To make both features live together, method in Query DbSetFilter has been rename
25
25
|Filter |DbSetFilter|
26
26
|QueryFilterManager |QueryDbSetFilterManager|
27
27
28
-
## EF+ Query Filter Global
29
-
30
-
Global filter can be used by any context.
31
-
32
-
Global filter is normally preferred in most scenarios over instance filter since the filter code is centralized in one method over being spread in multiple methods.
33
-
34
-
{% include template-example.html %}
35
-
```csharp
36
-
37
-
// using Z.EntityFramework.Plus; // Don't forget to include this.
{% include component-try-it.html href='https://dotnetfiddle.net/3Xz39f' %}
69
-
70
-
***Use entities context constructor to make some filter "global" to all context.***
71
-
72
-
## EF+ Query Filter By Query
73
-
74
-
Query filter applies filters to specific queries only. The filtering logic is added globally or by instance but in a disabled state and then it is enabled by these specific queries.
75
-
76
-
{% include template-example.html %}
77
-
```csharp
78
-
79
-
// using Z.EntityFramework.Plus; // Don't forget to include this.
0 commit comments