CSharpSnapshotGenerator.GenerateKeyAnnotations 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GenerateKeyAnnotations(String, IKey, IndentedStringBuilder) |
為鍵上的註解產生程式碼。 |
| GenerateKeyAnnotations(IKey, IndentedStringBuilder) |
為鍵上的註解產生程式碼。 |
GenerateKeyAnnotations(String, IKey, IndentedStringBuilder)
為鍵上的註解產生程式碼。
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
建築師代碼會被加入。
適用於
GenerateKeyAnnotations(IKey, IndentedStringBuilder)
為鍵上的註解產生程式碼。
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
建築師代碼會被加入。