Compartir a través de


MigrationCommand Constructores

Definición

Sobrecargas

MigrationCommand(IRelationalCommand, Boolean)

Crea una nueva instancia del comando .

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

Crea una nueva instancia del comando .

MigrationCommand(IRelationalCommand, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)

Crea una nueva instancia del comando .

MigrationCommand(IRelationalCommand, Boolean)

Source:
MigrationCommand.cs
Source:
MigrationCommand.cs

Crea una nueva instancia del 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

Subyacente IRelationalCommand que se usará para ejecutar el comando .

transactionSuppressed
Boolean

Indica si las transacciones deben suprimirse o no mientras se ejecuta el comando.

Se aplica a

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

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

Crea una nueva instancia del 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

Subyacente IRelationalCommand que se usará para ejecutar el comando .

context
DbContext

DbContext Actual o null si no se conoce.

logger
IDiagnosticsLogger<DbLoggerCategory.Database.Command>

Registrador de comandos.

transactionSuppressed
Boolean

Indica si las transacciones deben suprimirse o no mientras se ejecuta el comando.

Se aplica a

MigrationCommand(IRelationalCommand, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)

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

Crea una nueva instancia del 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

Subyacente IRelationalCommand que se usará para ejecutar el comando .

context
DbContext

Actual DbContext o null si no se conoce.

logger
IRelationalCommandDiagnosticsLogger

Registrador de comandos.

transactionSuppressed
Boolean

Indica si las transacciones deben suprimirse o no mientras se ejecuta el comando.

Se aplica a