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