共用方式為


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

建立器程式碼會新增至 。

適用於