dotnet / dotnet/efcore

Bulk Delete when table sharing

Open
#28,521 2 comments 0 reactions 0 assignees View on GitHub
area-bulkupdate customer-reported
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

This would end up delete row for another entity type which is sharing the row.
If the principal root is being deleted then all other entities would be dependent only. Owned dependent may be fine to delete (as aggregate root is getting deleted). Do we allow non-owned dependent table sharing to have some different delete behavior?
If dependent is being deleted then what should we do?

Bulk Update doesn't suffer the same as it will just update the columns of the entity. It may end up updating data for other entity if column is being used by multiple entity but that is expected behaviour.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.