CSharpSnapshotGenerator.GenerateProperties 方法

定义

重载

GenerateProperties(IEnumerable<IProperty>, IndentedStringBuilder)
GenerateProperties(String, IEnumerable<IProperty>, IndentedStringBuilder)

IProperty 对象生成代码。

GenerateProperties(String, IEnumerable<IProperty>, IndentedStringBuilder)

IProperty 对象生成代码。

GenerateProperties(IEnumerable<IProperty>, IndentedStringBuilder)

protected virtual void GenerateProperties (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateProperties : seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateProperties : seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateProperties (properties As IEnumerable(Of IProperty), stringBuilder As IndentedStringBuilder)

参数

properties
IEnumerable<IProperty>
stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

适用于

GenerateProperties(String, IEnumerable<IProperty>, IndentedStringBuilder)

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

IProperty 对象生成代码。

protected virtual void GenerateProperties (string builderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateProperties : string * seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateProperties : string * seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateProperties (builderName As String, properties As IEnumerable(Of IProperty), stringBuilder As IndentedStringBuilder)

参数

builderName
String

生成器变量的名称。

properties
IEnumerable<IProperty>

属性。

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

将生成器代码添加到 。

适用于

GenerateProperties(String, IEnumerable<IProperty>, IndentedStringBuilder)

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

IProperty 对象生成代码。

protected virtual void GenerateProperties (string builderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
protected virtual void GenerateProperties (string entityTypeBuilderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateProperties : string * seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateProperties : string * seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
abstract member GenerateProperties : string * seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateProperties : string * seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateProperties (builderName As String, properties As IEnumerable(Of IProperty), stringBuilder As IndentedStringBuilder)
Protected Overridable Sub GenerateProperties (entityTypeBuilderName As String, properties As IEnumerable(Of IProperty), stringBuilder As IndentedStringBuilder)

参数

builderNameentityTypeBuilderName
String

生成器变量的名称。

properties
IEnumerable<IProperty>

属性。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于