CSharpSnapshotGenerator.GenerateIndexAnnotations 方法

定义

重载

GenerateIndexAnnotations(IIndex, IndentedStringBuilder)

为索引上的批注生成代码。

GenerateIndexAnnotations(String, IIndex, IndentedStringBuilder)

为索引上的批注生成代码。

GenerateIndexAnnotations(IIndex, IndentedStringBuilder)

Source:
CSharpSnapshotGenerator.cs

为索引上的批注生成代码。

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

参数

index
IIndex

索引。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于

GenerateIndexAnnotations(String, IIndex, IndentedStringBuilder)

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

为索引上的批注生成代码。

protected virtual void GenerateIndexAnnotations (string indexBuilderName, Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateIndexAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateIndexAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateIndexAnnotations (indexBuilderName As String, index As IIndex, stringBuilder As IndentedStringBuilder)

参数

indexBuilderName
String

生成器变量的名称。

index
IIndex

索引。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于