I am working on an existing project that uses Entity-Framework 6 with code-first. I have a need to run some SQL before the migrations run.
I have a DbMigrationsConfiguration class with a seed method, but seed runs after the migrations.
I think it will work if I run my SQL in the constructor but I can't get a reference to the context.
Does anyone know how to do this?