I am using Entity Framework 5.0 and have implemented custom migrations.
One thing that I'd like to do is perform some calculation and clean-up jobs after a specific migration is completed. I know that the Seed()
method is used for post-migration data manipulation, but it is run with every migration. I want this to only run once after a specific migration is complete.
I would do it inside of the custom migration itself, but the processes require that I pull result sets and perform calculations on them, etc. and I'd like to do this in C# if possible (to utilize our job processing system).
What is the best way to run post-migration processing code for a specific migration?