CSharpMigrationCodeGenerator.WriteProperty Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Génère une propriété pour renvoyer le modèle source ou cible dans le fichier code-behind.
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)
Paramètres
- name
- String
Nom de la propriété.
- modelvalue
- String
Modèle à retourner.
- writer
- IndentedTextWriter
Enregistreur de texte à lequel ajouter le code généré.