Show / Hide Table of Contents

Class SoTransaction

Represents a transaction to be performed at a data source, and is implemented by .NET Framework data providers that access relational databases.

Inheritance
Object
SoTransaction
Implements
IDbTransaction
IDisposable
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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.

Implements

System.Data.IDbTransaction
System.IDisposable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top