Condividi tramite


MigrationCommand Costruttori

Definizione

Overload

MigrationCommand(IRelationalCommand, Boolean)

Crea una nuova istanza del comando.

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

Crea una nuova istanza del comando.

MigrationCommand(IRelationalCommand, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)

Crea una nuova istanza del comando.

MigrationCommand(IRelationalCommand, Boolean)

Origine:
MigrationCommand.cs
Origine:
MigrationCommand.cs

Crea una nuova istanza 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)

Parametri

relationalCommand
IRelationalCommand

Sottostante IRelationalCommand che verrà usato per eseguire il comando.

transactionSuppressed
Boolean

Indica se le transazioni devono essere eliminate durante l'esecuzione del comando.

Si applica a

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

Origine:
MigrationCommand.cs
Origine:
MigrationCommand.cs
Origine:
MigrationCommand.cs

Crea una nuova istanza 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)

Parametri

relationalCommand
IRelationalCommand

Sottostante IRelationalCommand che verrà usato per eseguire il comando.

context
DbContext

Valore null o corrente DbContext , se non noto.

transactionSuppressed
Boolean

Indica se le transazioni devono essere eliminate durante l'esecuzione del comando.

Si applica a

MigrationCommand(IRelationalCommand, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)

Origine:
MigrationCommand.cs
Origine:
MigrationCommand.cs
Origine:
MigrationCommand.cs
Origine:
MigrationCommand.cs

Crea una nuova istanza 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)

Parametri

relationalCommand
IRelationalCommand

Sottostante IRelationalCommand che verrà usato per eseguire il comando.

context
DbContext

Oggetto corrente DbContext o null non noto.

logger
IRelationalCommandDiagnosticsLogger

Comando logger.

transactionSuppressed
Boolean

Indica se le transazioni devono essere eliminate durante l'esecuzione del comando.

Si applica a