Share via


CSharpSnapshotGenerator.GenerateEntityTypeMappingFragmentAnnotations Method

Definition

Generates code for mapping fragment annotations.

protected virtual void GenerateEntityTypeMappingFragmentAnnotations (string tableBuilderName, Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment fragment, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateEntityTypeMappingFragmentAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateEntityTypeMappingFragmentAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateEntityTypeMappingFragmentAnnotations (tableBuilderName As String, fragment As IEntityTypeMappingFragment, stringBuilder As IndentedStringBuilder)

Parameters

tableBuilderName
String

The name of the table builder variable.

fragment
IEntityTypeMappingFragment

The mapping fragment.

stringBuilder
IndentedStringBuilder

The builder code is added to.

Applies to