NavigationAttributeConventionBase<TAttribute>.GetAttributes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionNavigation) |
Returns the attributes applied to the given navigation. |
GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionSkipNavigation) |
Returns the attributes applied to the given skip navigation. |
GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionNavigation)
Returns the attributes applied to the given navigation.
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)
Type Parameters
- TCustomAttribute
The attribute type to look for.
Parameters
- entityType
- IConventionEntityType
The entity type.
- navigation
- IConventionNavigation
The navigation.
Returns
The attributes applied to the given navigation.
Applies to
GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionSkipNavigation)
Returns the attributes applied to the given skip navigation.
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)
Type Parameters
- TCustomAttribute
The attribute type to look for.
Parameters
- entityType
- IConventionEntityType
The entity type.
- skipNavigation
- IConventionSkipNavigation
The skip navigation.
Returns
The attributes applied to the given skip navigation.
Applies to
Entity Framework