none
How can I switch between databases when I do migration in EF RRS feed

  • Question

  • 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

    add-migration v1

    Then how can I switch this off , change the models in mycontext, add migration to mycontext and update it?


    Thanks in advance!


    王林

    Monday, December 15, 2014 3:19 PM

Answers

  • Hi,

    It seems to be EF issue. So I suggest that you can post it in EF forum where you can get better answers.

    http://forums.asp.net/1227.aspx


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Pengzhen Song Tuesday, December 30, 2014 8:38 AM
    Tuesday, December 16, 2014 9:23 AM