CSharpSnapshotGenerator.GenerateKeyAnnotations 方法

定义

重载

GenerateKeyAnnotations(IKey, IndentedStringBuilder)

为键上的批注生成代码。

GenerateKeyAnnotations(String, IKey, IndentedStringBuilder)

为键上的批注生成代码。

GenerateKeyAnnotations(IKey, IndentedStringBuilder)

Source:
CSharpSnapshotGenerator.cs

为键上的批注生成代码。

protected virtual void GenerateKeyAnnotations (Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateKeyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateKeyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateKeyAnnotations (key As IKey, stringBuilder As IndentedStringBuilder)

参数

key
IKey

键。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于

GenerateKeyAnnotations(String, IKey, IndentedStringBuilder)

Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs

为键上的批注生成代码。

protected virtual void GenerateKeyAnnotations (string keyBuilderName, Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateKeyAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateKeyAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateKeyAnnotations (keyBuilderName As String, key As IKey, stringBuilder As IndentedStringBuilder)

参数

keyBuilderName
String

生成器变量的名称。

key
IKey

键。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于