CSharpSnapshotGenerator.GeneratePropertyOverridesAnnotations 方法

定义

为属性替代注释生成代码。

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

参数

propertyBuilderName
String

生成器变量的名称。

overrides
IRelationalPropertyOverrides

重写。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于