none
model first or database first Migration RRS feed

Answers

  • Hello,

    Welcome to MSDN.

    As far as I know, EF Migrations is a product targeted at Code First and doesn't support Database First or Model First operations.

    If you use the migration commands with Database First or Model First, an exception “Creating a DbModelBuilder or writing the EDMX from a DbContext created using Database First or Model First is not supported. EDMX can only be obtained from a Code First DbContext created without using an existing DbCompiledModel” will occur.

    Thanks & Regards.


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by Hani Safa Friday, September 27, 2013 12:40 PM
    Friday, September 27, 2013 6:40 AM
    Moderator

All replies

  • Hello,

    Welcome to MSDN.

    As far as I know, EF Migrations is a product targeted at Code First and doesn't support Database First or Model First operations.

    If you use the migration commands with Database First or Model First, an exception “Creating a DbModelBuilder or writing the EDMX from a DbContext created using Database First or Model First is not supported. EDMX can only be obtained from a Code First DbContext created without using an existing DbCompiledModel” will occur.

    Thanks & Regards.


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by Hani Safa Friday, September 27, 2013 12:40 PM
    Friday, September 27, 2013 6:40 AM
    Moderator
  • For the time being: NO as reply from entityframework on codeplex



    • Edited by Hani Safa Saturday, September 28, 2013 8:32 AM
    Saturday, September 28, 2013 8:31 AM