CSharpSnapshotGenerator.GenerateIndexAnnotations 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GenerateIndexAnnotations(IIndex, IndentedStringBuilder) |
為索引上的批註產生程式碼。 |
GenerateIndexAnnotations(String, IIndex, IndentedStringBuilder) |
為索引上的批註產生程式碼。 |
GenerateIndexAnnotations(IIndex, IndentedStringBuilder)
為索引上的批註產生程式碼。
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)
為索引上的批註產生程式碼。
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
建立器程式碼會新增至 。