DataAccessAdapterCoreRollback Method (String) |
Rolls back the transaction in action to the savepoint with the name savepointName. No internal objects are being reset when this method is called,
so call this Rollback overload only to roll back to a savepoint. To roll back a complete transaction, call Rollback() without specifying a savepoint
name. Create a savepoint by calling SaveTransaction(savePointName)
Namespace: SD.LLBLGen.Pro.ORMSupportClassesAssembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntax public virtual void Rollback(
string savePointName
)
Public Overridable Sub Rollback (
savePointName As String
)
Parameters
- savePointName
- Type: SystemString
name of the savepoint to roll back to.
Implements
IDataAccessAdapterRollback(String)Exceptions Exception | Condition |
---|
InvalidOperationException | If no transaction is in progress. |
ArgumentException | if savePointName is empty or null or there is no savepoint defined with the name specified |
NotSupportedException | if the .NET database provider doesn't support transaction rolling back a transaction to a named
point or when COM+ is used. |
See Also