none
Update Model From Database using ado.net poco entity generator with wcf support RRS feed

  • Question

  • Created a n-tier architecture for a WCF service project using EF 4.0 Database first methodlogy

    Divided EDMX to T4 templates, .tt files are dropped in to a Model Layer & Context.tt files are saved in the same EDMX (Data) layer & changed file inputpath to point DATA Layer. After verifying this articles. I have also gone through third party tool like huagati. Can any one say as I have separated files in different layers, how to update model from database changes, so that which can apply for Conceptual Design (CSDL). When updating Model from Database, Refresh, delete & existing or new functions or procedures are not working except its is adding new tables not even new fields.

    ScreenShots of Project are below:

    N- Tier architecture projects

    poco classes


    V


    • Moved by Caillen Tuesday, November 5, 2013 7:56 AM ADO.NET and EF question.
    • Edited by varun.atluri Tuesday, November 12, 2013 8:30 AM added screenshots
    Monday, November 4, 2013 7:54 AM

All replies

  • Hi varun.atluri,

    I'm moving your question to ADO.NET Entity Framework and LINQ to Entities forum where your could get more efficient responses.

    Thanks for your understanding.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, November 5, 2013 7:58 AM
  • Hello,

    How do you divide these files? Is it that you do this by hand?

    As far as I know, if we want to divide these files, we need to change the T4 templates.

    In the templates, find the all section like below:

    fileManager.StartNewFile(entity.Name+”.cs”)

    And add a path like below:

    fileManager.StartNewFile("E:\\BMX\\Project\\Entity Framework\\Entity Framework 5\\ConsoleApplication1\\Model\\"+entity.Name + ".cs");

    So then it will create the entity class in model folder.

    After these, we can update model from database changes

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, November 6, 2013 5:31 AM
    Moderator