CSharpSnapshotGenerator.GenerateNavigation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 INavigation生成代码。
protected virtual void GenerateNavigation (string builderName, Microsoft.EntityFrameworkCore.Metadata.INavigation navigation, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
protected virtual void GenerateNavigation (string entityTypeBuilderName, Microsoft.EntityFrameworkCore.Metadata.INavigation navigation, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateNavigation : string * Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateNavigation : string * Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
abstract member GenerateNavigation : string * Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateNavigation : string * Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateNavigation (builderName As String, navigation As INavigation, stringBuilder As IndentedStringBuilder)
Protected Overridable Sub GenerateNavigation (entityTypeBuilderName As String, navigation As INavigation, stringBuilder As IndentedStringBuilder)
参数
- builderNameentityTypeBuilderName
- String
生成器变量的名称。
- navigation
- INavigation
导航。
- stringBuilder
- IndentedStringBuilder
将生成器代码添加到 。