NavigationAttributeConventionBase<TAttribute>.GetAttributes 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionNavigation) |
回傳套用到指定導航上的屬性。 |
| GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionSkipNavigation) |
回傳套用在給定跳過導覽上的屬性。 |
GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionNavigation)
回傳套用到指定導航上的屬性。
protected static System.Collections.Generic.IEnumerable<TCustomAttribute> GetAttributes<TCustomAttribute>(Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation navigation) where TCustomAttribute : Attribute;
static member GetAttributes : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation -> seq<'CustomAttribute (requires 'CustomAttribute :> Attribute)> (requires 'CustomAttribute :> Attribute)
Protected Shared Function GetAttributes(Of TCustomAttribute As Attribute) (entityType As IConventionEntityType, navigation As IConventionNavigation) As IEnumerable(Of TCustomAttribute)
類型參數
- TCustomAttribute
該找什麼屬性類型。
參數
- entityType
- IConventionEntityType
實體類型。
- navigation
- IConventionNavigation
導航。
傳回
IEnumerable<TCustomAttribute>
屬性適用於給定的導航。
適用於
GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionSkipNavigation)
回傳套用在給定跳過導覽上的屬性。
protected static System.Collections.Generic.IEnumerable<TCustomAttribute> GetAttributes<TCustomAttribute>(Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IConventionSkipNavigation skipNavigation) where TCustomAttribute : Attribute;
static member GetAttributes : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Microsoft.EntityFrameworkCore.Metadata.IConventionSkipNavigation -> seq<'CustomAttribute (requires 'CustomAttribute :> Attribute)> (requires 'CustomAttribute :> Attribute)
Protected Shared Function GetAttributes(Of TCustomAttribute As Attribute) (entityType As IConventionEntityType, skipNavigation As IConventionSkipNavigation) As IEnumerable(Of TCustomAttribute)
類型參數
- TCustomAttribute
該找什麼屬性類型。
參數
- entityType
- IConventionEntityType
實體類型。
- skipNavigation
- IConventionSkipNavigation
跳過導覽。
傳回
IEnumerable<TCustomAttribute>
這些屬性應用於給定的跳過導覽。