Share via


CSharpSnapshotGenerator.GenerateForeignKeyAnnotations Method

Definition

Overloads

GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)

Generates code for the annotations on a foreign key.

GenerateForeignKeyAnnotations(String, IForeignKey, IndentedStringBuilder)

Generates code for the annotations on a foreign key.

GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)

Generates code for the annotations on a foreign key.

GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)

Generates code for the annotations on a foreign key.

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)

Parameters

foreignKey
IForeignKey

The foreign key.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

The builder code is added to.

Applies to

GenerateForeignKeyAnnotations(String, IForeignKey, IndentedStringBuilder)

Generates code for the annotations on a foreign key.

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)

Parameters

foreignKeyBuilderName
String

The name of the builder variable.

foreignKey
IForeignKey

The foreign key.

stringBuilder
IndentedStringBuilder

The builder code is added to.

Applies to

GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)

Generates code for the annotations on a foreign key.

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)

Parameters

foreignKey
IForeignKey

The foreign key.

stringBuilder
IndentedStringBuilder

The builder code is added to.

Applies to