Inherited Project - Need Help Updating Data Model From Database RRS feed

  • Question

  • I've recently inherited a data project(developer left and no documentation) and I'm stuck trying to update the model with changes made in the database. The data model and entity types are in a class library project labeled 'DAL'. If I right click on the database model in design mode, I'm unable to 'Update From Database'. On top of that, the generated files say not to modify. So what are my options here if I want to update the data model from the database?

    I have VS 2010 Ultimate(SP1) installed on Windows 7 Pro. DB is SQL Server 2008 SR2.


    Any help would be appreciated.

    Friday, December 2, 2011 2:28 PM


  • 1. you can deleted the model which need to update and then re-add it to your edmx, but you should inherite your model again.

    2. here is a tool, but it is a third party tool, not sure if it works for inheritance scenario: http://www.huagati.com/dbmltools/

    I am fish.
    • Marked as answer by Alan_chen Friday, December 16, 2011 1:09 AM
    Monday, December 5, 2011 3:30 AM