SqlServerMigrationsSqlGenerator.Generate Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
Generate(RenameSequenceOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato RenameSequenceOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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.
Si applica a
Generate(RenameTableOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato RenameTableOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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.
Si applica a
Generate(RestartSequenceOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato RestartSequenceOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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 SqlOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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(SqlServerCreateDatabaseOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato SqlServerCreateDatabaseOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerCreateDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerCreateDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerCreateDatabaseOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As SqlServerCreateDatabaseOperation, model As IModel, builder As MigrationCommandListBuilder)
Parametri
- operation
- SqlServerCreateDatabaseOperation
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(SqlServerDropDatabaseOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato SqlServerDropDatabaseOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerDropDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerDropDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerDropDatabaseOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As SqlServerDropDatabaseOperation, model As IModel, builder As MigrationCommandListBuilder)
Parametri
- operation
- SqlServerDropDatabaseOperation
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 UpdateDataOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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 override 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 override 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);
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 Overrides 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.
Si applica a
Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila i comandi per l'oggetto specificato AddColumnOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As AddColumnOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
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 o meno il comando dopo la generazione di SQL per l'operazione.
Si applica a
Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila i comandi per l'oggetto specificato AddPrimaryKeyOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides 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 o meno il comando dopo la generazione di SQL per l'operazione.
Si applica a
Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila i comandi per l'oggetto specificato CreateIndexOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overrides 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 o meno il comando dopo la generazione di SQL per l'operazione.
Si applica a
Generate(CreateTableOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila i comandi per l'oggetto specificato CreateTableOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides 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 o meno il comando dopo la generazione di SQL per l'operazione.
Si applica a
Generate(DropColumnOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila i comandi per l'oggetto specificato DropColumnOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As DropColumnOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overrides 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 o meno il comando dopo la generazione di SQL per l'operazione.
Si applica a
Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila i comandi per l'oggetto specificato DropForeignKeyOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides 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 o meno il comando dopo la generazione di SQL per l'operazione.
Si applica a
Generate(DropIndexOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila i comandi per l'oggetto specificato DropIndexOperation effettuando 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);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
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, terminate As Boolean)
Protected Overrides Sub Generate (operation As DropIndexOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
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 o meno il comando dopo la generazione di SQL per l'operazione.
Si applica a
Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila i comandi per l'oggetto specificato DropPrimaryKeyOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides 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 o meno il comando dopo la generazione di SQL per l'operazione.
Si applica a
Generate(DropTableOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila i comandi per l'oggetto specificato DropTableOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides 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 o meno il comando dopo la generazione di SQL per l'operazione.
Si applica a
Generate(InsertDataOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila i comandi per l'oggetto specificato InsertDataOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides 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 o meno il comando dopo la generazione di SQL per l'operazione.
Si applica a
Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila i comandi per l'oggetto specificato AddForeignKeyOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides 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 o meno il comando dopo la generazione di SQL per l'operazione.
Si applica a
Generate(RenameIndexOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato RenameIndexOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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.
Si applica a
Generate(DropIndexOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato DropIndexOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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(MigrationOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato MigrationOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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 a doppio invio per chiamare il MigrationsSqlGenerator.Generate metodo specifico di un determinato sottotipo di MigrationOperation. In genere, i provider di database eseguiranno l'override di questi metodi specifici anziché di questo metodo. Tuttavia, i provider possono eseguire l'override di questi metodi per gestire operazioni specifiche del provider.
Si applica a
Generate(IReadOnlyList<MigrationOperation>, IModel)
Genera comandi da un elenco di operazioni.
public override System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> Generate (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Metadata.IModel model);
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 Overrides Function Generate (operations As IReadOnlyList(Of MigrationOperation), model As IModel) 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.
Si applica a
Generate(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato AddCheckConstraintOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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(AddColumnOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato AddColumnOperation effettuando chiamate all'oggetto specificato MigrationCommandListBuildere quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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(RenameColumnOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato RenameColumnOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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.
Si applica a
Generate(AlterColumnOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato AlterColumnOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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.
Si applica a
Generate(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato AlterDatabaseOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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.
Si applica a
Generate(AlterTableOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato AlterTableOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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.
Si applica a
Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato CreateIndexOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato AddPrimaryKeyOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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(CreateTableOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato CreateTableOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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(DropColumnOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato DropColumnOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato DropPrimaryKeyOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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(DropTableOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato DropTableOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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
Generate(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato EnsureSchemaOperation eseguendo chiamate all'oggetto specificato MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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.
Si applica a
Generate(InsertDataOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato InsertDataOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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(CreateSequenceOperation, IModel, MigrationCommandListBuilder)
Compila i comandi per l'oggetto specificato CreateSequenceOperationMigrationCommandListBuildereseguendo chiamate su , quindi termina il comando finale.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides 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.