NavigationAttributeConventionBase<TAttribute>.GetAttributes 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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>
套用至指定略過導覽的屬性。