Compartir a través de


IRelationalTransactionFactory.Create Método

Definición

Sobrecargas

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

Crea una instancia de RelationalTransaction.

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

Crea una instancia de RelationalTransaction.

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

Crea una instancia de 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

Parámetros

connection
IRelationalConnection

Conexión a la base de datos.

transaction
DbTransaction

Objeto DbTransaction subyacente.

logger
IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>

Registrador en el que se va a escribir.

transactionOwned
Boolean

Valor que indica si la transacción es propiedad de esta clase (es decir, si se puede eliminar cuando se elimina esta clase).

Devoluciones

Nueva instancia de RelationalTransaction.

Se aplica a

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

Source:
IRelationalTransactionFactory.cs
Source:
IRelationalTransactionFactory.cs
Source:
IRelationalTransactionFactory.cs

Crea una instancia de 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

Parámetros

connection
IRelationalConnection

Conexión a la base de datos.

transaction
DbTransaction

Objeto DbTransaction subyacente.

transactionId
Guid

Identificador de correlación único para esta transacción.

logger
IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>

Registrador en el que se va a escribir.

transactionOwned
Boolean

Valor que indica si la transacción es propiedad de esta clase (es decir, si se puede eliminar cuando se elimina esta clase).

Devoluciones

Nueva instancia de RelationalTransaction.

Se aplica a