Compartir a través de


RelationalDatabaseFacadeExtensions.UseTransaction Método

Definición

Sobrecargas

UseTransaction(DatabaseFacade, DbTransaction)

Establece el objeto DbTransaction que se va a usar en las operaciones de base de datos en .DbContext

UseTransaction(DatabaseFacade, DbTransaction, Guid)

Establece el objeto DbTransaction que se va a usar en las operaciones de base de datos en .DbContext

UseTransaction(DatabaseFacade, DbTransaction)

Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs

Establece el objeto DbTransaction que se va a usar en las operaciones de base de datos en .DbContext

public static Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction UseTransaction (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, System.Data.Common.DbTransaction transaction);
public static Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction? UseTransaction (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, System.Data.Common.DbTransaction? transaction);
static member UseTransaction : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade * System.Data.Common.DbTransaction -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
<Extension()>
Public Function UseTransaction (databaseFacade As DatabaseFacade, transaction As DbTransaction) As IDbContextTransaction

Parámetros

databaseFacade
DatabaseFacade

DatabaseFacade para el contexto.

transaction
DbTransaction

Objeto DbTransaction que se va a usar.

Devoluciones

que IDbContextTransaction encapsula la transacción especificada.

Comentarios

Consulte Transacciones en EF Core para obtener más información y ejemplos.

Se aplica a

UseTransaction(DatabaseFacade, DbTransaction, Guid)

Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs

Establece el objeto DbTransaction que se va a usar en las operaciones de base de datos en .DbContext

public static Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction UseTransaction (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, System.Data.Common.DbTransaction transaction, Guid transactionId);
public static Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction? UseTransaction (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, System.Data.Common.DbTransaction? transaction, Guid transactionId);
static member UseTransaction : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade * System.Data.Common.DbTransaction * Guid -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
<Extension()>
Public Function UseTransaction (databaseFacade As DatabaseFacade, transaction As DbTransaction, transactionId As Guid) As IDbContextTransaction

Parámetros

databaseFacade
DatabaseFacade

DatabaseFacade para el contexto.

transaction
DbTransaction

Objeto DbTransaction que se va a usar.

transactionId
Guid

Identificador único de la transacción.

Devoluciones

que IDbContextTransaction encapsula la transacción especificada.

Comentarios

Consulte Transacciones en EF Core para obtener más información y ejemplos.

Se aplica a