Update entity model framework dynamically RRS feed

  • Question

  • I want to update ADO.Net Entity Data Model programmatically, so that the EDM is getting the newest version of the database (new tables, values etc.). Once a database table is added or altered the Entity model is out of date. Recompiling the data service is not an option.

    I know that it is possible to update the EDM, by clicking in the Model Designer, Update Model from Database.

    Do you know any solution? Is there any tool for update entity model programatically?

    Tuesday, March 5, 2013 6:22 AM


All replies

  • Hi,

    If I understand you at all, take a look at Huagati DBML/EDMX Tools for Entity Framework:


    You can integrate this tools as a plugin in Visual Studio. And it also offers an API, so you can perform some functionality programatically.


    JA Reyes.

    Please remember to Vote & "Mark As Answer" if this post is helpful to you.
    Por favor, recuerda Votar y "Marcar como respuesta" si la solución de esta pregunta te ha sido útil.

    • Edited by JA Reyes Wednesday, March 6, 2013 8:56 AM Syntax
    Tuesday, March 5, 2013 9:24 AM
  • Hi Geethaeb,

    You could try to use EDM Generator to connect to a data source by using a data source–specific .NET Framework data provider, and generate the conceptual model (.csdl), storage model (.ssdl), and mapping (.msl) files: http://msdn.microsoft.com/en-us/library/bb387165.aspx

    Good day.

    Alexander Sun [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Mike Feng Thursday, April 4, 2013 9:24 AM
    Wednesday, March 6, 2013 7:46 AM