Partilhar via


IRelationalTransactionFactory.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)

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

A conexão com o banco de dados.

transaction
DbTransaction

O DbTransaction subjacente.

logger
IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>

O agente para o qual gravar.

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.

Aplica-se a

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

Origem:
IRelationalTransactionFactory.cs
Origem:
IRelationalTransactionFactory.cs
Origem:
IRelationalTransactionFactory.cs

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

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.

logger
IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>

O agente para o qual gravar.

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.

Aplica-se a