Skip to content

Commit 843645e

Browse files
Update batch-delete.md
1 parent e188f0b commit 843645e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs2/pages/documentations/batch-delete.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,14 @@ _context.Foos.Delete();
184184
- **DO NOT** support TPT
185185

186186
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.
187195

188196
## Requirements
189197

0 commit comments

Comments
 (0)