CSharpSnapshotGenerator.GeneratePropertyAnnotations 方法

定义

重载

GeneratePropertyAnnotations(IProperty, IndentedStringBuilder)

为 上的 IProperty批注生成代码。

GeneratePropertyAnnotations(String, IProperty, IndentedStringBuilder)

为 上的 IProperty批注生成代码。

GeneratePropertyAnnotations(IProperty, IndentedStringBuilder)

为 上的 IProperty批注生成代码。

GeneratePropertyAnnotations(IProperty, IndentedStringBuilder)

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

为 上的 IProperty批注生成代码。

protected virtual void GeneratePropertyAnnotations (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GeneratePropertyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GeneratePropertyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GeneratePropertyAnnotations (property As IProperty, stringBuilder As IndentedStringBuilder)

参数

property
IProperty

属性。

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

将生成器代码添加到 。

适用于

GeneratePropertyAnnotations(String, IProperty, IndentedStringBuilder)

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

为 上的 IProperty批注生成代码。

protected virtual void GeneratePropertyAnnotations (string propertyBuilderName, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GeneratePropertyAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GeneratePropertyAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GeneratePropertyAnnotations (propertyBuilderName As String, property As IProperty, stringBuilder As IndentedStringBuilder)

参数

propertyBuilderName
String

生成器变量的名称。

property
IProperty

属性。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于

GeneratePropertyAnnotations(IProperty, IndentedStringBuilder)

Source:
CSharpSnapshotGenerator.cs

为 上的 IProperty批注生成代码。

protected virtual void GeneratePropertyAnnotations (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GeneratePropertyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GeneratePropertyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GeneratePropertyAnnotations (property As IProperty, stringBuilder As IndentedStringBuilder)

参数

property
IProperty

属性。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于