共用方式為


RelationalTransaction 建構函式

定義

多載

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

初始化 RelationalTransaction 類別的新執行個體。

RelationalTransaction(IRelationalConnection, DbTransaction, ILogger, Boolean)

初始化 RelationalTransaction 類別的新執行個體。

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

初始化 RelationalTransaction 類別的新執行個體。

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

初始化 RelationalTransaction 類別的新執行個體。

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

初始化 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)

參數

connection
IRelationalConnection

資料庫的連線。

transaction
DbTransaction

基礎 DbTransaction

transactionOwned
Boolean

值,指出此類別是否擁有交易 (亦即,如果可以在處置此類別時處置) 。

適用於

RelationalTransaction(IRelationalConnection, DbTransaction, ILogger, Boolean)

初始化 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)

參數

connection
IRelationalConnection

資料庫的連線。

transaction
DbTransaction

基礎 DbTransaction

logger
ILogger

要寫入的記錄器。

transactionOwned
Boolean

值,指出此類別是否擁有交易 (亦即,如果可以在處置此類別時處置) 。

適用於

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

初始化 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)

參數

connection
IRelationalConnection

資料庫的連線。

transaction
DbTransaction

基礎 DbTransaction

transactionId
Guid

交易的相互關聯識別碼。

transactionOwned
Boolean

值,指出此類別是否擁有交易 (亦即,如果可以在處置此類別時處置) 。

適用於

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

初始化 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)

參數

connection
IRelationalConnection

資料庫的連線。

transaction
DbTransaction

基礎 DbTransaction

transactionId
Guid

交易的相互關聯識別碼。

transactionOwned
Boolean

值,指出此類別是否擁有交易 (亦即,如果可以在處置此類別時處置) 。

sqlGenerationHelper
ISqlGenerationHelper

要使用的 SQL 產生協助程式。

適用於