CSharpSnapshotGenerator.GeneratePropertyOverride 方法

定义

IRelationalPropertyOverrides生成代码。

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

参数

tableBuilderName
String

表生成器变量的名称。

overrides
IRelationalPropertyOverrides

重写。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于