語言

VisualBasicMigrationCodeGenerator 類別

定義

產生 VB.Net 程式碼以進行基於程式碼的遷移。

public class VisualBasicMigrationCodeGenerator : System.Data.Entity.Migrations.Design.MigrationCodeGenerator
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
public class VisualBasicMigrationCodeGenerator : System.Data.Entity.Migrations.Design.MigrationCodeGenerator
type VisualBasicMigrationCodeGenerator = class
    inherit MigrationCodeGenerator
Public Class VisualBasicMigrationCodeGenerator
Inherits MigrationCodeGenerator
繼承
VisualBasicMigrationCodeGenerator
屬性

建構函式

名稱 Description
VisualBasicMigrationCodeGenerator()

產生 VB.Net 程式碼以進行基於程式碼的遷移。

屬性

名稱 Description
AnnotationGenerators

取得 AnnotationCodeGenerator 正在使用的實例。

(繼承來源 MigrationCodeGenerator)

方法

名稱 Description
Generate(AddColumnOperation, IndentedTextWriter)

產生執行 AddColumnOperation.

Generate(AddForeignKeyOperation, IndentedTextWriter)

產生執行 AddForeignKeyOperation.

Generate(AddPrimaryKeyOperation, IndentedTextWriter)

產生執行 AddPrimaryKeyOperation.

Generate(AlterColumnOperation, IndentedTextWriter)

產生執行 AlterColumnOperation.

Generate(AlterProcedureOperation, IndentedTextWriter)

產生執行 AlterProcedureOperation.

Generate(AlterTableOperation, IndentedTextWriter)

產生 AlterTableOperation.

Generate(Byte)

產生程式碼以指定欄位的預設值 Byte 。

Generate(Byte[])

產生程式碼以指定欄位的預設值 byte[] 。

Generate(ColumnModel, IndentedTextWriter, Boolean)

產生程式碼以指定 的 ColumnModel定義。

Generate(CreateIndexOperation, IndentedTextWriter)

產生執行 CreateIndexOperation.

Generate(CreateProcedureOperation, IndentedTextWriter)

產生執行 CreateProcedureOperation.

Generate(CreateTableOperation, IndentedTextWriter)

產生執行 CreateTableOperation.

Generate(DateTime)

產生程式碼以指定欄位的預設值 DateTime 。

Generate(DateTimeOffset)

產生程式碼以指定欄位的預設值 DateTimeOffset 。

Generate(DbGeography)

產生程式碼以指定欄位的預設值 DbGeography 。

Generate(DbGeography)

產生程式碼以指定欄位的預設值 DbGeography 。

Generate(DbGeometry)

產生程式碼以指定欄位的預設值 DbGeometry 。

Generate(DbGeometry)

產生程式碼以指定欄位的預設值 DbGeometry 。

Generate(Decimal)

產生程式碼以指定欄位的預設值 Decimal 。

Generate(DropColumnOperation, IndentedTextWriter)

產生執行 DropColumnOperation.

Generate(DropForeignKeyOperation, IndentedTextWriter)

產生執行 DropForeignKeyOperation.

Generate(DropIndexOperation, IndentedTextWriter)

產生執行 DropIndexOperation.

Generate(DropPrimaryKeyOperation, IndentedTextWriter)

產生執行 DropPrimaryKeyOperation.

Generate(DropProcedureOperation, IndentedTextWriter)

產生執行 DropProcedureOperation.

Generate(DropTableOperation, IndentedTextWriter)

產生執行 DropTableOperation.

Generate(Guid)

產生程式碼以指定欄位的預設值 Guid 。

Generate(IEnumerable<MigrationOperation>, String, String)

產生使用者可查看與編輯的主要程式碼檔案。

Generate(IEnumerable<String>, IndentedTextWriter)

透過 lambda 表達式產生程式碼,指定一組欄位名稱。

Generate(Int64)

產生程式碼以指定欄位的預設值 Int64 。

Generate(MoveProcedureOperation, IndentedTextWriter)

產生執行 MoveProcedureOperation.

Generate(MoveTableOperation, IndentedTextWriter)

產生執行 MoveTableOperation.

Generate(Object)

產生程式碼以指定未知資料型態欄位的預設值。

Generate(ParameterModel, IndentedTextWriter, Boolean)

產生執行 ParameterModel.

Generate(RenameColumnOperation, IndentedTextWriter)

產生執行 RenameColumnOperation.

Generate(RenameIndexOperation, IndentedTextWriter)

產生執行 RenameIndexOperation.

Generate(RenameProcedureOperation, IndentedTextWriter)

產生執行 RenameProcedureOperation.

Generate(RenameTableOperation, IndentedTextWriter)

產生執行 RenameTableOperation.

Generate(Single)

產生程式碼以指定欄位的預設值 Single 。

Generate(SqlOperation, IndentedTextWriter)

產生執行 SqlOperation.

Generate(String, IEnumerable<MigrationOperation>, String, String, String, String)

產生應該加入使用者專案的程式碼。

Generate(String, String, String, String, String)

產生帶有遷移元資料的檔案程式碼。

Generate(String)

產生程式碼以指定欄位的預設值 String 。

Generate(TimeSpan)

產生程式碼以指定欄位的預設值 TimeSpan 。

GenerateAnnotation(String, Object, IndentedTextWriter)

產生給定註解值的程式碼,該註解值可能是空值。 預設行為是如果有 註冊,則使用 , AnnotationCodeGenerator 否則對註解值呼叫 ToString。

GenerateAnnotations(IDictionary<String,AnnotationValues>, IndentedTextWriter)

產生程式碼以重建給定的註解字典,以便在傳遞這些註解作為參數 DbMigration時使用。 打電話。

GenerateAnnotations(IDictionary<String,Object>, IndentedTextWriter)

產生程式碼以重建給定的註解字典,以便在傳遞這些註解作為參數 DbMigration時使用。 打電話。

GenerateInline(AddForeignKeyOperation, IndentedTextWriter)

產生程式碼以執行 。AddForeignKeyOperationCreateTableOperation

GenerateInline(AddPrimaryKeyOperation, IndentedTextWriter)

產生程式碼以執行 。AddPrimaryKeyOperationCreateTableOperation

GenerateInline(CreateIndexOperation, IndentedTextWriter)

產生程式碼以執行 作為 CreateIndexOperationCreateTableOperation. 的一部分。

GetDefaultNamespaces(Boolean)

取得預設命名空間,必須輸出為「使用」或「匯入」指令,適用於任何產生的程式碼。

(繼承來源 MigrationCodeGenerator)
GetNamespaces(IEnumerable<MigrationOperation>)

取得必須輸出為「使用」或「匯入」指令的命名空間,以處理由指定操作產生的程式碼。

(繼承來源 MigrationCodeGenerator)
Quote(String)

引用識別碼並使用適當的轉義方式,使其能儲存在字串中。

ScrubName(String)

移除資料庫產物名稱中任何無效字元。

TranslateColumnType(PrimitiveTypeKind)

取得用於指定資料型別欄位的型別名稱。

TranslateColumnType(PrimitiveTypeKind)

取得用於指定資料型別欄位的型別名稱。

WriteClassAttributes(IndentedTextWriter, Boolean)

產生類別屬性。

WriteClassEnd(String, IndentedTextWriter)

產生以 WriteClassStart 啟動的類別的結束程式碼。

WriteClassStart(String, String, IndentedTextWriter, String, Boolean, IEnumerable<String>)

透過語句與類別定義產生命名空間。

WriteClassStart(String, String, IndentedTextWriter, String, Boolean)

透過語句與類別定義產生命名空間。

WriteProperty(String, String, IndentedTextWriter)

會產生一個屬性,在程式碼背後的檔案中回傳原始碼或目標模型。

適用於