CSharpSnapshotGenerator.GenerateNavigations Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates code for INavigation objects.
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)
Parameters
- builderNameentityTypeBuilderName
- String
The name of the builder variable.
- navigations
- IEnumerable<INavigation>
The navigations.
- stringBuilder
- IndentedStringBuilder
The builder code is added to.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework