Compartilhar via


TransactionsDatabaseFacadeExtensions.EnlistTransaction Método

Definição

Especifica um existente Transaction a ser usado para operações de banco de dados.

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)

Parâmetros

databaseFacade
DatabaseFacade

O DatabaseFacade para o contexto.

transaction
Transaction

A transação a ser usada.

Comentários

Consulte Transações no EF Core para obter mais informações e exemplos.

Aplica-se a