DbContextTransaction Class
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.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | UnderlyingTransaction | Gets the database (store) transaction that is underlying this context transaction. |
Name | Description | |
---|---|---|
![]() | Commit() | Commits the underlying store transaction. |
![]() | Dispose() | Cleans up this transaction object and ensures the Entity Framework is no longer using that transaction. |
![]() | Dispose(Boolean) | Releases the resources used by this transaction object. |
![]() | Equals(Object) | Determines whether this instance is equal to the specified object.(Overrides Object.Equals(Object).) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | Returns the hash code of the current instance.(Overrides Object.GetHashCode().) |
![]() | GetType() | Gets the underlying type associated with this instance. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | Rollback() | Rolls back the underlying store transaction. |
![]() | ToString() | 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.