SqlServerMigrationsSqlGenerator.Generate Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
Generate(RenameSequenceOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado RenameSequenceOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- RenameSequenceOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(RenameTableOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado RenameTableOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- RenameTableOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(RestartSequenceOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado mediante la realización de llamadas en el especificado RestartSequenceOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- RestartSequenceOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(SqlOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado mediante la realización de llamadas en el especificado SqlOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- SqlOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(SqlServerCreateDatabaseOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado SqlServerCreateDatabaseOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- SqlServerCreateDatabaseOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(SqlServerDropDatabaseOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado SqlServerDropDatabaseOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- SqlServerDropDatabaseOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(UpdateDataOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado mediante la realización de llamadas en el especificado UpdateDataOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- UpdateDataOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)
Genera comandos a partir de una lista de operaciones.
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)
Parámetros
- operations
- IReadOnlyList<MigrationOperation>
Las operaciones.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- options
- MigrationsSqlGenerationOptions
Las opciones que se usarán al generar comandos.
Devoluciones
Lista de comandos que se van a ejecutar o generar scripts.
Se aplica a
Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila comandos para el especificado AddColumnOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- AddColumnOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
- terminate
- Boolean
Indica si se va a finalizar el comando después de generar SQL para la operación.
Se aplica a
Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila comandos para el especificado AddPrimaryKeyOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- AddPrimaryKeyOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
- terminate
- Boolean
Indica si se va a finalizar el comando después de generar SQL para la operación.
Se aplica a
Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila comandos para el especificado CreateIndexOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- CreateIndexOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
- terminate
- Boolean
Indica si se va a finalizar el comando después de generar SQL para la operación.
Se aplica a
Generate(CreateTableOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila comandos para el especificado CreateTableOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- CreateTableOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
- terminate
- Boolean
Indica si se va a finalizar el comando después de generar SQL para la operación.
Se aplica a
Generate(DropColumnOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila comandos para el especificado DropColumnOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- DropColumnOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
- terminate
- Boolean
Indica si se va a finalizar el comando después de generar SQL para la operación.
Se aplica a
Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila comandos para el especificado DropForeignKeyOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- DropForeignKeyOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
- terminate
- Boolean
Indica si se va a finalizar el comando después de generar SQL para la operación.
Se aplica a
Generate(DropIndexOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila comandos para el especificado DropIndexOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- DropIndexOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
- terminate
- Boolean
Indica si se va a finalizar el comando después de generar SQL para la operación.
Se aplica a
Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila comandos para el especificado DropPrimaryKeyOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- DropPrimaryKeyOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
- terminate
- Boolean
Indica si se va a finalizar el comando después de generar SQL para la operación.
Se aplica a
Generate(DropTableOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila comandos para el especificado DropTableOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- DropTableOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
- terminate
- Boolean
Indica si se va a finalizar el comando después de generar SQL para la operación.
Se aplica a
Generate(InsertDataOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila comandos para el especificado InsertDataOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- InsertDataOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
- terminate
- Boolean
Indica si se va a finalizar el comando después de generar SQL para la operación.
Se aplica a
Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Compila comandos para el especificado AddForeignKeyOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- AddForeignKeyOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
- terminate
- Boolean
Indica si se va a finalizar el comando después de generar SQL para la operación.
Se aplica a
Generate(RenameIndexOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado RenameIndexOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- RenameIndexOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(DropIndexOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado mediante la realización de llamadas en el especificado DropIndexOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- DropIndexOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(MigrationOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado MigrationOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- MigrationOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Comentarios
Este método usa un mecanismo de distribución doble para llamar al MigrationsSqlGenerator.Generate método específico de un determinado subtipo de MigrationOperation. Normalmente, los proveedores de bases de datos invalidarán estos métodos específicos en lugar de este método. Sin embargo, los proveedores pueden invalidar estos métodos para controlar las operaciones específicas del proveedor.
Se aplica a
Generate(IReadOnlyList<MigrationOperation>, IModel)
Genera comandos a partir de una lista de operaciones.
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)
Parámetros
- operations
- IReadOnlyList<MigrationOperation>
Las operaciones.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
Devoluciones
Lista de comandos que se van a ejecutar o generar scripts.
Se aplica a
Generate(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado mediante la realización de llamadas en el especificado AddCheckConstraintOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- AddCheckConstraintOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(AddColumnOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado mediante la realización de llamadas en el especificado AddColumnOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- AddColumnOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado AddForeignKeyOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- AddForeignKeyOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(RenameColumnOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el objeto especificado RenameColumnOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- RenameColumnOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(AlterColumnOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el objeto especificado AlterColumnOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- AlterColumnOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el objeto especificado AlterDatabaseOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- AlterDatabaseOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(AlterTableOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el objeto especificado AlterTableOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- AlterTableOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado CreateIndexOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- CreateIndexOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado AddPrimaryKeyOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- AddPrimaryKeyOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(CreateTableOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado CreateTableOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- CreateTableOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(DeleteDataOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado DeleteDataOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- DeleteDataOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(DropColumnOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado DropColumnOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- DropColumnOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado DropForeignKeyOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- DropForeignKeyOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado DropPrimaryKeyOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- DropPrimaryKeyOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(DropTableOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado DropTableOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- DropTableOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el objeto especificado EnsureSchemaOperation mediante la realización de llamadas en el especificado 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)
Parámetros
- operation
- EnsureSchemaOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(InsertDataOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado InsertDataOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- InsertDataOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.
Se aplica a
Generate(CreateSequenceOperation, IModel, MigrationCommandListBuilder)
Compila comandos para el especificado CreateSequenceOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.
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)
Parámetros
- operation
- CreateSequenceOperation
Operación.
- model
- IModel
Modelo de destino que puede ser null
si las operaciones existen sin un modelo.
- builder
- MigrationCommandListBuilder
Generador de comandos que se va a usar para compilar los comandos.