DbTransaction DbTransaction DbTransaction DbTransaction Class

Definition

The base class for a transaction.

public ref class DbTransaction abstract : MarshalByRefObject, IDisposable, System::Data::IDbTransaction
public abstract class DbTransaction : MarshalByRefObject, IDisposable, System.Data.IDbTransaction
type DbTransaction = class
    inherit MarshalByRefObject
    interface IDbTransaction
    interface IDisposable
Public MustInherit Class DbTransaction
Inherits MarshalByRefObject
Implements IDbTransaction, IDisposable
Inheritance
Derived
Implements

Constructors

DbTransaction() DbTransaction() DbTransaction() DbTransaction()

Initializes a new DbTransaction object.

Properties

Connection Connection Connection Connection

Specifies the DbConnection object associated with the transaction.

DbConnection DbConnection DbConnection DbConnection

Specifies the DbConnection object associated with the transaction.

IsolationLevel IsolationLevel IsolationLevel IsolationLevel

Specifies the IsolationLevel for this transaction.

Methods

Commit() Commit() Commit() Commit()

Commits the database transaction.

CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Dispose() Dispose() Dispose() Dispose()

Releases the unmanaged resources used by the DbTransaction.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources used by the DbTransaction and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
Rollback() Rollback() Rollback() Rollback()

Rolls back a transaction from a pending state.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IDbTransaction.Connection IDbTransaction.Connection IDbTransaction.Connection IDbTransaction.Connection

Gets the DbConnection object associated with the transaction, or a null reference if the transaction is no longer valid.

Applies to

See Also