CSharpSnapshotGenerator.GenerateKeyAnnotations Method

Definition

Overloads

GenerateKeyAnnotations(IKey, IndentedStringBuilder)

Generates code for the annotations on a key.

GenerateKeyAnnotations(String, IKey, IndentedStringBuilder)

Generates code for the annotations on a key.

GenerateKeyAnnotations(IKey, IndentedStringBuilder)

Generates code for the annotations on a key.

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)

Parameters

key
IKey

The key.

stringBuilder
IndentedStringBuilder

The builder code is added to.

Applies to

GenerateKeyAnnotations(String, IKey, IndentedStringBuilder)

Generates code for the annotations on a key.

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)

Parameters

keyBuilderName
String

The name of the builder variable.

key
IKey

The key.

stringBuilder
IndentedStringBuilder

The builder code is added to.

Applies to