CSharpSnapshotGenerator.GenerateProperty Method

Definition

Overloads

GenerateProperty(IProperty, IndentedStringBuilder)

C#
protected virtual void GenerateProperty (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);

Parameters

property
IProperty
stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

Applies to

Entity Framework Core 1.1 i Entity Framework Core 1.0
Proizvod Verzije
Entity Framework Core 1.0, 1.1

GenerateProperty(String, IProperty, IndentedStringBuilder)

Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs

Generates code for an IProperty.

C#
protected virtual void GenerateProperty (string builderName, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);

Parameters

builderName
String

The name of the builder variable.

property
IProperty

The property.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

The builder code is added to.

Applies to

Entity Framework Core 3.1 i druge verzije
Proizvod Verzije
Entity Framework Core 2.0, 2.1, 2.2, 3.0, 3.1

GenerateProperty(String, IProperty, IndentedStringBuilder)

Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs

Generates code for an IProperty.

C#
protected virtual void GenerateProperty (string builderName, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
C#
protected virtual void GenerateProperty (string entityTypeBuilderName, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);

Parameters

builderNameentityTypeBuilderName
String

The name of the builder variable.

property
IProperty

The property.

stringBuilder
IndentedStringBuilder

The builder code is added to.

Applies to

Entity Framework Core 9.0 i druge verzije
Proizvod Verzije
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0