Condividi tramite


IRelationalTransactionFactory.Create Metodo

Definizione

Overload

Create(IRelationalConnection, DbTransaction, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean)

Crea un'istanza di RelationalTransaction.

Create(IRelationalConnection, DbTransaction, Guid, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean)

Crea un'istanza di RelationalTransaction.

Create(IRelationalConnection, DbTransaction, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean)

Crea un'istanza di RelationalTransaction.

public Microsoft.EntityFrameworkCore.Storage.RelationalTransaction Create (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> logger, bool transactionOwned);
abstract member Create : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> * bool -> Microsoft.EntityFrameworkCore.Storage.RelationalTransaction
Public Function Create (connection As IRelationalConnection, transaction As DbTransaction, logger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Transaction), transactionOwned As Boolean) As RelationalTransaction

Parametri

connection
IRelationalConnection

Connessione al database.

transaction
DbTransaction

Oggetto DbTransaction sottostante.

transactionOwned
Boolean

Valore che indica se la transazione è di proprietà di questa classe, ad esempio se può essere eliminata quando questa classe viene eliminata.

Restituisce

Nuova istanza di RelationalTransaction.

Si applica a

Create(IRelationalConnection, DbTransaction, Guid, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean)

Origine:
IRelationalTransactionFactory.cs
Origine:
IRelationalTransactionFactory.cs
Origine:
IRelationalTransactionFactory.cs

Crea un'istanza di RelationalTransaction.

public Microsoft.EntityFrameworkCore.Storage.RelationalTransaction Create (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbTransaction transaction, Guid transactionId, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> logger, bool transactionOwned);
abstract member Create : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbTransaction * Guid * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> * bool -> Microsoft.EntityFrameworkCore.Storage.RelationalTransaction
Public Function Create (connection As IRelationalConnection, transaction As DbTransaction, transactionId As Guid, logger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Transaction), transactionOwned As Boolean) As RelationalTransaction

Parametri

connection
IRelationalConnection

Connessione al database.

transaction
DbTransaction

Oggetto DbTransaction sottostante.

transactionId
Guid

ID di correlazione univoco per questa transazione.

transactionOwned
Boolean

Valore che indica se la transazione è di proprietà di questa classe, ad esempio se può essere eliminata quando questa classe viene eliminata.

Restituisce

Nuova istanza di RelationalTransaction.

Si applica a