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/documentations/batch-delete.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,6 +184,14 @@ _context.Foos.Delete();
184
184
-**DO NOT** support TPT
185
185
186
186
If you need to use one of this feature, you need to use the library [Entity Framework Extensions](https://entityframework-extensions.net/)
187
+
188
+
### EF Core & Client Evaluation
189
+
_Do not use this feature if Client Evaluation is enabled_
190
+
`Batch Delete` use the SQL generated by EF Core. When a filter is made on client-side, it means the filtering happens in the application and not in the SQL executed.
191
+
192
+
In other words, even if you put a filter, all rows tables could be potentially deleted if the filter is made on the client-side.
193
+
194
+
We always recommend to [disable the client evaluation](https://docs.microsoft.com/en-us/ef/core/querying/client-eval#optional-behavior-throw-an-exception-for-client-evaluation) to avoid performance issue in your application.
0 commit comments