locked
Update Model from Database... RRS feed

  • Question

  • Hi,

    To fit some functionality on my model that can't be done with the EDMX designer, I need to open my EDMX file and with an XML Editor and perform some modifications manually.

    But later, when I update again my model from database all my modifications are lost.

    Is there some way to avoid this behaviour?

    Thanks in advance,

    JAReyes.


    Please remember to Vote & "Mark As Answer" if this post is helpful to you.
    Por favor, recuerda Votar y "Marcar como respuesta" si la solucion de esta pregunta te ha sido útil.
    Thursday, February 3, 2011 12:09 PM

Answers

  • Hello JAReyes,

     

    Nice to see you again.

    I think KristoferA's reply will help you to solve the issue. Here is the thread:

    Update Model against database changes

    Thanks for your posting here.

     

    Have a nice weekend,


    Jackie Sun [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by JA Reyes Friday, February 4, 2011 12:11 PM
    Friday, February 4, 2011 7:34 AM
  • Hi JA Reyes,

            Jackie Sun suggested good link.....

            Whenever, you update model from database, Entity Framework will generate entirely new xml starting from begining and hence the custom coding is lost.

     


    Thanks,

    Paras Sanghani

    http://parassanghani.blogspot.com/

    Mark As Answer if it helped you.

    • Marked as answer by JA Reyes Friday, February 4, 2011 12:11 PM
    Friday, February 4, 2011 8:18 AM

All replies

  • Hello JAReyes,

     

    Nice to see you again.

    I think KristoferA's reply will help you to solve the issue. Here is the thread:

    Update Model against database changes

    Thanks for your posting here.

     

    Have a nice weekend,


    Jackie Sun [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by JA Reyes Friday, February 4, 2011 12:11 PM
    Friday, February 4, 2011 7:34 AM
  • Hi JA Reyes,

            Jackie Sun suggested good link.....

            Whenever, you update model from database, Entity Framework will generate entirely new xml starting from begining and hence the custom coding is lost.

     


    Thanks,

    Paras Sanghani

    http://parassanghani.blogspot.com/

    Mark As Answer if it helped you.

    • Marked as answer by JA Reyes Friday, February 4, 2011 12:11 PM
    Friday, February 4, 2011 8:18 AM
  • Thank you very much.

    I will try this as soon as I can...

    Regards,

    JAReyes.


    Please remember to Vote & "Mark As Answer" if this post is helpful to you.
    Por favor, recuerda Votar y "Marcar como respuesta" si la solucion de esta pregunta te ha sido útil.
    Friday, February 4, 2011 12:11 PM