RelationalTransactionFactory.Create Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
Create(IRelationalConnection, DbTransaction, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean)
- Origine:
- RelationalTransactionFactory.cs
- Origine:
- RelationalTransactionFactory.cs
Crea un'istanza di RelationalTransaction.
public virtual 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
override this.Create : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> * bool -> Microsoft.EntityFrameworkCore.Storage.RelationalTransaction
Public Overridable 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.
Logger da scrivere.
- 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.
Implementazioni
Si applica a
Create(IRelationalConnection, DbTransaction, Guid, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean)
- Origine:
- RelationalTransactionFactory.cs
- Origine:
- RelationalTransactionFactory.cs
- Origine:
- RelationalTransactionFactory.cs
- Origine:
- RelationalTransactionFactory.cs
- Origine:
- RelationalTransactionFactory.cs
- Origine:
- RelationalTransactionFactory.cs
- Origine:
- RelationalTransactionFactory.cs
Crea un'istanza di RelationalTransaction.
public virtual 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
override this.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 Overridable 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.
Logger da scrivere.
- 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.