Compartir a través de


RelationalConnection.UseTransactionAsync Método

Definición

Sobrecargas

UseTransactionAsync(DbTransaction, Guid, CancellationToken)

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

UseTransactionAsync(DbTransaction, CancellationToken)

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

UseTransactionAsync(DbTransaction, Guid, CancellationToken)

Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs

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

public virtual System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction> UseTransactionAsync (System.Data.Common.DbTransaction transaction, Guid transactionId, System.Threading.CancellationToken cancellationToken = default);
public virtual 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>
override this.UseTransactionAsync : System.Data.Common.DbTransaction * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction>
Public Overridable 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.

Implementaciones

Excepciones

Se aplica a

UseTransactionAsync(DbTransaction, CancellationToken)

Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs

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

public virtual System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction> UseTransactionAsync (System.Data.Common.DbTransaction transaction, System.Threading.CancellationToken cancellationToken = default);
public virtual 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>
override this.UseTransactionAsync : System.Data.Common.DbTransaction * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction>
Public Overridable 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.

Implementaciones

Excepciones

Se aplica a