locked
Entity Framework 4.1 RRS feed

  • Question

  • Hi ,

     

    I've created a database , i ve used the database first appraoch fo the EF , then i generated the the context with vS2010(my entities have no more annotations ), i ve tried to use the code first appraoch to alter sompe table in my database, but it seems to be impossible .

    is that possible ?

     

    Thanks!

    Friday, June 17, 2011 2:38 PM

Answers

  • You can use the generated classes to create a new database using code first. But it currently doesn't support migrating data when you alter the schema.

    • Proposed as answer by Jackie-Sun Monday, June 20, 2011 6:45 AM
    • Marked as answer by Jackie-Sun Friday, July 1, 2011 6:13 AM
    Friday, June 17, 2011 6:48 PM