Heaven
In EF Core, how do I insert new data to an existing DB with a Migration?
I want to create a migration to insert new data to an existing database deployed in multiple environments. In some environments, devs have already manually inserted the rows. What's the best way of handling this in EF core?
Creating a migration that just runs raw insert SQL scripts? And in the raw SQL, check for existence?
8 replies