Avoid entity framework replacing properties added by me RRS feed

  • Question

  • Hi,

    Whenever there are any changes in table column the whole file generated by entity framework replaces all the code with auto generated one. Now I'm using partial class to avoid this problem, But now I have come across a situation where some list has to be initialized in constructor since there are no partial constructor this is not possible, Please suggest any work around to avoid code replace or to do it in a better way.

    • Moved by CoolDadTx Tuesday, December 13, 2016 12:11 AM EF related
    Saturday, December 10, 2016 4:01 PM


All replies