SqlServerMigrationsSqlGenerator.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(RenameSequenceOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado RenameSequenceOperation fazendo chamadas no determinado MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As RenameSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- RenameSequenceOperation
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(RenameTableOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado RenameTableOperation fazendo chamadas no determinado MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As RenameTableOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- RenameTableOperation
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(RestartSequenceOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado RestartSequenceOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o comando final.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As RestartSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- RestartSequenceOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As SqlOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- SqlOperation
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(SqlServerCreateDatabaseOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado SqlServerCreateDatabaseOperation fazendo chamadas no determinado MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerCreateDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerCreateDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerCreateDatabaseOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As SqlServerCreateDatabaseOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- SqlServerCreateDatabaseOperation
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(SqlServerDropDatabaseOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado SqlServerDropDatabaseOperation fazendo chamadas no determinado MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerDropDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerDropDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerDropDatabaseOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As SqlServerDropDatabaseOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- SqlServerDropDatabaseOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As UpdateDataOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- UpdateDataOperation
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 override System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> Generate (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Metadata.IModel model = default, Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions options = Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions.Default);
public override System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> Generate (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Metadata.IModel? model = default, Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions options = Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions.Default);
override this.Generate : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand>
Public Overrides Function Generate (operations As IReadOnlyList(Of MigrationOperation), Optional model As IModel = Nothing, Optional options As MigrationsSqlGenerationOptions = Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions.Default) As IReadOnlyList(Of MigrationCommand)
Parâmetros
- operations
- IReadOnlyList<MigrationOperation>
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 com script.
Aplica-se a
Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)
Cria comandos para o determinado AddColumnOperation fazendo chamadas no determinado MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As AddColumnOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Parâmetros
- operation
- AddColumnOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As AddPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parâmetros
- operation
- AddPrimaryKeyOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overrides Sub Generate (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parâmetros
- operation
- CreateIndexOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As CreateTableOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parâmetros
- operation
- CreateTableOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As DropColumnOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overrides Sub Generate (operation As DropColumnOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parâmetros
- operation
- DropColumnOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As DropForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parâmetros
- operation
- DropForeignKeyOperation
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)
Cria 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);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As DropIndexOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overrides Sub Generate (operation As DropIndexOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Parâmetros
- operation
- DropIndexOperation
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(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Cria comandos para o determinado DropPrimaryKeyOperation fazendo chamadas no determinado MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As DropPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parâmetros
- operation
- DropPrimaryKeyOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As DropTableOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parâmetros
- operation
- DropTableOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As InsertDataOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parâmetros
- operation
- InsertDataOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As AddForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parâmetros
- operation
- AddForeignKeyOperation
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(RenameIndexOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado RenameIndexOperation fazendo chamadas no determinado MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As RenameIndexOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- RenameIndexOperation
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)
Cria comandos para o determinado DropIndexOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o comando final.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropIndexOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- DropIndexOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As MigrationOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- MigrationOperation
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 o MigrationsSqlGenerator.Generate método específico 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(IReadOnlyList<MigrationOperation>, IModel)
Gera comandos de uma lista de operações.
public override System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> Generate (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Metadata.IModel model);
override this.Generate : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * Microsoft.EntityFrameworkCore.Metadata.IModel -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand>
Public Overrides Function Generate (operations As IReadOnlyList(Of MigrationOperation), model As IModel) As IReadOnlyList(Of MigrationCommand)
Parâmetros
- operations
- IReadOnlyList<MigrationOperation>
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.
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AddCheckConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- AddCheckConstraintOperation
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(AddColumnOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado AddColumnOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o comando final.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AddColumnOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- AddColumnOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AddForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- AddForeignKeyOperation
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(RenameColumnOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado RenameColumnOperation fazendo chamadas no determinado MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As RenameColumnOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- RenameColumnOperation
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)
Cria comandos para o determinado AlterColumnOperation fazendo chamadas no determinado MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AlterColumnOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- AlterColumnOperation
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(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado AlterDatabaseOperation fazendo chamadas no determinado MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AlterDatabaseOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- AlterDatabaseOperation
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)
Cria comandos para o determinado AlterTableOperation fazendo chamadas no determinado MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AlterTableOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- AlterTableOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- CreateIndexOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AddPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- AddPrimaryKeyOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As CreateTableOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- CreateTableOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DeleteDataOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- DeleteDataOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropColumnOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- DropColumnOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- DropForeignKeyOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- DropPrimaryKeyOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropTableOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- DropTableOperation
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(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado EnsureSchemaOperation fazendo chamadas no determinado MigrationCommandListBuilder.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As EnsureSchemaOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- EnsureSchemaOperation
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(InsertDataOperation, IModel, MigrationCommandListBuilder)
Cria comandos para o determinado InsertDataOperation fazendo chamadas no determinado MigrationCommandListBuildere, em seguida, encerra o comando final.
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As InsertDataOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- InsertDataOperation
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 override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As CreateSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)
Parâmetros
- operation
- CreateSequenceOperation
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