Sdílet prostřednictvím


CSharpMigrationCodeGenerator.WriteProperty Metoda

Definice

Vygeneruje vlastnost pro vrácení zdrojového nebo cílového modelu v souboru kódu.

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)

Parametry

name
String

Název vlastnosti.

modelvalue
String

Model, který se má vrátit.

writer
IndentedTextWriter

Zapisovač textu, do který chcete přidat vygenerovaný kód.

Platí pro