Compartir a través de


RelationalConnection.UseTransaction Método

Definición

Sobrecargas

UseTransaction(DbTransaction, Guid)

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

UseTransaction(DbTransaction)

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

UseTransaction(DbTransaction, Guid)

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 Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction UseTransaction (System.Data.Common.DbTransaction transaction, Guid transactionId);
public virtual Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction? UseTransaction (System.Data.Common.DbTransaction? transaction, Guid transactionId);
abstract member UseTransaction : System.Data.Common.DbTransaction * Guid -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
override this.UseTransaction : System.Data.Common.DbTransaction * Guid -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
Public Overridable Function UseTransaction (transaction As DbTransaction, transactionId As Guid) As IDbContextTransaction

Parámetros

transaction
DbTransaction

Transacción que se va a usar.

transactionId
Guid

Identificador único de la transacción.

Devoluciones

Instancia de IDbContextTransaction que encapsula la transacción proporcionada o null si transaction es null.

Implementaciones

Se aplica a

UseTransaction(DbTransaction)

Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
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 Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction UseTransaction (System.Data.Common.DbTransaction transaction);
public virtual Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction? UseTransaction (System.Data.Common.DbTransaction? transaction);
abstract member UseTransaction : System.Data.Common.DbTransaction -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
override this.UseTransaction : System.Data.Common.DbTransaction -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
Public Overridable Function UseTransaction (transaction As DbTransaction) As IDbContextTransaction

Parámetros

transaction
DbTransaction

Transacción que se va a usar.

Devoluciones

Instancia de IDbTransaction que encapsula la transacción proporcionada.

Implementaciones

Se aplica a