CSharpSnapshotGenerator.GenerateEntityTypeAnnotations Method

Definition

Overloads

GenerateEntityTypeAnnotations(IEntityType, IndentedStringBuilder)
GenerateEntityTypeAnnotations(String, IEntityType, IndentedStringBuilder)

Generates code for the annotations on an entity type.

GenerateEntityTypeAnnotations(String, IEntityType, IndentedStringBuilder)

Generates code for the annotations on an entity type.

GenerateEntityTypeAnnotations(IEntityType, IndentedStringBuilder)

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

Parameters

entityType
IEntityType
stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

Applies to

GenerateEntityTypeAnnotations(String, IEntityType, IndentedStringBuilder)

Generates code for the annotations on an entity type.

protected virtual void GenerateEntityTypeAnnotations (string builderName, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateEntityTypeAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateEntityTypeAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateEntityTypeAnnotations (builderName As String, entityType As IEntityType, stringBuilder As IndentedStringBuilder)

Parameters

builderName
String

The name of the builder variable.

entityType
IEntityType

The entity type.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

The builder code is added to.

Applies to

GenerateEntityTypeAnnotations(String, IEntityType, IndentedStringBuilder)

Generates code for the annotations on an entity type.

protected virtual void GenerateEntityTypeAnnotations (string builderName, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
protected virtual void GenerateEntityTypeAnnotations (string entityTypeBuilderName, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateEntityTypeAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateEntityTypeAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
abstract member GenerateEntityTypeAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateEntityTypeAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateEntityTypeAnnotations (builderName As String, entityType As IEntityType, stringBuilder As IndentedStringBuilder)
Protected Overridable Sub GenerateEntityTypeAnnotations (entityTypeBuilderName As String, entityType As IEntityType, stringBuilder As IndentedStringBuilder)

Parameters

builderNameentityTypeBuilderName
String

The name of the builder variable.

entityType
IEntityType

The entity type.

stringBuilder
IndentedStringBuilder

The builder code is added to.

Applies to