共用方式為


NavigationAttributeConventionBase<TAttribute>.GetAttributes 方法

定義

多載

GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionNavigation)

傳回套用至指定導覽的屬性。

GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionSkipNavigation)

傳回套用至指定略過導覽的屬性。

GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionNavigation)

來源:
NavigationAttributeConventionBase.cs
來源:
NavigationAttributeConventionBase.cs
來源:
NavigationAttributeConventionBase.cs
來源:
NavigationAttributeConventionBase.cs
來源:
NavigationAttributeConventionBase.cs
來源:
NavigationAttributeConventionBase.cs
來源:
NavigationAttributeConventionBase.cs

傳回套用至指定導覽的屬性。

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)

來源:
NavigationAttributeConventionBase.cs
來源:
NavigationAttributeConventionBase.cs
來源:
NavigationAttributeConventionBase.cs
來源:
NavigationAttributeConventionBase.cs
來源:
NavigationAttributeConventionBase.cs

傳回套用至指定略過導覽的屬性。

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>

套用至指定略過導覽的屬性。

適用於