NavigationAttributeConventionBase<TAttribute>.GetAttributes 方法

定义

重载

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>

应用于给定跳过导航的属性。

适用于