Partilhar via


RelationalTransaction Construtores

Definição

Sobrecargas

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

Inicializa uma nova instância da classe RelationalTransaction.

RelationalTransaction(IRelationalConnection, DbTransaction, ILogger, Boolean)

Inicializa uma nova instância da classe RelationalTransaction.

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

Inicializa uma nova instância da classe RelationalTransaction.

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

Inicializa uma nova instância da classe RelationalTransaction.

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

Origem:
RelationalTransaction.cs
Origem:
RelationalTransaction.cs

Inicializa uma nova instância da classe RelationalTransaction.

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

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

Aplica-se a

RelationalTransaction(IRelationalConnection, DbTransaction, ILogger, Boolean)

Inicializa uma nova instância da classe RelationalTransaction.

public RelationalTransaction (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbTransaction transaction, Microsoft.Extensions.Logging.ILogger logger, bool transactionOwned);
new Microsoft.EntityFrameworkCore.Storage.RelationalTransaction : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbTransaction * Microsoft.Extensions.Logging.ILogger * bool -> Microsoft.EntityFrameworkCore.Storage.RelationalTransaction
Public Sub New (connection As IRelationalConnection, transaction As DbTransaction, logger As ILogger, transactionOwned As Boolean)

Parâmetros

connection
IRelationalConnection

A conexão com o banco de dados.

transaction
DbTransaction

O DbTransaction subjacente.

logger
ILogger

O agente no 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).

Aplica-se a

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

Origem:
RelationalTransaction.cs
Origem:
RelationalTransaction.cs
Origem:
RelationalTransaction.cs

Inicializa uma nova instância da classe RelationalTransaction.

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

Parâmetros

connection
IRelationalConnection

A conexão com o banco de dados.

transaction
DbTransaction

O DbTransaction subjacente.

transactionId
Guid

A ID de correlação da 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).

Aplica-se a

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

Origem:
RelationalTransaction.cs
Origem:
RelationalTransaction.cs
Origem:
RelationalTransaction.cs
Origem:
RelationalTransaction.cs

Inicializa uma nova instância da classe RelationalTransaction.

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

Parâmetros

connection
IRelationalConnection

A conexão com o banco de dados.

transaction
DbTransaction

O DbTransaction subjacente.

transactionId
Guid

A ID de correlação da 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).

sqlGenerationHelper
ISqlGenerationHelper

O auxiliar de geração de SQL a ser usado.

Aplica-se a