Поделиться через


CSharpSnapshotGenerator.GenerateNavigations Метод

Определение

Создает код для INavigation объектов .

protected virtual void GenerateNavigations (string builderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.INavigation> navigations, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
protected virtual void GenerateNavigations (string entityTypeBuilderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.INavigation> navigations, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateNavigations : string * seq<Microsoft.EntityFrameworkCore.Metadata.INavigation> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateNavigations : string * seq<Microsoft.EntityFrameworkCore.Metadata.INavigation> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
abstract member GenerateNavigations : string * seq<Microsoft.EntityFrameworkCore.Metadata.INavigation> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateNavigations : string * seq<Microsoft.EntityFrameworkCore.Metadata.INavigation> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateNavigations (builderName As String, navigations As IEnumerable(Of INavigation), stringBuilder As IndentedStringBuilder)
Protected Overridable Sub GenerateNavigations (entityTypeBuilderName As String, navigations As IEnumerable(Of INavigation), stringBuilder As IndentedStringBuilder)

Параметры

builderNameentityTypeBuilderName
String

Имя переменной построителя.

navigations
IEnumerable<INavigation>

Навигация.

stringBuilder
IndentedStringBuilder

Код построителя добавляется в .

Применяется к