locked
How to detect overwrting the DBContext classes when Updating the Database tables? RRS feed

  • Question

  • User2063139624 posted

    Hi team,

    I have a problem in using EDMX.

    I have crated a Project in MVC with Database first approach for accessing Data. Here, I use data annotation for model validation.

    When I add/modify columns of SQL Server database tables it will be effected in EDMX.

    Here the problem is I Update the DBContext classes all data annotations are deleted and new classes will generated.

    So, again I rewrite Data Annotations validation to all classes in my project. It is too complicated and time wasting.

    How to fix this problem ?

    Thursday, July 23, 2015 2:56 AM

Answers

All replies