Share via


NavigationAttributeConventionBase<TAttribute>.GetAttributes Method

Definition

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)

Source:
NavigationAttributeConventionBase.cs
Source:
NavigationAttributeConventionBase.cs
Source:
NavigationAttributeConventionBase.cs
Source:
NavigationAttributeConventionBase.cs
Source:
NavigationAttributeConventionBase.cs
Source:
NavigationAttributeConventionBase.cs
Source:
NavigationAttributeConventionBase.cs

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

IEnumerable<TCustomAttribute>

The attributes applied to the given navigation.

Applies to

GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionSkipNavigation)

Source:
NavigationAttributeConventionBase.cs
Source:
NavigationAttributeConventionBase.cs
Source:
NavigationAttributeConventionBase.cs
Source:
NavigationAttributeConventionBase.cs
Source:
NavigationAttributeConventionBase.cs

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

IEnumerable<TCustomAttribute>

The attributes applied to the given skip navigation.

Applies to