Skip to content

Commit 2d4555f

Browse files
Update bulk-synchronize.md
1 parent e667567 commit 2d4555f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

entityframework-extensions.net/pages/documentations/bulk-synchronize.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ context.BulkSynchronize(customers, options => {
3131

3232
[Online Example (EF Core)](https://dotnetfiddle.net/v4KQSX) | [Online Example (EF6)](https://dotnetfiddle.net/nZedku)
3333

34+
> ⚠️ **Warning**
35+
> If you provide an **empty list**, the `BulkSynchronize` method will not be executed.
36+
>
37+
> * This is **intentional**: we want to avoid accidentally deleting all the data in your table.
38+
> * If you are using the `ColumnSynchronizeDeleteKeySubsetExpression` option, there would be no way to know which subset of data should be deleted when the list is empty.
39+
3440
## 🔑 Key Benefits
3541

3642
One of the main reasons people use our Bulk Synchronize is to **perform add, update, and delete operations exactly the way they want**. Whether you want to remove rows not in your list, soft delete them, or control which properties to update, this method gives you complete control.

0 commit comments

Comments
 (0)