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
{{ message }}
Repository navigation
Repeated UpdateData for List<string> property with HasData and migrations #36942
When using EF Core's HasData to seed data for an entity that contains a List property, every time I run Add-Migration, even if nothing has changed in the entity or the seed data, EF Core generates UpdateData statements for the List field.
I am unable to reproduce this; with the minimal program below, the initial migration contains CreateTable and InsertData operations, and adding another migration after that creates an empty migration. The same happens when the seeding data is added in a separate migration: the first migration contains CreateTable only, the second contains InsertData, and the third is empty.
As always, we need a fully runnable repro rather than a code snippet.
Activity
roji commentedon Oct 10, 2025
I am unable to reproduce this; with the minimal program below, the initial migration contains CreateTable and InsertData operations, and adding another migration after that creates an empty migration. The same happens when the seeding data is added in a separate migration: the first migration contains CreateTable only, the second contains InsertData, and the third is empty.
As always, we need a fully runnable repro rather than a code snippet.
Attempted repro
Varorbc commentedon Oct 11, 2025
@roji Sorry, I used the wrong database provider to report the issue. Currently, the problem only recurs under npgsql
npgsql/efcore.pg#3635