Condividi tramite


TransactionsDatabaseFacadeExtensions.EnlistTransaction Metodo

Definizione

Specifica un oggetto esistente Transaction da usare per le operazioni di database.

public static void EnlistTransaction (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, System.Transactions.Transaction transaction);
public static void EnlistTransaction (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, System.Transactions.Transaction? transaction);
static member EnlistTransaction : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade * System.Transactions.Transaction -> unit
<Extension()>
Public Sub EnlistTransaction (databaseFacade As DatabaseFacade, transaction As Transaction)

Parametri

databaseFacade
DatabaseFacade

Oggetto DatabaseFacade per il contesto.

transaction
Transaction

Transazione da usare.

Commenti

Per altre informazioni ed esempi, vedere Transazioni in EF Core .

Si applica a