I am working on an existing project that uses Entity-Framework 6 with code one. I need to run some SQL before starting the migration.
I have a DbMigrationsConfiguration class with a seed method, but the seed starts after migration.
I think this will work if I run my SQL in the constructor, but I cannot get the context link.
Does anyone know how to do this?
ef-code-first entity-framework-6
Don chambers
source share