How to create a class that works with TransactionScope?
问题 Just wondering, if I want to create a class that does something and I want to be able to be used in a TransactionScope, what would I need to implement? That is: My class needs to be aware that it's in a Transaction, but how would it get notified on Commit or Rollback? And on Rollback, how would I actually Rollback? I assume my class would have methods like "Add", "Update" and "Delete" which only modify a temporary list of changes, and a method "Read" which needs to detect if it is in a