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)?
entity-framework transactions
dev.e.loper
source share