MigrationsSqlGenerator.Generate Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
Generate(InsertDataOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado InsertDataOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(MigrationOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado MigrationOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Comentários
Esse método usa um mecanismo de expedição dupla para chamar um dos métodos 'Generate' que são específicos para um determinado subtipo de MigrationOperation. Normalmente, os provedores de banco de dados substituirão esses métodos específicos em vez desse método. No entanto, os provedores podem substituir esses métodos para lidar com operações específicas do provedor.
Aplica-se a
Generate(RenameColumnOperation, IModel, MigrationCommandListBuilder)
Pode ser substituído por provedores de banco de dados para criar comandos para o determinado RenameColumnOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Comentários
Observe que a implementação padrão desse método lança NotSupportedException. Os provedores devem substituir se quiserem dar suporte a esse tipo de operação.
Aplica-se a
Generate(RenameIndexOperation, IModel, MigrationCommandListBuilder)
Pode ser substituído por provedores de banco de dados para criar comandos para o determinado RenameIndexOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Comentários
Observe que a implementação padrão desse método lança NotSupportedException. Os provedores devem substituir se quiserem dar suporte a esse tipo de operação.
Aplica-se a
Generate(RenameSequenceOperation, IModel, MigrationCommandListBuilder)
Pode ser substituído por provedores de banco de dados para criar comandos para o determinado RenameSequenceOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Comentários
Observe que a implementação padrão desse método lança NotSupportedException. Os provedores devem substituir se quiserem dar suporte a esse tipo de operação.
Aplica-se a
Generate(RenameTableOperation, IModel, MigrationCommandListBuilder)
Pode ser substituído por provedores de banco de dados para criar comandos para o determinado RenameTableOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Comentários
Observe que a implementação padrão desse método lança NotSupportedException. Os provedores devem substituir se quiserem dar suporte a esse tipo de operação.
Aplica-se a
Generate(RestartSequenceOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado RestartSequenceOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(SqlOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado SqlOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(UpdateDataOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado UpdateDataOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)
Gera comandos de uma lista de operações.
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>
As operações.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- options
- MigrationsSqlGenerationOptions
As opções a serem usadas ao gerar comandos.
Retornos
A lista de comandos a serem executados ou roteirizados.
Implementações
Aplica-se a
Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)
Cria comandos para o determinado AddColumnOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
- terminate
- Boolean
Indica se o comando deve ou não ser encerrado depois de gerar o SQL para a operação.
Aplica-se a
Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Cria comandos para o determinado AddForeignKeyOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
- terminate
- Boolean
Indica se o comando deve ou não ser encerrado depois de gerar o SQL para a operação.
Aplica-se a
Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Cria comandos para o determinado AddPrimaryKeyOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
- terminate
- Boolean
Indica se o comando deve ou não ser encerrado depois de gerar o SQL para a operação.
Aplica-se a
Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder, Boolean)
Cria comandos para o determinado CreateIndexOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
- terminate
- Boolean
Indica se o comando deve ou não ser encerrado depois de gerar o SQL para a operação.
Aplica-se a
Generate(CreateTableOperation, IModel, MigrationCommandListBuilder, Boolean)
Cria comandos para o determinado CreateTableOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
- terminate
- Boolean
Indica se o comando deve ou não ser encerrado depois de gerar o SQL para a operação.
Aplica-se a
Generate(DropColumnOperation, IModel, MigrationCommandListBuilder, Boolean)
Cria comandos para o determinado DropColumnOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
- terminate
- Boolean
Indica se o comando deve ou não ser encerrado depois de gerar o SQL para a operação.
Aplica-se a
Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Cria comandos para o determinado DropForeignKeyOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
- terminate
- Boolean
Indica se o comando deve ou não ser encerrado depois de gerar o SQL para a operação.
Aplica-se a
Generate(DropIndexOperation, IModel, MigrationCommandListBuilder, Boolean)
Pode ser substituído por provedores de banco de dados para criar comandos para o determinado DropIndexOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
- terminate
- Boolean
Indica se o comando deve ou não ser encerrado depois de gerar o SQL para a operação.
Comentários
Observe que a implementação padrão desse método lança NotSupportedException. Os provedores devem substituir se quiserem dar suporte a esse tipo de operação.
Aplica-se a
Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Cria comandos para o determinado DropPrimaryKeyOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
- terminate
- Boolean
Indica se o comando deve ou não ser encerrado depois de gerar o SQL para a operação.
Aplica-se a
Generate(DropTableOperation, IModel, MigrationCommandListBuilder, Boolean)
Cria comandos para o determinado DropTableOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
- terminate
- Boolean
Indica se o comando deve ou não ser encerrado depois de gerar o SQL para a operação.
Aplica-se a
Generate(InsertDataOperation, IModel, MigrationCommandListBuilder, Boolean)
Cria comandos para o determinado InsertDataOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
- terminate
- Boolean
Indica se o comando deve ou não ser encerrado depois de gerar o SQL para a operação.
Aplica-se a
Generate(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)
Pode ser substituído por provedores de banco de dados para criar comandos para o determinado EnsureSchemaOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Comentários
Observe que a implementação padrão desse método lança NotSupportedException. Os provedores devem substituir se quiserem dar suporte a esse tipo de operação.
Aplica-se a
Generate(DropUniqueConstraintOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado DropUniqueConstraintOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(DropSequenceOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado DropSequenceOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(IReadOnlyList<MigrationOperation>, IModel)
Gera comandos de uma lista de operações.
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>
As operações.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
Retornos
A lista de comandos a serem executados ou com script.
Implementações
Aplica-se a
Generate(AddColumnOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado AddColumnOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado AddForeignKeyOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado AddPrimaryKeyOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(AddUniqueConstraintOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado AddUniqueConstraintOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(AlterColumnOperation, IModel, MigrationCommandListBuilder)
Pode ser substituído por provedores de banco de dados para criar comandos para o determinado AlterColumnOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Comentários
Observe que a implementação padrão desse método lança NotSupportedException. Os provedores devem substituir se quiserem dar suporte a esse tipo de operação.
Aplica-se a
Generate(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)
Pode ser substituído por provedores de banco de dados para criar comandos para o determinado AlterDatabaseOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Comentários
Observe que não há nenhuma implementação padrão desse método. Os provedores devem substituir se quiserem dar suporte a esse tipo de operação.
Aplica-se a
Generate(AlterSequenceOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado AlterSequenceOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(AlterTableOperation, IModel, MigrationCommandListBuilder)
Pode ser substituído por provedores de banco de dados para criar comandos para o determinado AlterTableOperation fazendo chamadas no determinado 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Comentários
Observe que a implementação padrão desse método não faz nada porque não há metadados comuns relacionados a essa operação. Os provedores só precisarão substituir esse método se tiverem algumas anotações específicas do provedor que devem ser tratadas.
Aplica-se a
Generate(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado CreateCheckConstraintOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado CreateIndexOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(CreateSequenceOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado CreateSequenceOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(CreateTableOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado CreateTableOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(DeleteDataOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado DeleteDataOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(DropCheckConstraintOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado DropCheckConstraintOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(DropColumnOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado DropColumnOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado DropForeignKeyOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(DropIndexOperation, IModel, MigrationCommandListBuilder)
Pode ser substituído por provedores de banco de dados para criar comandos para o determinado DropIndexOperation fazendo chamadas no determinado MigrationCommandListBuilder.
Observe que a implementação padrão desse método lança NotImplementedException. Os provedores devem substituir se quiserem dar suporte a esse tipo de operação.
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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado DropPrimaryKeyOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(DropSchemaOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado DropSchemaOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado AddCheckConstraintOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Generate(DropTableOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado DropTableOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o 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
A operação.
- model
- IModel
O modelo de destino que pode ser null
se as operações existirem sem um modelo.
- builder
- MigrationCommandListBuilder
O construtor de comandos a ser usado para criar os comandos.
Aplica-se a
Entity Framework