dotnet / dotnet/efcore

"Batch" together delete (and possibly update) operations in seeding

Open
#28,956 1 comment 0 reactions 0 assignees View on GitHub
area-migrations-seeding
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

MigrationsModelDiffer.GetDataOperations "batches" together multiple inserts to the same table, so that the scaffolded migration code looks much more readable (one insert operation with a big array instead of lots of single-row insert operations).

We could do the same for deletes, and possibly even for updates, as long as the column list is the same (not sure it's worth it).

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.