Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Last active October 1, 2017 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonysneed/50e9bc88f8750cf21032de1252891b39 to your computer and use it in GitHub Desktop.
Save tonysneed/50e9bc88f8750cf21032de1252891b39 to your computer and use it in GitHub Desktop.
// Inform EF about changes in an object graph
context.ApplyChanges(order);
// Persist all changes in a single transaction
context.SaveChanges();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment