DbContextTransaction Class

Entity Framework 6.0
 

Wraps access to the transaction object on the underlying store connection and ensures that the Entity Framework executes commands on the database within the context of that transaction. An instance of this class is retrieved by calling BeginTransaction() on the DbContextDatabase object.

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

System.Object
  System.Data.Entity.DbContextTransaction

public class DbContextTransaction : IDisposable

NameDescription
System_CAPS_pubpropertyUnderlyingTransaction

Gets the database (store) transaction that is underlying this context transaction.

NameDescription
System_CAPS_pubmethodCommit()

Commits the underlying store transaction.

System_CAPS_pubmethodDispose()

Cleans up this transaction object and ensures the Entity Framework is no longer using that transaction.

System_CAPS_protmethodDispose(Boolean)

Releases the resources used by this transaction object.

System_CAPS_pubmethodEquals(Object)

Determines whether this instance is equal to the specified object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code of the current instance.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the underlying type associated with this instance.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRollback()

Rolls back the underlying store transaction.

System_CAPS_pubmethodToString()

Returns the string representation of this instance.(Overrides Object.ToString().)

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: