concept modification in category .net

appears as: modifications, modifications, modification, The modification, modification
Entity Framework 4 in Action

This is an excerpt from Manning's book Entity Framework 4 in Action.

Finally, the Object Services layer coordinates the updates to the data store, querying the state manager for modifications, and it controls the creation of the plumbing code needed to execute the commands.

Now that you know how to handle entity lifecycles, you’re ready to take the next step: persisting modifications made to objects into the database.

If you’re in a connected scenario, you read the data and show it on the form, and when the user saves the modifications, you apply them to the entities. In this case, everything is pretty simple, as the following listing shows, because you’re always connected to the context, which tracks any modifications.

Figure 8.1. A typical concurrency scenario. Both users read the same data, employee 1 saves the records first, and employee 2 overrides them later. New detail 3 and the modifications to detail 2 are lost.