none
Is there any way to use several Code First Data Contexts and several (different) Migrations in one database? RRS feed

Answers

  • Hi Andrej Artiomov,

    If many projects share the same database, when one project use migration to update the database, the other projects certainly has the same modified database.

    Best Regards


    Allen Li [MSFT]
    MSDN Community Support | Feedback to us

    Monday, April 2, 2012 7:29 AM
    Moderator

All replies

  • Hi Andrej Artiomov,

    Welcome to MSDN Forum.

    What's the meaning of using several Contexts and Migrations? Could you please clarify what's the purpose?

    Best Regards


    Allen Li [MSFT]
    MSDN Community Support | Feedback to us

    Friday, March 30, 2012 5:13 AM
    Moderator
  • Say there is one database shared by several applications, objects are separated by schema. So it would be nice to be able to store and apply migrations for one schema independently from another one.
    Monday, April 2, 2012 6:38 AM
  • Hi Andrej Artiomov,

    If many projects share the same database, when one project use migration to update the database, the other projects certainly has the same modified database.

    Best Regards


    Allen Li [MSFT]
    MSDN Community Support | Feedback to us

    Monday, April 2, 2012 7:29 AM
    Moderator