CSharpSnapshotGenerator.GenerateComplexPropertyAnnotations 方法

定义

为 上的 IProperty批注生成代码。

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

参数

propertyBuilderName
String

生成器变量的名称。

property
IComplexProperty

属性。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于