共用方式為


CSharpMigrationOperationGenerator 類別

定義

用來產生 C# 來建立 MigrationOperation 物件。

public class CSharpMigrationOperationGenerator
public class CSharpMigrationOperationGenerator : Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpMigrationOperationGenerator
type CSharpMigrationOperationGenerator = class
type CSharpMigrationOperationGenerator = class
    interface ICSharpMigrationOperationGenerator
Public Class CSharpMigrationOperationGenerator
Public Class CSharpMigrationOperationGenerator
Implements ICSharpMigrationOperationGenerator
繼承
CSharpMigrationOperationGenerator
實作

備註

如需詳細資訊和範例,請參閱 資料庫移轉和 EF Core 設計階段服務

建構函式

CSharpMigrationOperationGenerator(CSharpHelper)

用來產生 C# 來建立 MigrationOperation 物件。

CSharpMigrationOperationGenerator(CSharpMigrationOperationGeneratorDependencies)

初始化 CSharpMigrationOperationGenerator 類別的新執行個體。

屬性

Dependencies

此服務的相依性。

方法

Annotations(IEnumerable<Annotation>, IndentedStringBuilder)

產生 物件的程式 Annotation 代碼。

Annotations(IEnumerable<Annotation>, IndentedStringBuilder)

產生 物件的程式 Annotation 代碼。

Generate(AddCheckConstraintOperation, IndentedStringBuilder)

產生 的程式 AddCheckConstraintOperation 代碼。

Generate(AddColumnOperation, IndentedStringBuilder)

產生 的程式 AddColumnOperation 代碼。

Generate(AddColumnOperation, IndentedStringBuilder)

產生 的程式 AddColumnOperation 代碼。

Generate(AddForeignKeyOperation, IndentedStringBuilder)

產生 的程式 AddForeignKeyOperation 代碼。

Generate(AddForeignKeyOperation, IndentedStringBuilder)

產生 的程式 AddForeignKeyOperation 代碼。

Generate(AddPrimaryKeyOperation, IndentedStringBuilder)

產生 的程式 AddPrimaryKeyOperation 代碼。

Generate(AddPrimaryKeyOperation, IndentedStringBuilder)

產生 的程式 AddPrimaryKeyOperation 代碼。

Generate(AddUniqueConstraintOperation, IndentedStringBuilder)

產生 的程式 AddUniqueConstraintOperation 代碼。

Generate(AddUniqueConstraintOperation, IndentedStringBuilder)

產生 的程式 AddUniqueConstraintOperation 代碼。

Generate(AlterColumnOperation, IndentedStringBuilder)

產生 的程式 AlterColumnOperation 代碼。

Generate(AlterColumnOperation, IndentedStringBuilder)

產生 的程式 AlterColumnOperation 代碼。

Generate(AlterDatabaseOperation, IndentedStringBuilder)

產生 的程式 AlterDatabaseOperation 代碼。

Generate(AlterDatabaseOperation, IndentedStringBuilder)

產生 的程式 AlterDatabaseOperation 代碼。

Generate(AlterSequenceOperation, IndentedStringBuilder)

產生 的程式 AlterSequenceOperation 代碼。

Generate(AlterSequenceOperation, IndentedStringBuilder)

產生 的程式 AlterSequenceOperation 代碼。

Generate(AlterTableOperation, IndentedStringBuilder)

產生 的程式 AlterTableOperation 代碼。

Generate(AlterTableOperation, IndentedStringBuilder)

產生 的程式 AlterTableOperation 代碼。

Generate(CreateCheckConstraintOperation, IndentedStringBuilder)

產生 的程式 CreateCheckConstraintOperation 代碼。

Generate(CreateIndexOperation, IndentedStringBuilder)

產生 的程式 CreateIndexOperation 代碼。

Generate(CreateIndexOperation, IndentedStringBuilder)

產生 的程式 CreateIndexOperation 代碼。

Generate(CreateSequenceOperation, IndentedStringBuilder)

產生 的程式 CreateSequenceOperation 代碼。

Generate(CreateSequenceOperation, IndentedStringBuilder)

產生 的程式 CreateSequenceOperation 代碼。

Generate(CreateTableOperation, IndentedStringBuilder)

產生 的程式 CreateTableOperation 代碼。

Generate(CreateTableOperation, IndentedStringBuilder)

產生 的程式 CreateTableOperation 代碼。

Generate(DeleteDataOperation, IndentedStringBuilder)

產生 的程式 DeleteDataOperation 代碼。

Generate(DeleteDataOperation, IndentedStringBuilder)

產生 的程式 DeleteDataOperation 代碼。

Generate(DropCheckConstraintOperation, IndentedStringBuilder)

產生 的程式 DropCheckConstraintOperation 代碼。

Generate(DropCheckConstraintOperation, IndentedStringBuilder)

產生 的程式 DropCheckConstraintOperation 代碼。

Generate(DropColumnOperation, IndentedStringBuilder)

產生 的程式 DropColumnOperation 代碼。

Generate(DropColumnOperation, IndentedStringBuilder)

產生 的程式 DropColumnOperation 代碼。

Generate(DropForeignKeyOperation, IndentedStringBuilder)

產生 的程式 DropForeignKeyOperation 代碼。

Generate(DropForeignKeyOperation, IndentedStringBuilder)

產生 的程式 DropForeignKeyOperation 代碼。

Generate(DropIndexOperation, IndentedStringBuilder)

產生 的程式 DropIndexOperation 代碼。

Generate(DropIndexOperation, IndentedStringBuilder)

產生 的程式 DropIndexOperation 代碼。

Generate(DropPrimaryKeyOperation, IndentedStringBuilder)

產生 的程式 DropPrimaryKeyOperation 代碼。

Generate(DropPrimaryKeyOperation, IndentedStringBuilder)

產生 的程式 DropPrimaryKeyOperation 代碼。

Generate(DropSchemaOperation, IndentedStringBuilder)

產生 的程式 DropSchemaOperation 代碼。

Generate(DropSchemaOperation, IndentedStringBuilder)

產生 的程式 DropSchemaOperation 代碼。

Generate(DropSequenceOperation, IndentedStringBuilder)

產生 的程式 DropSequenceOperation 代碼。

Generate(DropSequenceOperation, IndentedStringBuilder)

產生 的程式 DropSequenceOperation 代碼。

Generate(DropTableOperation, IndentedStringBuilder)

產生 的程式 DropTableOperation 代碼。

Generate(DropTableOperation, IndentedStringBuilder)

產生 的程式 DropTableOperation 代碼。

Generate(DropUniqueConstraintOperation, IndentedStringBuilder)

產生 的程式 DropUniqueConstraintOperation 代碼。

Generate(DropUniqueConstraintOperation, IndentedStringBuilder)

產生 的程式 DropUniqueConstraintOperation 代碼。

Generate(EnsureSchemaOperation, IndentedStringBuilder)

產生 的程式 EnsureSchemaOperation 代碼。

Generate(EnsureSchemaOperation, IndentedStringBuilder)

產生 的程式 EnsureSchemaOperation 代碼。

Generate(InsertDataOperation, IndentedStringBuilder)

產生 的程式 InsertDataOperation 代碼。

Generate(InsertDataOperation, IndentedStringBuilder)

產生 的程式 InsertDataOperation 代碼。

Generate(MigrationOperation, IndentedStringBuilder)

產生未知 MigrationOperation 的程式碼。

Generate(MigrationOperation, IndentedStringBuilder)

產生未知 MigrationOperation 的程式碼。

Generate(RenameColumnOperation, IndentedStringBuilder)

產生 的程式 RenameColumnOperation 代碼。

Generate(RenameColumnOperation, IndentedStringBuilder)

產生 的程式 RenameColumnOperation 代碼。

Generate(RenameIndexOperation, IndentedStringBuilder)

產生 的程式 RenameIndexOperation 代碼。

Generate(RenameIndexOperation, IndentedStringBuilder)

產生 的程式 RenameIndexOperation 代碼。

Generate(RenameSequenceOperation, IndentedStringBuilder)

產生 的程式 RenameSequenceOperation 代碼。

Generate(RenameSequenceOperation, IndentedStringBuilder)

產生 的程式 RenameSequenceOperation 代碼。

Generate(RenameTableOperation, IndentedStringBuilder)

產生 的程式 RenameTableOperation 代碼。

Generate(RenameTableOperation, IndentedStringBuilder)

產生 的程式 RenameTableOperation 代碼。

Generate(RestartSequenceOperation, IndentedStringBuilder)

產生 的程式 RestartSequenceOperation 代碼。

Generate(RestartSequenceOperation, IndentedStringBuilder)

產生 的程式 RestartSequenceOperation 代碼。

Generate(SqlOperation, IndentedStringBuilder)

產生 的程式 SqlOperation 代碼。

Generate(SqlOperation, IndentedStringBuilder)

產生 的程式 SqlOperation 代碼。

Generate(String, IReadOnlyList<MigrationOperation>, IndentedStringBuilder)

產生用於建立 MigrationOperation 物件的程式碼。

Generate(String, IReadOnlyList<MigrationOperation>, IndentedStringBuilder)

產生用於建立 MigrationOperation 物件的程式碼。

Generate(UpdateDataOperation, IndentedStringBuilder)

產生 的程式 UpdateDataOperation 代碼。

Generate(UpdateDataOperation, IndentedStringBuilder)

產生 的程式 UpdateDataOperation 代碼。

OldAnnotations(IEnumerable<Annotation>, IndentedStringBuilder)

產生已移除 Annotation 物件的程式碼。

OldAnnotations(IEnumerable<Annotation>, IndentedStringBuilder)

產生已移除 Annotation 物件的程式碼。

適用於