Compartir a través de


MigrationsSqlGenerator.Generate Método

Definición

Sobrecargas

Generate(InsertDataOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado InsertDataOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(MigrationOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el objeto especificado MigrationOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(RenameColumnOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado RenameColumnOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(RenameIndexOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado RenameIndexOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(RenameSequenceOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado RenameSequenceOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(RenameTableOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado RenameTableOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(RestartSequenceOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado RestartSequenceOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(SqlOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado SqlOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(UpdateDataOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado UpdateDataOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)

Genera comandos a partir de una lista de operaciones.

Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado AddColumnOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado AddForeignKeyOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado AddPrimaryKeyOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado CreateIndexOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado CreateTableOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado DropColumnOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado DropForeignKeyOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder, Boolean)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado DropIndexOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado DropPrimaryKeyOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(DropTableOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado DropTableOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(InsertDataOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado InsertDataOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado EnsureSchemaOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(DropUniqueConstraintOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado DropUniqueConstraintOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(DropSequenceOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado DropSequenceOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(IReadOnlyList<MigrationOperation>, IModel)

Genera comandos a partir de una lista de operaciones.

Generate(AddColumnOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado AddColumnOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado AddForeignKeyOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado AddPrimaryKeyOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(AddUniqueConstraintOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado AddUniqueConstraintOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(AlterColumnOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado AlterColumnOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado AlterDatabaseOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(AlterSequenceOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado AlterSequenceOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(AlterTableOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado AlterTableOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Generate(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado CreateCheckConstraintOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado CreateIndexOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(CreateSequenceOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado CreateSequenceOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado CreateTableOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(DeleteDataOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado DeleteDataOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(DropCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado DropCheckConstraintOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado DropColumnOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado DropForeignKeyOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado DropIndexOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Tenga en cuenta que la implementación predeterminada de este método produce NotImplementedException. Los proveedores deben invalidar si son compatibles con este tipo de operación.

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado DropPrimaryKeyOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(DropSchemaOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado DropSchemaOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado AddCheckConstraintOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(DropTableOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado DropTableOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

Generate(InsertDataOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado InsertDataOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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(MigrationOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el objeto especificado MigrationOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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 envío doble para llamar a uno de los métodos "Generate" que son específicos 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(RenameColumnOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado RenameColumnOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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.

Comentarios

Tenga en cuenta que la implementación predeterminada de este método produce NotSupportedException. Los proveedores deben invalidar si son compatibles con este tipo de operación.

Se aplica a

Generate(RenameIndexOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado RenameIndexOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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.

Comentarios

Tenga en cuenta que la implementación predeterminada de este método produce NotSupportedException. Los proveedores deben invalidar si son compatibles con este tipo de operación.

Se aplica a

Generate(RenameSequenceOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado RenameSequenceOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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.

Comentarios

Tenga en cuenta que la implementación predeterminada de este método produce NotSupportedException. Los proveedores deben invalidar si son compatibles con este tipo de operación.

Se aplica a

Generate(RenameTableOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarlos para compilar comandos para el especificado RenameTableOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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.

Comentarios

Tenga en cuenta que la implementación predeterminada de este método produce NotSupportedException. Los proveedores deben invalidar si son compatibles con este tipo de operación.

Se aplica a

Generate(RestartSequenceOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado RestartSequenceOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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 SqlOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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(UpdateDataOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado UpdateDataOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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

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.

Implementaciones

Se aplica a

Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado AddColumnOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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(AddForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado AddForeignKeyOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado AddPrimaryKeyOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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 objeto especificado CreateIndexOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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 objeto especificado CreateTableOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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 objeto especificado DropColumnOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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 objeto especificado DropForeignKeyOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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)

Los proveedores de bases de datos pueden invalidarlos para compilar 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 = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As DropIndexOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

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.

Comentarios

Tenga en cuenta que la implementación predeterminada de este método produce NotSupportedException. Los proveedores deben invalidar si son compatibles con este tipo de operación.

Se aplica a

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Compila comandos para el objeto especificado DropPrimaryKeyOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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 objeto especificado DropTableOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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

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(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarse para compilar comandos para el especificado EnsureSchemaOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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.

Comentarios

Tenga en cuenta que la implementación predeterminada de este método produce NotSupportedException. Los proveedores deben invalidar si son compatibles con este tipo de operación.

Se aplica a

Generate(DropUniqueConstraintOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado mediante la realización de llamadas en el especificado DropUniqueConstraintOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

Parámetros

operation
DropUniqueConstraintOperation

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(DropSequenceOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado mediante la realización de llamadas en el especificado DropSequenceOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

Parámetros

operation
DropSequenceOperation

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)

Genera comandos a partir de una lista de operaciones.

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

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.

Implementaciones

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

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 mediante la realización de llamadas en el especificado AddForeignKeyOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado mediante la realización de llamadas en el especificado AddPrimaryKeyOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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(AddUniqueConstraintOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado mediante la realización de llamadas en el especificado AddUniqueConstraintOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

Parámetros

operation
AddUniqueConstraintOperation

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)

Los proveedores de bases de datos pueden invalidarse para compilar comandos para el especificado AlterColumnOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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.

Comentarios

Tenga en cuenta que la implementación predeterminada de este método produce NotSupportedException. Los proveedores deben invalidar si son compatibles con este tipo de operación.

Se aplica a

Generate(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarse para compilar comandos para el especificado AlterDatabaseOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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.

Comentarios

Tenga en cuenta que no hay ninguna implementación predeterminada de este método. Los proveedores deben invalidar si son compatibles con este tipo de operación.

Se aplica a

Generate(AlterSequenceOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado mediante la realización de llamadas en el especificado AlterSequenceOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

Parámetros

operation
AlterSequenceOperation

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)

Los proveedores de bases de datos pueden invalidarse para compilar comandos para el especificado AlterTableOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

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

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.

Comentarios

Tenga en cuenta que la implementación predeterminada de este método no hace nada porque no hay metadatos comunes relacionados con esta operación. Los proveedores solo necesitan invalidar este método si tienen algunas anotaciones específicas del proveedor que se deben controlar.

Se aplica a

Generate(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado mediante la realización de llamadas en el especificado CreateCheckConstraintOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

Parámetros

operation
CreateCheckConstraintOperation

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 mediante la realización de llamadas en el especificado CreateIndexOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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(CreateSequenceOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado mediante la realización de llamadas en el especificado CreateSequenceOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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.

Se aplica a

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado mediante la realización de llamadas en el especificado CreateTableOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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 mediante la realización de llamadas en el especificado DeleteDataOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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(DropCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado mediante la realización de llamadas en el especificado DropCheckConstraintOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

Parámetros

operation
DropCheckConstraintOperation

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 mediante la realización de llamadas en el especificado DropColumnOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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 mediante la realización de llamadas en el especificado DropForeignKeyOperationMigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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(DropIndexOperation, IModel, MigrationCommandListBuilder)

Los proveedores de bases de datos pueden invalidarse para compilar comandos para el especificado DropIndexOperation mediante la realización de llamadas en el especificado MigrationCommandListBuilder.

Tenga en cuenta que la implementación predeterminada de este método produce NotImplementedException. Los proveedores deben invalidar si son compatibles con este tipo de operación.

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

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(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado DropPrimaryKeyOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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(DropSchemaOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado DropSchemaOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

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

Parámetros

operation
DropSchemaOperation

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(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado AddCheckConstraintOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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(DropTableOperation, IModel, MigrationCommandListBuilder)

Compila comandos para el especificado DropTableOperation realizando llamadas en el especificado MigrationCommandListBuildery, a continuación, finaliza el comando final.

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

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