RelationalPropertyAnnotations.GetAnnotations 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetAnnotations(IProperty) |
取得 RelationalPropertyAnnotations 給定 IProperty 的實例,維持 RelationalAnnotations 該實例所使用的語意,以慣例控制設定註解。 |
| GetAnnotations(IEntityType) |
取得 RelationalEntityTypeAnnotations 給定 IEntityType 的實例,維持 RelationalAnnotations 該實例所使用的語意,以慣例控制設定註解。 |
GetAnnotations(IProperty)
取得 RelationalPropertyAnnotations 給定 IProperty 的實例,維持 RelationalAnnotations 該實例所使用的語意,以慣例控制設定註解。
protected virtual Microsoft.EntityFrameworkCore.Metadata.RelationalPropertyAnnotations GetAnnotations(Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member GetAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.RelationalPropertyAnnotations
override this.GetAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.RelationalPropertyAnnotations
Protected Overridable Function GetAnnotations (property As IProperty) As RelationalPropertyAnnotations
參數
傳回
一個新的 RelationalPropertyAnnotations 實例。
適用於
GetAnnotations(IEntityType)
取得 RelationalEntityTypeAnnotations 給定 IEntityType 的實例,維持 RelationalAnnotations 該實例所使用的語意,以慣例控制設定註解。
protected virtual Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations GetAnnotations(Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member GetAnnotations : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations
override this.GetAnnotations : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations
Protected Overridable Function GetAnnotations (entityType As IEntityType) As RelationalEntityTypeAnnotations
參數
- entityType
- IEntityType
註 IEntityType 解。
傳回
一個新的 RelationalEntityTypeAnnotations 實例。