Compartilhar via


RelationalTransactionFactory.Create Método

Definição

Sobrecargas

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

Cria uma instância RelationalTransaction.

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

Cria uma instância RelationalTransaction.

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

Origem:
RelationalTransactionFactory.cs
Origem:
RelationalTransactionFactory.cs

Cria uma instância 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

Parâmetros

connection
IRelationalConnection

A conexão com o banco de dados.

transaction
DbTransaction

O DbTransaction subjacente.

transactionOwned
Boolean

Um valor que indica se a transação pertence a essa classe (ou seja, se ela pode ser descartada quando essa classe é descartada).

Retornos

Uma nova instância de RelationalTransaction.

Implementações

Aplica-se a

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

Origem:
RelationalTransactionFactory.cs
Origem:
RelationalTransactionFactory.cs
Origem:
RelationalTransactionFactory.cs
Origem:
RelationalTransactionFactory.cs
Origem:
RelationalTransactionFactory.cs
Origem:
RelationalTransactionFactory.cs
Origem:
RelationalTransactionFactory.cs

Cria uma instância 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

Parâmetros

connection
IRelationalConnection

A conexão com o banco de dados.

transaction
DbTransaction

O DbTransaction subjacente.

transactionId
Guid

A ID de correlação exclusiva para essa transação.

transactionOwned
Boolean

Um valor que indica se a transação pertence a essa classe (ou seja, se ela pode ser descartada quando essa classe é descartada).

Retornos

Uma nova instância de RelationalTransaction.

Implementações

Aplica-se a