Last post Dec 15, 2014 10:14 PM by Kevin Shen - MSFT
Dec 15, 2014 10:11 AM|Martin304|LINK
I have two databases in my MVC project. One is identity database named DefaultConnection which the MVC template provided. The other is my own database called mycontext. When I want to change models in DefaultConnection，I use
enable-migration -contextTypeName Myappliction.models.DefaultConnection
Then how can I switch this off , change the models in mycontext, add migration to mycontext and update it?
Thanks in advance.
Dec 15, 2014 10:14 PM|Kevin Shen - MSFT|LINK
Since you want to migration the mycontext,you can just enable the migration like below:
enable-migration -contextTypeName mycontext