共用方式為


SqlServerMigrationsSqlGenerator.Generate 方法

定義

多載

Generate(RenameSequenceOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 RenameSequenceOperation 建置命令 MigrationCommandListBuilder

Generate(RenameTableOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 RenameTableOperation 建置命令 MigrationCommandListBuilder

Generate(RestartSequenceOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 RestartSequenceOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(SqlOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 SqlOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(SqlServerCreateDatabaseOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 SqlServerCreateDatabaseOperation 建置命令 MigrationCommandListBuilder

Generate(SqlServerDropDatabaseOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 SqlServerDropDatabaseOperation 建置命令 MigrationCommandListBuilder

Generate(UpdateDataOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 UpdateDataOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)

從作業清單產生命令。

Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

藉由在指定的 上呼叫 ,為指定的 AddColumnOperation 建置命令 MigrationCommandListBuilder

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

藉由在指定的 上呼叫 ,為指定的 AddPrimaryKeyOperation 建置命令 MigrationCommandListBuilder

Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder, Boolean)

藉由在指定的 上呼叫 ,為指定的 CreateIndexOperation 建置命令 MigrationCommandListBuilder

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder, Boolean)

藉由在指定的 上呼叫 ,為指定的 CreateTableOperation 建置命令 MigrationCommandListBuilder

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

藉由在指定的 上呼叫 ,為指定的 DropColumnOperation 建置命令 MigrationCommandListBuilder

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

藉由在指定的 上呼叫 ,為指定的 DropForeignKeyOperation 建置命令 MigrationCommandListBuilder

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder, Boolean)

藉由在指定的 上呼叫 ,為指定的 DropIndexOperation 建置命令 MigrationCommandListBuilder

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

藉由在指定的 上呼叫 ,為指定的 DropPrimaryKeyOperation 建置命令 MigrationCommandListBuilder

Generate(DropTableOperation, IModel, MigrationCommandListBuilder, Boolean)

藉由在指定的 上呼叫 ,為指定的 DropTableOperation 建置命令 MigrationCommandListBuilder

Generate(InsertDataOperation, IModel, MigrationCommandListBuilder, Boolean)

藉由在指定的 上呼叫 ,為指定的 InsertDataOperation 建置命令 MigrationCommandListBuilder

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

藉由在指定的 上呼叫 ,為指定的 AddForeignKeyOperation 建置命令 MigrationCommandListBuilder

Generate(RenameIndexOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 RenameIndexOperation 建置命令 MigrationCommandListBuilder

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 DropIndexOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(MigrationOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 MigrationOperation 建置命令 MigrationCommandListBuilder

Generate(IReadOnlyList<MigrationOperation>, IModel)

從作業清單產生命令。

Generate(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 AddCheckConstraintOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(AddColumnOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 AddColumnOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 AddForeignKeyOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(RenameColumnOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 RenameColumnOperation 建置命令 MigrationCommandListBuilder

Generate(AlterColumnOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 AlterColumnOperation 建置命令 MigrationCommandListBuilder

Generate(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 AlterDatabaseOperation 建置命令 MigrationCommandListBuilder

Generate(AlterTableOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 AlterTableOperation 建置命令 MigrationCommandListBuilder

Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 CreateIndexOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 AddPrimaryKeyOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 CreateTableOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(DeleteDataOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 DeleteDataOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 DropColumnOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 DropForeignKeyOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 DropPrimaryKeyOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(DropTableOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 DropTableOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 EnsureSchemaOperation 建置命令 MigrationCommandListBuilder

Generate(InsertDataOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 InsertDataOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(CreateSequenceOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 CreateSequenceOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

Generate(RenameSequenceOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 RenameSequenceOperation 建置命令 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)

參數

operation
RenameSequenceOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(RenameTableOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 RenameTableOperation 建置命令 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)

參數

operation
RenameTableOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(RestartSequenceOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 RestartSequenceOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

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)

參數

operation
RestartSequenceOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(SqlOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 SqlOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

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)

參數

operation
SqlOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(SqlServerCreateDatabaseOperation, IModel, MigrationCommandListBuilder)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 SqlServerCreateDatabaseOperation 的 命令。

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)

參數

operation
SqlServerCreateDatabaseOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(SqlServerDropDatabaseOperation, IModel, MigrationCommandListBuilder)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 SqlServerDropDatabaseOperation 的 命令。

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)

參數

operation
SqlServerDropDatabaseOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(UpdateDataOperation, IModel, MigrationCommandListBuilder)

在指定的 上呼叫 ,然後終止最終命令,以建置指定的 UpdateDataOperationMigrationCommandListBuilder 命令。

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)

參數

operation
UpdateDataOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)

從作業清單產生命令。

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)

參數

operations
IReadOnlyList<MigrationOperation>

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

options
MigrationsSqlGenerationOptions

產生命令時要使用的選項。

傳回

要執行或編寫腳本的命令清單。

適用於

Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 AddColumnOperation 的 命令。

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)

參數

operation
AddColumnOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

terminate
Boolean

指出是否要在產生作業的 SQL 之後終止命令。

適用於

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 AddPrimaryKeyOperation 的 命令。

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)

參數

operation
AddPrimaryKeyOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

terminate
Boolean

指出是否要在產生作業的 SQL 之後終止命令。

適用於

Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder, Boolean)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 CreateIndexOperation 的 命令。

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)

參數

operation
CreateIndexOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

terminate
Boolean

指出是否要在產生作業的 SQL 之後終止命令。

適用於

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder, Boolean)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 CreateTableOperation 的 命令。

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)

參數

operation
CreateTableOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

terminate
Boolean

指出是否要在產生作業的 SQL 之後終止命令。

適用於

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 DropColumnOperation 的 命令。

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)

參數

operation
DropColumnOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

terminate
Boolean

指出是否要在產生作業的 SQL 之後終止命令。

適用於

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 DropForeignKeyOperation 的 命令。

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)

參數

operation
DropForeignKeyOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

terminate
Boolean

指出是否要在產生作業的 SQL 之後終止命令。

適用於

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder, Boolean)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 DropIndexOperation 的 命令。

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)

參數

operation
DropIndexOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

terminate
Boolean

指出是否要在產生作業的 SQL 之後終止命令。

適用於

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 DropPrimaryKeyOperation 的 命令。

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)

參數

operation
DropPrimaryKeyOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

terminate
Boolean

指出是否要在產生作業的 SQL 之後終止命令。

適用於

Generate(DropTableOperation, IModel, MigrationCommandListBuilder, Boolean)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 DropTableOperation 的 命令。

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)

參數

operation
DropTableOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

terminate
Boolean

指出是否要在產生作業的 SQL 之後終止命令。

適用於

Generate(InsertDataOperation, IModel, MigrationCommandListBuilder, Boolean)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 InsertDataOperation 的 命令。

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)

參數

operation
InsertDataOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

terminate
Boolean

指出是否要在產生作業的 SQL 之後終止命令。

適用於

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 AddForeignKeyOperation 的 命令。

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)

參數

operation
AddForeignKeyOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

terminate
Boolean

指出是否要在產生作業的 SQL 之後終止命令。

適用於

Generate(RenameIndexOperation, IModel, MigrationCommandListBuilder)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 RenameIndexOperation 的 命令。

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)

參數

operation
RenameIndexOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder)

在指定的 上呼叫 ,然後終止最終命令,以建置指定的 DropIndexOperationMigrationCommandListBuilder 命令。

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)

參數

operation
DropIndexOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(MigrationOperation, IModel, MigrationCommandListBuilder)

在指定的 上呼叫 來建置所 MigrationCommandListBuilder 指定 MigrationOperation 的 命令。

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)

參數

operation
MigrationOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

備註

這個方法會使用雙分派機制來呼叫 MigrationsSqlGenerator.Generate 特定子類型的 MigrationOperation 特定方法。 一般而言,資料庫提供者會覆寫這些特定方法,而不是這個方法。 不過,提供者可以覆寫這個方法來處理提供者特定的作業。

適用於

Generate(IReadOnlyList<MigrationOperation>, IModel)

從作業清單產生命令。

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)

參數

operations
IReadOnlyList<MigrationOperation>

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

傳回

要執行或編寫腳本的命令清單。

適用於

Generate(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)

在指定的 上呼叫 ,然後終止最終命令,以建置指定的 AddCheckConstraintOperationMigrationCommandListBuilder 命令。

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)

參數

operation
AddCheckConstraintOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(AddColumnOperation, IModel, MigrationCommandListBuilder)

在指定的 上呼叫 ,然後終止最終命令,以建置指定的 AddColumnOperationMigrationCommandListBuilder 命令。

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)

參數

operation
AddColumnOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 AddForeignKeyOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

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)

參數

operation
AddForeignKeyOperation

作業。

model
IModel

目標模型,如果作業不存在模型,則可能 null 是。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(RenameColumnOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 RenameColumnOperation 建置命令 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)

參數

operation
RenameColumnOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(AlterColumnOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 AlterColumnOperation 建置命令 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)

參數

operation
AlterColumnOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 AlterDatabaseOperation 建置命令 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)

參數

operation
AlterDatabaseOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(AlterTableOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 AlterTableOperation 建置命令 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)

參數

operation
AlterTableOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 CreateIndexOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

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)

參數

operation
CreateIndexOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 AddPrimaryKeyOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

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)

參數

operation
AddPrimaryKeyOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 CreateTableOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

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)

參數

operation
CreateTableOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(DeleteDataOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 DeleteDataOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

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)

參數

operation
DeleteDataOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 DropColumnOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

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)

參數

operation
DropColumnOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 DropForeignKeyOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

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)

參數

operation
DropForeignKeyOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 DropPrimaryKeyOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

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)

參數

operation
DropPrimaryKeyOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(DropTableOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 DropTableOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

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)

參數

operation
DropTableOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 ,為指定的 EnsureSchemaOperation 建置命令 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)

參數

operation
EnsureSchemaOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(InsertDataOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 InsertDataOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

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)

參數

operation
InsertDataOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於

Generate(CreateSequenceOperation, IModel, MigrationCommandListBuilder)

藉由在指定的 上呼叫 來建置所指定 CreateSequenceOperationMigrationCommandListBuilder 的 命令,然後終止最後一個命令。

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)

參數

operation
CreateSequenceOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

適用於