Condividi tramite


IRelationalTransactionManager.UseTransaction Metodo

Definizione

Overload

UseTransaction(DbTransaction)

Specifica un oggetto esistente DbTransaction da usare per le operazioni di database.

UseTransaction(DbTransaction, Guid)

Specifica un oggetto esistente DbTransaction da usare per le operazioni di database.

UseTransaction(DbTransaction)

Origine:
IRelationalTransactionManager.cs
Origine:
IRelationalTransactionManager.cs
Origine:
IRelationalTransactionManager.cs

Specifica un oggetto esistente DbTransaction da usare per le operazioni di database.

public Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction UseTransaction (System.Data.Common.DbTransaction transaction);
public Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction? UseTransaction (System.Data.Common.DbTransaction? transaction);
abstract member UseTransaction : System.Data.Common.DbTransaction -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
Public Function UseTransaction (transaction As DbTransaction) As IDbContextTransaction

Parametri

transaction
DbTransaction

Transazione da usare.

Restituisce

Istanza di IDbTransaction che esegue il wrapping della transazione specificata.

Si applica a

UseTransaction(DbTransaction, Guid)

Origine:
IRelationalTransactionManager.cs
Origine:
IRelationalTransactionManager.cs
Origine:
IRelationalTransactionManager.cs

Specifica un oggetto esistente DbTransaction da usare per le operazioni di database.

public Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction UseTransaction (System.Data.Common.DbTransaction transaction, Guid transactionId);
public Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction? UseTransaction (System.Data.Common.DbTransaction? transaction, Guid transactionId);
abstract member UseTransaction : System.Data.Common.DbTransaction * Guid -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
Public Function UseTransaction (transaction As DbTransaction, transactionId As Guid) As IDbContextTransaction

Parametri

transaction
DbTransaction

Transazione da usare.

transactionId
Guid

Identificatore univoco per la transazione.

Restituisce

Istanza di IDbTransaction che esegue il wrapping della transazione specificata.

Si applica a