共用方式為


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

建立器程式碼會新增至 。

適用於