W
WALDO
Once a SqlTransaction object has been committed or rolledback, can the
object still be used?
The reason I ask is because I am building a class that uses a
SqlTransaction object. It has methods that would use the same
transaction. When the user is done, they would call my commit method,
which would commit my SqlTransaction object. What would happen if they
tried to use one of thse same methods AFTER the transaction has been
committed? Would it crash? Would it ignore it? Should I dispose and
destroy my SqlTransaction object upon commitment?
object still be used?
The reason I ask is because I am building a class that uses a
SqlTransaction object. It has methods that would use the same
transaction. When the user is done, they would call my commit method,
which would commit my SqlTransaction object. What would happen if they
tried to use one of thse same methods AFTER the transaction has been
committed? Would it crash? Would it ignore it? Should I dispose and
destroy my SqlTransaction object upon commitment?