HasData() creating deletes and re-inserts for unchanged entities on subsequent migrations #13154
When I add a migration after filling out some
I asked a SO question yesterday, because I thought this was occurring because I was trying to seed from an external data source (.json files). However, I am seeing the same issue today with inline
Any given piece of seed data, if left unmodified in
This could very well be a Pomelo (provider) issue as well. I am not versed enough in EF Core to know how to discern which it might be.
Steps to reproduce
Since I am somewhat swimming upstream using
Because I do have a couple
Further technical details
EF Core version: 2.1.1
The text was updated successfully, but these errors were encountered:
@collinbarrett Here's my context factory, I'm using SqlServer:
Ok, I'm using Pomelo for MySQL, which is a bit off the main trail of SQL Server. So, I was thinking it could be a bug with that provider. So, thanks for verifying it occurs with SQL Server as well.
Yes, just another static class for seed data, exactly like yours in fact.
I thought it might be due to using dynamic values, i.e.