I'm working with a C# library called IdentityServer4. It has its own set of Entity Framework DbContext objects. Each time a new release of IdentityServer4 comes out, you're supposed to create a new Entity Framework migration and apply it to your database.
I've created the migration. The migration contains many new columns including foreign keys that require a valid reference.
When applying this migration to my existing database, which has a lot of data already in it, the migration fails to apply because those new columns do not have data and therefor break the foreign key relation requirement.
Does entity framework have a recommended strategy for approaching this type of migration application? I can't just delete all of the data while I apply the migration.
How can I get these new columns applied using the entity framework migration?