語言

NavigationAttributeConventionBase<TAttribute>.GetAttributes 方法

定義

多載

名稱 Description
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
來源:
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
來源:
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>

這些屬性應用於給定的跳過導覽。

適用於