EF Core 2.1 HasData() creating deletes and re-inserts for unchanged entities on subsequent migrations
问题 Update 8/29/18 Seeing this issue in inline new -ing of seed data as well. Opened an EF Core issue. Will update the question with any findings. I am trying to use EF Core 2.1's seeding mechanism. However, I want to load the seed data from json flat files rather than hard-coding new C# objects. I wrote the extension method below, which worked well for the initial migration. It looks for files named [MyEntity].json in DataPath and deserializes them into objects. The problem is that if I add a