Share via


CommitFailureHandler Constructors

Definition

Overloads

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

Initializes a new instance of the CommitFailureHandler class using the default TransactionContext.

public CommitFailureHandler ();
Public Sub New ()

Remarks

One of the Initialize methods needs to be called before this instance can be used.

Applies to

CommitFailureHandler(Func<DbConnection,TransactionContext>)

Initializes a new instance of the CommitFailureHandler class.

public CommitFailureHandler (Func<System.Data.Common.DbConnection,System.Data.Entity.Infrastructure.TransactionContext> transactionContextFactory);
new System.Data.Entity.Infrastructure.CommitFailureHandler : Func<System.Data.Common.DbConnection, System.Data.Entity.Infrastructure.TransactionContext> -> System.Data.Entity.Infrastructure.CommitFailureHandler
Public Sub New (transactionContextFactory As Func(Of DbConnection, TransactionContext))

Parameters

transactionContextFactory
Func<DbConnection,TransactionContext>

The transaction context factory.

Remarks

One of the Initialize methods needs to be called before this instance can be used.

Applies to