共用方式為


CSharpSnapshotGenerator.GenerateForeignKeyAnnotations 方法

定義

多載

GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)

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

GenerateForeignKeyAnnotations(String, IForeignKey, IndentedStringBuilder)

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

GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)

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

GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)

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

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

protected virtual void GenerateForeignKeyAnnotations (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKeyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateForeignKeyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKeyAnnotations (foreignKey As IForeignKey, stringBuilder As IndentedStringBuilder)

參數

foreignKey
IForeignKey

外部索引鍵。

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

建立器程式碼會新增至 。

適用於

GenerateForeignKeyAnnotations(String, IForeignKey, IndentedStringBuilder)

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

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

protected virtual void GenerateForeignKeyAnnotations (string foreignKeyBuilderName, Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKeyAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateForeignKeyAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKeyAnnotations (foreignKeyBuilderName As String, foreignKey As IForeignKey, stringBuilder As IndentedStringBuilder)

參數

foreignKeyBuilderName
String

產生器變數的名稱。

foreignKey
IForeignKey

外部索引鍵。

stringBuilder
IndentedStringBuilder

建立器程式碼會新增至 。

適用於

GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)

來源:
CSharpSnapshotGenerator.cs

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

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

參數

foreignKey
IForeignKey

外部索引鍵。

stringBuilder
IndentedStringBuilder

建立器程式碼會新增至 。

適用於