EntityTransaction Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the transaction for an EntityCommand.
public ref class EntityTransaction sealed : System::Data::Common::DbTransaction
public sealed class EntityTransaction : System.Data.Common.DbTransaction
type EntityTransaction = class
inherit DbTransaction
Public NotInheritable Class EntityTransaction
Inherits DbTransaction
- Inheritance
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.
Connection |
Gets EntityConnection for this EntityTransaction. |
Db |
When overridden in a derived class, gets the DbConnection object associated with the transaction. (Inherited from DbTransaction) |
Isolation |
Gets the isolation level of this EntityTransaction. |
Supports |
Gets a value that indicates whether this DbTransaction instance supports database savepoints.
If |
Commit() |
Commits the underlying transaction. |
Commit |
Asynchronously commits the database transaction. (Inherited from DbTransaction) |
Create |
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() |
Releases the unmanaged resources used by the DbTransaction. (Inherited from DbTransaction) |
Dispose(Boolean) |
Releases the unmanaged resources used by the DbTransaction and optionally releases the managed resources. (Inherited from DbTransaction) |
Dispose |
Asynchronously diposes the transaction object. (Inherited from DbTransaction) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Obsolete.
Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Initialize |
Obsolete.
Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject) |
Release(String) |
Destroys a savepoint previously defined in the current transaction. This allows the system to reclaim some resources before the transaction ends. (Inherited from DbTransaction) |
Release |
Destroys a savepoint previously defined in the current transaction. This allows the system to reclaim some resources before the transaction ends. (Inherited from DbTransaction) |
Rollback() |
Rolls back the underlying transaction. |
Rollback(String) |
Rolls back all commands that were executed after the specified savepoint was established. (Inherited from DbTransaction) |
Rollback |
Asynchronously rolls back a transaction from a pending state. (Inherited from DbTransaction) |
Rollback |
Rolls back all commands that were executed after the specified savepoint was established. (Inherited from DbTransaction) |
Save(String) |
Creates a savepoint in the transaction. This allows all commands that are executed after the savepoint was established to be rolled back, restoring the transaction state to what it was at the time of the savepoint. (Inherited from DbTransaction) |
Save |
Creates a savepoint in the transaction. This allows all commands that are executed after the savepoint was established to be rolled back, restoring the transaction state to what it was at the time of the savepoint. (Inherited from DbTransaction) |
To |
Returns a string that represents the current object. (Inherited from Object) |
IDb |
Gets the DbConnection object associated with the transaction, or a null reference if the transaction is no longer valid. (Inherited from DbTransaction) |
Product | Versions |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: