Compartilhar via


MigrationCommand Construtores

Definição

Sobrecargas

MigrationCommand(IRelationalCommand, Boolean)

Cria uma nova instância do comando .

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

Cria uma nova instância do comando .

MigrationCommand(IRelationalCommand, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)

Cria uma nova instância do comando .

MigrationCommand(IRelationalCommand, Boolean)

Origem:
MigrationCommand.cs
Origem:
MigrationCommand.cs

Cria uma nova instância do comando .

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)

Parâmetros

relationalCommand
IRelationalCommand

O subjacente IRelationalCommand que será usado para executar o comando.

transactionSuppressed
Boolean

Indica se as transações devem ou não ser suprimidas durante a execução do comando.

Aplica-se a

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

Origem:
MigrationCommand.cs
Origem:
MigrationCommand.cs
Origem:
MigrationCommand.cs

Cria uma nova instância do comando .

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)

Parâmetros

relationalCommand
IRelationalCommand

O subjacente IRelationalCommand que será usado para executar o comando.

context
DbContext

O atual DbContext ou nulo, se não for conhecido.

transactionSuppressed
Boolean

Indica se as transações devem ou não ser suprimidas durante a execução do comando.

Aplica-se a

MigrationCommand(IRelationalCommand, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)

Origem:
MigrationCommand.cs
Origem:
MigrationCommand.cs
Origem:
MigrationCommand.cs
Origem:
MigrationCommand.cs

Cria uma nova instância do comando .

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)

Parâmetros

relationalCommand
IRelationalCommand

O subjacente IRelationalCommand que será usado para executar o comando.

context
DbContext

O atual DbContext ou null se não for conhecido.

logger
IRelationalCommandDiagnosticsLogger

O agente de comando.

transactionSuppressed
Boolean

Indica se as transações devem ou não ser suprimidas durante a execução do comando.

Aplica-se a