CSharpSnapshotGenerator.GenerateForeignKeyAnnotations 方法

定义

重载

GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)

为外键上的注释生成代码。

GenerateForeignKeyAnnotations(String, IForeignKey, IndentedStringBuilder)

为外键上的注释生成代码。

GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)

为外键上的注释生成代码。

GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)

Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
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)

Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
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)

Source:
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

将生成器代码添加到 。

适用于