CommitFailureHandler Constructor
Initializes a new instance of the CommitFailureHandler class.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | CommitFailureHandler() | Initializes a new instance of the CommitFailureHandler class using the default TransactionContext. |
![]() | CommitFailureHandler(Func<DbConnection, TransactionContext>) | Initializes a new instance of the CommitFailureHandler class. |
CommitFailureHandler Constructor ()
Initializes a new instance of the CommitFailureHandler class using the default TransactionContext.
One of the Initialize methods needs to be called before this instance can be used.
CommitFailureHandler Constructor (Func<DbConnection, TransactionContext>)
Initializes a new instance of the CommitFailureHandler class.
public CommitFailureHandler(
Func<DbConnection, TransactionContext> transactionContextFactory
)
Parameters
- transactionContextFactory
-
Type:
System.Func<DbConnection, TransactionContext>
The transaction context factory.
One of the Initialize methods needs to be called before this instance can be used.