CSharpSnapshotGenerator.GeneratePropertyAnnotations 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GeneratePropertyAnnotations(IProperty, IndentedStringBuilder)
為 上的 IProperty 批註產生程式碼。
protected virtual void GeneratePropertyAnnotations (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GeneratePropertyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GeneratePropertyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GeneratePropertyAnnotations (property As IProperty, stringBuilder As IndentedStringBuilder)
參數
- property
- IProperty
屬性。
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
建立器程式碼會新增至 。
適用於
GeneratePropertyAnnotations(String, IProperty, IndentedStringBuilder)
為 上的 IProperty 批註產生程式碼。
protected virtual void GeneratePropertyAnnotations (string propertyBuilderName, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GeneratePropertyAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GeneratePropertyAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GeneratePropertyAnnotations (propertyBuilderName As String, property As IProperty, stringBuilder As IndentedStringBuilder)
參數
- propertyBuilderName
- String
產生器變數的名稱。
- property
- IProperty
屬性。
- stringBuilder
- IndentedStringBuilder
建立器程式碼會新增至 。
適用於
GeneratePropertyAnnotations(IProperty, IndentedStringBuilder)
為 上的 IProperty 批註產生程式碼。
protected virtual void GeneratePropertyAnnotations (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GeneratePropertyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GeneratePropertyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GeneratePropertyAnnotations (property As IProperty, stringBuilder As IndentedStringBuilder)
參數
- property
- IProperty
屬性。
- stringBuilder
- IndentedStringBuilder
建立器程式碼會新增至 。