This is a follow up question to Using Transactions or SaveChanges(false) and AcceptAllChanges()?
Specifically about this line context2.SaveChanges(false);
Now SaveChanges(bool) is deprecated. We are supposed to use SaveChanges(SaveOptions) instead.
The SaveOptions has following options:
Which of these map to SaveChanges(false)?
SaveChanges(SaveOptions.DetectChangesBeforeSave)
is equivalent of SaveChanges(false)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With