none
Updating a higher level entity RRS feed

  • Question

  • I have a high level entity That contains a number of other entities and collections of still other entities. I am using the repository and unit of work pattern. If I call the update method for the high level entity does everythng get updated?

    Thanks.

    Mike

    Tuesday, December 4, 2012 5:25 PM

Answers

  • Hi Mike;

    If you have the entities in local memory, the result of queries made to the database, and if the graph of the entities that you have made changes to then when you execute SaveChanges it will save all entities that have changes made to them.

      


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    • Marked as answer by Alexander Sun Wednesday, December 26, 2012 2:15 AM
    Wednesday, December 5, 2012 4:19 AM