Share via


CSharpSnapshotGenerator.GenerateEntityTypeNavigations Method

Definition

Generates code for the navigations of an IEntityType.

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

Parameters

builderNamemodelBuilderName
String

The name of the builder variable.

entityType
IEntityType

The entity type.

stringBuilder
IndentedStringBuilder

The builder code is added to.

Applies to