CSharpMigrationCodeGenerator.WriteProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates a property to return the source or target model in the code behind file.
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)
Parameters
- name
- String
Name of the property.
- modelvalue
- String
Model to be returned.
- writer
- IndentedTextWriter
Text writer to add the generated code to.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework