Class SoTransaction
Represents a transaction to be performed at a data source, and is implemented by .NET Framework data providers that access relational databases.
Inherited Members
Namespace: SuperOffice.Data
Assembly: SoDataBase.dll
Syntax
public sealed class SoTransaction : IDbTransaction, IDisposable
Properties
IsolationLevel
Specifies the IsolationLevel for this transaction.
Declaration
public IsolationLevel IsolationLevel { get; }
Property Value
Type | Description |
---|---|
IsolationLevel |
Methods
Commit()
Commits the database transaction.
Declaration
public void Commit()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The transaction has already been committed or rolled back.-or- The connection is broken. |
Exception | An error occurred while trying to commit the transaction. |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Rollback()
Rolls back a transaction from a pending state.
Declaration
public void Rollback()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The transaction has already been committed or rolled back.-or- The connection is broken. |
Exception | An error occurred while trying to commit the transaction. |