Compartir a través de


IRelationalTransactionManager.UseTransactionAsync Método

Definición

Sobrecargas

UseTransactionAsync(DbTransaction, CancellationToken)

Especifica un objeto existente DbTransaction que se va a usar para las operaciones de base de datos.

UseTransactionAsync(DbTransaction, Guid, CancellationToken)

Especifica un objeto existente DbTransaction que se va a usar para las operaciones de base de datos.

UseTransactionAsync(DbTransaction, CancellationToken)

Source:
IRelationalTransactionManager.cs
Source:
IRelationalTransactionManager.cs
Source:
IRelationalTransactionManager.cs

Especifica un objeto existente DbTransaction que se va a usar para las operaciones de base de datos.

public System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction> UseTransactionAsync (System.Data.Common.DbTransaction transaction, System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction?> UseTransactionAsync (System.Data.Common.DbTransaction? transaction, System.Threading.CancellationToken cancellationToken = default);
abstract member UseTransactionAsync : System.Data.Common.DbTransaction * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction>
Public Function UseTransactionAsync (transaction As DbTransaction, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDbContextTransaction)

Parámetros

transaction
DbTransaction

Transacción que se va a usar.

cancellationToken
CancellationToken

que CancellationToken se va a observar mientras espera a que se complete la tarea.

Devoluciones

Instancia de IDbTransaction que encapsula la transacción proporcionada.

Excepciones

Se aplica a

UseTransactionAsync(DbTransaction, Guid, CancellationToken)

Source:
IRelationalTransactionManager.cs
Source:
IRelationalTransactionManager.cs
Source:
IRelationalTransactionManager.cs

Especifica un objeto existente DbTransaction que se va a usar para las operaciones de base de datos.

public System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction> UseTransactionAsync (System.Data.Common.DbTransaction transaction, Guid transactionId, System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction?> UseTransactionAsync (System.Data.Common.DbTransaction? transaction, Guid transactionId, System.Threading.CancellationToken cancellationToken = default);
abstract member UseTransactionAsync : System.Data.Common.DbTransaction * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction>
Public Function UseTransactionAsync (transaction As DbTransaction, transactionId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDbContextTransaction)

Parámetros

transaction
DbTransaction

Transacción que se va a usar.

transactionId
Guid

Identificador único de la transacción.

cancellationToken
CancellationToken

que CancellationToken se va a observar mientras espera a que se complete la tarea.

Devoluciones

Instancia de IDbTransaction que encapsula la transacción proporcionada.

Excepciones

Se aplica a