I'm trying to do code first in a new MVC 4 project and have a "journal" mvc that works just fine and its Seed function in /Migrations/Configuration.cs working as well. However, when I went to work on the UserProfile model in AccountModels.cs and then use the Enable-Migrations for it I lost all my seed code for the journal model and it was replace with a shell for UserProfile. :(
When using code first and having multiple models, inevitably all with their own DbContext (unless they should all share one?) how can I retain the seed code for each DbContext and model?
I'm shocked no one else has ran into this problem before. I simply don't want Configuration.cs re-written every-time I use the package manager console in a code first mvc project when doing the Enable-Migrations command, or at least why cant each dbcontext have their own configuration.cs, or something! Looks like I may have to offer a bounty soon.