EntityTransaction Class

EntityTransaction Class

.NET Framework (current version)
 

Specifies the transaction for an P:System.Data.EntityClient.EntityCommand.

Namespace:   System.Data.EntityClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

System.Object
  System.MarshalByRefObject
    System.Data.Common.DbTransaction
      System.Data.EntityClient.EntityTransaction

public sealed class EntityTransaction : DbTransaction

NameDescription
System_CAPS_pubpropertyConnection

Gets EntityConnection for this EntityTransaction.

System_CAPS_pubpropertyIsolationLevel

Gets the isolation level of this EntityTransaction.(Overrides DbTransaction.IsolationLevel.)

NameDescription
System_CAPS_pubmethodCommit()

Commits the underlying transaction.(Overrides DbTransaction.Commit().)

System_CAPS_pubmethodCreateObjRef(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.)

System_CAPS_pubmethodDispose()

Releases the unmanaged resources used by the DbTransaction.(Inherited from DbTransaction.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodRollback()

Rolls back the underlying transaction.(Overrides DbTransaction.Rollback().)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDbTransaction.Connection

Gets the DbConnection object associated with the transaction, or a null reference if the transaction is no longer valid.(Inherited from DbTransaction.)

The EntityTransaction is obtained from the EntityConnection and specifies one or more EntityCommand objects. The EntityTransaction wraps the transaction of the underlying data provider's transaction object.

For code examples, see Managing Connections and Transactions.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft