Click or drag to resize

ITransaction Interface

Interface for the definition of a Transaction class which is used to control a serie of actions on multiple entities or entity collection classes. SelfServicing specific

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public interface ITransaction : ITransactionController, 
	IDisposable

The ITransaction type exposes the following members.

Properties
  NameDescription
Public propertyConnectionString
Gets the connection string used for the connection with the database. Only settable with the constructor.
Public propertyConnectionToUse
The connection object to use with this transaction.
Public propertyEntitiesInTransaction
List of GUID's of the entities currently participating in this transaction. This collection is used to keep track of which entities already have been added during a recursive save.
Public propertyIsTransactionInProgress
Gets IsTransactionInProgress. True when there is a transaction in progress.
(Inherited from ITransactionController.)
Public propertyName
Gets the name of the transaction. Only settable with the constructor.
Public propertyPhysicalTransaction
The physical transaction object used over ConnectionToUse.
Public propertyTransactionIsolationLevel
Gets the isolation level the transaction should use. Only settable with the constructor.
Top
Methods
  NameDescription
Public methodAdd
Adds the passed in object as a participant of this transaction.
Public methodAddAuditor
Adds the auditor passed in to the set of auditors to get audit entities from at commit.
Public methodCommit
Commits the controlled ado.net transaction
(Inherited from ITransactionController.)
Public methodCommitAsync
Async variant of commit.
(Inherited from ITransactionController.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodRemove
Removes the passed in object from the transaction.
Public methodRollback
Rolls back the controlled ado.net transaction
(Inherited from ITransactionController.)
Public methodRollback(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 Save(savePointName)
Public methodSave
Creates a savepoint with the name savePointName in the current transaction. You can roll back to this savepoint using Rollback(String).
Top
Events
  NameDescription
Public eventTransactionCommitted
Raised when Commit was successful.
(Inherited from ITransactionController.)
Public eventTransactionRolledback
Raised when Rollback was successful.
(Inherited from ITransactionController.)
Top
See Also