How do I get the number of rows affected after a SaveChanges()?
The SaveChanges Method returns an int of all items changed.
MSDN Snippet:
Return Value
Type: System.Int32
The number of objects in an Added, Modified, or Deleted state when SaveChanges was called.
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