RelationalConnection.UseTransaction Metodo

Definizione

Overload

UseTransaction(DbTransaction, Guid)

Specifica un oggetto esistente DbTransaction da utilizzare per le operazioni del database.

UseTransaction(DbTransaction)

Specifica un oggetto esistente DbTransaction da utilizzare per le operazioni del database.

UseTransaction(DbTransaction, Guid)

Specifica un oggetto esistente DbTransaction da utilizzare per le operazioni del database.

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

Parametri

transaction
DbTransaction

Transazione da utilizzare.

transactionId
Guid

Identificatore univoco per la transazione.

Restituisce

Istanza di IDbContextTransaction che esegue il wrapping della transazione specificata oppure null se transaction è null.

Implementazioni

Si applica a

UseTransaction(DbTransaction)

Specifica un oggetto esistente DbTransaction da utilizzare per le operazioni del database.

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

Parametri

transaction
DbTransaction

Transazione da utilizzare.

Restituisce

Istanza di IDbTransaction che esegue il wrapping della transazione specificata.

Implementazioni

Si applica a