共用方式為


CSharpSnapshotGenerator.GenerateKeyAnnotations 方法

定義

多載

GenerateKeyAnnotations(IKey, IndentedStringBuilder)

為索引鍵上的批註產生程式碼。

GenerateKeyAnnotations(String, IKey, IndentedStringBuilder)

為索引鍵上的批註產生程式碼。

GenerateKeyAnnotations(IKey, IndentedStringBuilder)

來源:
CSharpSnapshotGenerator.cs

為索引鍵上的批註產生程式碼。

protected virtual void GenerateKeyAnnotations (Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateKeyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateKeyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateKeyAnnotations (key As IKey, stringBuilder As IndentedStringBuilder)

參數

key
IKey

索引鍵。

stringBuilder
IndentedStringBuilder

建立器程式碼會新增至 。

適用於

GenerateKeyAnnotations(String, IKey, IndentedStringBuilder)

來源:
CSharpSnapshotGenerator.cs
來源:
CSharpSnapshotGenerator.cs
來源:
CSharpSnapshotGenerator.cs
來源:
CSharpSnapshotGenerator.cs

為索引鍵上的批註產生程式碼。

protected virtual void GenerateKeyAnnotations (string keyBuilderName, Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateKeyAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateKeyAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateKeyAnnotations (keyBuilderName As String, key As IKey, stringBuilder As IndentedStringBuilder)

參數

keyBuilderName
String

產生器變數的名稱。

key
IKey

索引鍵。

stringBuilder
IndentedStringBuilder

建立器程式碼會新增至 。

適用於