共用方式為


VisualBasicMigrationCodeGenerator.WriteProperty 方法

定義

產生屬性,以傳回程序代碼後置檔案中的來源或目標模型。

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

要加入所產生程式碼的文字寫入器。

適用於