Entity Framework - transactions replacing SaveChanges (bool) with SaveChanges (SaveOptions)

This is the next question Using Transaction or SaveChanges (false) and AcceptAllChanges ()?

In particular, about this line context2.SaveChanges(false);

Now SaveChanges (bool) is deprecated. Instead, we should use SaveChanges (SaveOptions).

SaveOptions has the following options:

  • None
  • AcceptAllChangesAfterSave
  • DetectChangesBeforeSave

Which one is displayed in SaveChanges (false)?

+8
entity-framework transactions
source share
1 answer

SaveChanges(SaveOptions.DetectChangesBeforeSave) equivalent to SaveChanges(false)

+10
source share

All Articles