VisualBasicMigrationCodeGenerator.WriteProperty 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會產生一個屬性,在程式碼背後的檔案中回傳原始碼或目標模型。
protected virtual void WriteProperty(string name, string model, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
protected virtual void WriteProperty(string name, string value, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
abstract member WriteProperty : string * string * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit
override this.WriteProperty : string * string * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit
Protected Overridable Sub WriteProperty (name As String, model As String, writer As IndentedTextWriter)
Protected Overridable Sub WriteProperty (name As String, value As String, writer As IndentedTextWriter)
參數
- name
- String
屬性的名稱。
- modelvalue
- String
型號將歸還。
- writer
- IndentedTextWriter
文字編輯器,用來加入產生的程式碼。