Condividi tramite


MigrationsSqlGenerator.Generate Metodo

Definizione

Overload

Generate(InsertDataOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato InsertDataOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(MigrationOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato MigrationOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(RenameColumnOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato RenameColumnOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(RenameIndexOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato RenameIndexOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(RenameSequenceOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato RenameSequenceOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(RenameTableOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato RenameTableOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(RestartSequenceOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato RestartSequenceOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(SqlOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato SqlOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(UpdateDataOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato UpdateDataOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)

Genera comandi da un elenco di operazioni.

Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato AddColumnOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato AddForeignKeyOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato AddPrimaryKeyOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato CreateIndexOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato CreateTableOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato DropColumnOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato DropForeignKeyOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder, Boolean)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato DropIndexOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato DropPrimaryKeyOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(DropTableOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato DropTableOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(InsertDataOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato InsertDataOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato EnsureSchemaOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(DropUniqueConstraintOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropUniqueConstraintOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(DropSequenceOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropSequenceOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(IReadOnlyList<MigrationOperation>, IModel)

Genera comandi da un elenco di operazioni.

Generate(AddColumnOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato AddColumnOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato AddForeignKeyOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato AddPrimaryKeyOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(AddUniqueConstraintOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato AddUniqueConstraintOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(AlterColumnOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato AlterColumnOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato AlterDatabaseOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(AlterSequenceOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato AlterSequenceOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(AlterTableOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato AlterTableOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Generate(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato CreateCheckConstraintOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato CreateIndexOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(CreateSequenceOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato CreateSequenceOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato CreateTableOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(DeleteDataOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DeleteDataOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(DropCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropCheckConstraintOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropColumnOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropForeignKeyOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato DropIndexOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.

Si noti che l'implementazione predefinita di questo metodo genera NotImplementedException. I provider devono eseguire l'override se devono supportare questo tipo di operazione.

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropPrimaryKeyOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(DropSchemaOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropSchemaOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato AddCheckConstraintOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(DropTableOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropTableOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

Generate(InsertDataOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato InsertDataOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As InsertDataOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
InsertDataOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(MigrationOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato MigrationOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As MigrationOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
MigrationOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Commenti

Questo metodo usa un meccanismo di distribuzione doppia per chiamare uno dei metodi 'Generate' specifici di un determinato sottotipo di MigrationOperation. In genere, i provider di database eseguiranno l'override di questi metodi specifici anziché questo metodo. Tuttavia, i provider possono eseguire l'override di questi metodi per gestire operazioni specifiche del provider.

Si applica a

Generate(RenameColumnOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato RenameColumnOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As RenameColumnOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
RenameColumnOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Commenti

Si noti che l'implementazione predefinita di questo metodo genera NotSupportedException. I provider devono eseguire l'override se devono supportare questo tipo di operazione.

Si applica a

Generate(RenameIndexOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato RenameIndexOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As RenameIndexOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
RenameIndexOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Commenti

Si noti che l'implementazione predefinita di questo metodo genera NotSupportedException. I provider devono eseguire l'override se devono supportare questo tipo di operazione.

Si applica a

Generate(RenameSequenceOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato RenameSequenceOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As RenameSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
RenameSequenceOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Commenti

Si noti che l'implementazione predefinita di questo metodo genera NotSupportedException. I provider devono eseguire l'override se devono supportare questo tipo di operazione.

Si applica a

Generate(RenameTableOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato RenameTableOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As RenameTableOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
RenameTableOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Commenti

Si noti che l'implementazione predefinita di questo metodo genera NotSupportedException. I provider devono eseguire l'override se devono supportare questo tipo di operazione.

Si applica a

Generate(RestartSequenceOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato RestartSequenceOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As RestartSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
RestartSequenceOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(SqlOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato SqlOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As SqlOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
SqlOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(UpdateDataOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato UpdateDataOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As UpdateDataOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
UpdateDataOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)

Genera comandi da un elenco di operazioni.

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> Generate (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Metadata.IModel model = default, Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions options = Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions.Default);
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> Generate (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Metadata.IModel? model = default, Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions options = Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions.Default);
abstract member Generate : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand>
override this.Generate : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand>
Public Overridable Function Generate (operations As IReadOnlyList(Of MigrationOperation), Optional model As IModel = Nothing, Optional options As MigrationsSqlGenerationOptions = Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions.Default) As IReadOnlyList(Of MigrationCommand)

Parametri

operations
IReadOnlyList<MigrationOperation>

Operazioni.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

options
MigrationsSqlGenerationOptions

Opzioni da usare per la generazione di comandi.

Restituisce

Elenco di comandi da eseguire o creare script.

Implementazioni

Si applica a

Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato AddColumnOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As AddColumnOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As AddColumnOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parametri

operation
AddColumnOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

terminate
Boolean

Indica se terminare il comando dopo aver generato SQL per l'operazione.

Si applica a

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato AddForeignKeyOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As AddForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As AddForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parametri

operation
AddForeignKeyOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

terminate
Boolean

Indica se terminare il comando dopo aver generato SQL per l'operazione.

Si applica a

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato AddPrimaryKeyOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As AddPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As AddPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parametri

operation
AddPrimaryKeyOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

terminate
Boolean

Indica se terminare il comando dopo aver generato SQL per l'operazione.

Si applica a

Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato CreateIndexOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parametri

operation
CreateIndexOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

terminate
Boolean

Indica se terminare il comando dopo aver generato SQL per l'operazione.

Si applica a

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato CreateTableOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As CreateTableOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As CreateTableOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parametri

operation
CreateTableOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

terminate
Boolean

Indica se terminare il comando dopo aver generato SQL per l'operazione.

Si applica a

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato DropColumnOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As DropColumnOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As DropColumnOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parametri

operation
DropColumnOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

terminate
Boolean

Indica se terminare il comando dopo aver generato SQL per l'operazione.

Si applica a

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato DropForeignKeyOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As DropForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As DropForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parametri

operation
DropForeignKeyOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

terminate
Boolean

Indica se terminare il comando dopo aver generato SQL per l'operazione.

Si applica a

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder, Boolean)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato DropIndexOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As DropIndexOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parametri

operation
DropIndexOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

terminate
Boolean

Indica se terminare il comando dopo aver generato SQL per l'operazione.

Commenti

Si noti che l'implementazione predefinita di questo metodo genera NotSupportedException. I provider devono eseguire l'override se devono supportare questo tipo di operazione.

Si applica a

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato DropPrimaryKeyOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As DropPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As DropPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parametri

operation
DropPrimaryKeyOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

terminate
Boolean

Indica se terminare il comando dopo aver generato SQL per l'operazione.

Si applica a

Generate(DropTableOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato DropTableOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As DropTableOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As DropTableOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parametri

operation
DropTableOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

terminate
Boolean

Indica se terminare il comando dopo aver generato SQL per l'operazione.

Si applica a

Generate(InsertDataOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila i comandi per l'oggetto specificato InsertDataOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As InsertDataOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As InsertDataOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parametri

operation
InsertDataOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

terminate
Boolean

Indica se terminare il comando dopo aver generato SQL per l'operazione.

Si applica a

Generate(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato EnsureSchemaOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As EnsureSchemaOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
EnsureSchemaOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Commenti

Si noti che l'implementazione predefinita di questo metodo genera NotSupportedException. I provider devono eseguire l'override se devono supportare questo tipo di operazione.

Si applica a

Generate(DropUniqueConstraintOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropUniqueConstraintOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropUniqueConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropUniqueConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropUniqueConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropUniqueConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropUniqueConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
DropUniqueConstraintOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(DropSequenceOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropSequenceOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
DropSequenceOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(IReadOnlyList<MigrationOperation>, IModel)

Genera comandi da un elenco di operazioni.

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> Generate (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Metadata.IModel model = default);
abstract member Generate : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * Microsoft.EntityFrameworkCore.Metadata.IModel -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand>
override this.Generate : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * Microsoft.EntityFrameworkCore.Metadata.IModel -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand>
Public Overridable Function Generate (operations As IReadOnlyList(Of MigrationOperation), Optional model As IModel = Nothing) As IReadOnlyList(Of MigrationCommand)

Parametri

operations
IReadOnlyList<MigrationOperation>

Operazioni.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

Restituisce

Elenco di comandi da eseguire o creare script.

Implementazioni

Si applica a

Generate(AddColumnOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato AddColumnOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AddColumnOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
AddColumnOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato AddForeignKeyOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AddForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
AddForeignKeyOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato AddPrimaryKeyOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AddPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
AddPrimaryKeyOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(AddUniqueConstraintOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato AddUniqueConstraintOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AddUniqueConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
AddUniqueConstraintOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(AlterColumnOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato AlterColumnOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AlterColumnOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
AlterColumnOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Commenti

Si noti che l'implementazione predefinita di questo metodo genera NotSupportedException. I provider devono eseguire l'override se devono supportare questo tipo di operazione.

Si applica a

Generate(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato AlterDatabaseOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AlterDatabaseOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
AlterDatabaseOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Commenti

Si noti che non esiste alcuna implementazione predefinita di questo metodo. I provider devono eseguire l'override se devono supportare questo tipo di operazione.

Si applica a

Generate(AlterSequenceOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato AlterSequenceOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AlterSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
AlterSequenceOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(AlterTableOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato AlterTableOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AlterTableOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
AlterTableOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Commenti

Si noti che l'implementazione predefinita di questo metodo non fa nulla perché non sono presenti metadati comuni relativi a questa operazione. I provider devono eseguire l'override di questo metodo solo se hanno alcune annotazioni specifiche del provider che devono essere gestite.

Si applica a

Generate(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato CreateCheckConstraintOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As CreateCheckConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
CreateCheckConstraintOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato CreateIndexOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
CreateIndexOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(CreateSequenceOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato CreateSequenceOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As CreateSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
CreateSequenceOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato CreateTableOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As CreateTableOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
CreateTableOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(DeleteDataOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DeleteDataOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DeleteDataOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
DeleteDataOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(DropCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropCheckConstraintOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropCheckConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
DropCheckConstraintOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropColumnOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropColumnOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
DropColumnOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropForeignKeyOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
DropForeignKeyOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder)

Può essere sottoposto a override dai provider di database per compilare i comandi per l'oggetto specificato DropIndexOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.

Si noti che l'implementazione predefinita di questo metodo genera NotImplementedException. I provider devono eseguire l'override se devono supportare questo tipo di operazione.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropIndexOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
DropIndexOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropPrimaryKeyOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
DropPrimaryKeyOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(DropSchemaOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropSchemaOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropSchemaOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
DropSchemaOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato AddCheckConstraintOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AddCheckConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
AddCheckConstraintOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a

Generate(DropTableOperation, IModel, MigrationCommandListBuilder)

Compila i comandi per l'oggetto specificato DropTableOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropTableOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
DropTableOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per compilare i comandi.

Si applica a