CSharpSnapshotGenerator.GeneratePropertyOverrides 方法

定义

IRelationalPropertyOverrides 对象生成代码。

protected virtual void GeneratePropertyOverrides (string tableBuilderName, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GeneratePropertyOverrides : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GeneratePropertyOverrides : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GeneratePropertyOverrides (tableBuilderName As String, entityType As IEntityType, storeObject As StoreObjectIdentifier, stringBuilder As IndentedStringBuilder)

参数

tableBuilderName
String

表生成器变量的名称。

entityType
IEntityType

实体类型。

storeObject
StoreObjectIdentifier

存储对象标识符。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于