Share via


MigrationCommand Constructors

Definition

Overloads

MigrationCommand(IRelationalCommand, Boolean)

Creates a new instance of the command.

MigrationCommand(IRelationalCommand, DbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, Boolean)

Creates a new instance of the command.

MigrationCommand(IRelationalCommand, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)

Creates a new instance of the command.

MigrationCommand(IRelationalCommand, Boolean)

Source:
MigrationCommand.cs
Source:
MigrationCommand.cs

Creates a new instance of the command.

public MigrationCommand (Microsoft.EntityFrameworkCore.Storage.IRelationalCommand relationalCommand, bool transactionSuppressed = false);
new Microsoft.EntityFrameworkCore.Migrations.MigrationCommand : Microsoft.EntityFrameworkCore.Storage.IRelationalCommand * bool -> Microsoft.EntityFrameworkCore.Migrations.MigrationCommand
Public Sub New (relationalCommand As IRelationalCommand, Optional transactionSuppressed As Boolean = false)

Parameters

relationalCommand
IRelationalCommand

The underlying IRelationalCommand that will be used to execute the command.

transactionSuppressed
Boolean

Indicates whether or not transactions should be suppressed while executing the command.

Applies to

MigrationCommand(IRelationalCommand, DbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, Boolean)

Source:
MigrationCommand.cs
Source:
MigrationCommand.cs
Source:
MigrationCommand.cs

Creates a new instance of the command.

public MigrationCommand (Microsoft.EntityFrameworkCore.Storage.IRelationalCommand relationalCommand, Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> logger, bool transactionSuppressed = false);
new Microsoft.EntityFrameworkCore.Migrations.MigrationCommand : Microsoft.EntityFrameworkCore.Storage.IRelationalCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> * bool -> Microsoft.EntityFrameworkCore.Migrations.MigrationCommand
Public Sub New (relationalCommand As IRelationalCommand, context As DbContext, logger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command), Optional transactionSuppressed As Boolean = false)

Parameters

relationalCommand
IRelationalCommand

The underlying IRelationalCommand that will be used to execute the command.

context
DbContext

The current DbContext or null if not known.

transactionSuppressed
Boolean

Indicates whether or not transactions should be suppressed while executing the command.

Applies to

MigrationCommand(IRelationalCommand, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)

Source:
MigrationCommand.cs
Source:
MigrationCommand.cs
Source:
MigrationCommand.cs
Source:
MigrationCommand.cs

Creates a new instance of the command.

public MigrationCommand (Microsoft.EntityFrameworkCore.Storage.IRelationalCommand relationalCommand, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger logger, bool transactionSuppressed = false);
new Microsoft.EntityFrameworkCore.Migrations.MigrationCommand : Microsoft.EntityFrameworkCore.Storage.IRelationalCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger * bool -> Microsoft.EntityFrameworkCore.Migrations.MigrationCommand
Public Sub New (relationalCommand As IRelationalCommand, context As DbContext, logger As IRelationalCommandDiagnosticsLogger, Optional transactionSuppressed As Boolean = false)

Parameters

relationalCommand
IRelationalCommand

The underlying IRelationalCommand that will be used to execute the command.

context
DbContext

The current DbContext or null if not known.

logger
IRelationalCommandDiagnosticsLogger

The command logger.

transactionSuppressed
Boolean

Indicates whether or not transactions should be suppressed while executing the command.

Applies to