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