RelationalTransaction Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RelationalTransaction(IRelationalConnection, DbTransaction, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean) |
Initializes a new instance of the RelationalTransaction class. |
RelationalTransaction(IRelationalConnection, DbTransaction, ILogger, Boolean) |
Initializes a new instance of the RelationalTransaction class. |
RelationalTransaction(IRelationalConnection, DbTransaction, Guid, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean) |
Initializes a new instance of the RelationalTransaction class. |
RelationalTransaction(IRelationalConnection, DbTransaction, Guid, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean, ISqlGenerationHelper) |
Initializes a new instance of the RelationalTransaction class. |
RelationalTransaction(IRelationalConnection, DbTransaction, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean)
- Source:
- RelationalTransaction.cs
- Source:
- RelationalTransaction.cs
Initializes a new instance of the RelationalTransaction class.
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)
Parameters
- connection
- IRelationalConnection
The connection to the database.
- transaction
- DbTransaction
The underlying DbTransaction.
The logger to write to.
- transactionOwned
- Boolean
A value indicating whether the transaction is owned by this class (i.e. if it can be disposed when this class is disposed).
Applies to
RelationalTransaction(IRelationalConnection, DbTransaction, ILogger, Boolean)
Initializes a new instance of the RelationalTransaction class.
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)
Parameters
- connection
- IRelationalConnection
The connection to the database.
- transaction
- DbTransaction
The underlying DbTransaction.
- logger
- ILogger
The logger to write to.
- transactionOwned
- Boolean
A value indicating whether the transaction is owned by this class (i.e. if it can be disposed when this class is disposed).
Applies to
RelationalTransaction(IRelationalConnection, DbTransaction, Guid, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean)
- Source:
- RelationalTransaction.cs
- Source:
- RelationalTransaction.cs
- Source:
- RelationalTransaction.cs
Initializes a new instance of the RelationalTransaction class.
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)
Parameters
- connection
- IRelationalConnection
The connection to the database.
- transaction
- DbTransaction
The underlying DbTransaction.
- transactionId
- Guid
The correlation ID for the transaction.
The logger to write to.
- transactionOwned
- Boolean
A value indicating whether the transaction is owned by this class (i.e. if it can be disposed when this class is disposed).
Applies to
RelationalTransaction(IRelationalConnection, DbTransaction, Guid, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean, ISqlGenerationHelper)
- Source:
- RelationalTransaction.cs
- Source:
- RelationalTransaction.cs
- Source:
- RelationalTransaction.cs
- Source:
- RelationalTransaction.cs
Initializes a new instance of the RelationalTransaction class.
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)
Parameters
- connection
- IRelationalConnection
The connection to the database.
- transaction
- DbTransaction
The underlying DbTransaction.
- transactionId
- Guid
The correlation ID for the transaction.
The logger to write to.
- transactionOwned
- Boolean
A value indicating whether the transaction is owned by this class (i.e. if it can be disposed when this class is disposed).
- sqlGenerationHelper
- ISqlGenerationHelper
The SQL generation helper to use.
Applies to
Entity Framework