CSharpSnapshotGenerator.GeneratePropertyAnnotations 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
将生成器代码添加到 。