Lenguaje

IMemberClassifier.IsCandidateNavigationProperty Method

Definition

Returns a value indicating whether the given member is a candidate navigation.

public bool IsCandidateNavigationProperty(System.Reflection.MemberInfo memberInfo, Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, bool useAttributes, out Type? elementType, out bool? shouldBeOwned, out bool explicitlyConfigured);
abstract member IsCandidateNavigationProperty : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionModel * bool * Type * Nullable * bool -> bool
Public Function IsCandidateNavigationProperty (memberInfo As MemberInfo, model As IConventionModel, useAttributes As Boolean, ByRef elementType As Type, ByRef shouldBeOwned As Nullable(Of Boolean), ByRef explicitlyConfigured As Boolean) As Boolean

Parameters

memberInfo
MemberInfo

The member to classify.

model
IConventionModel

The model.

useAttributes
Boolean

Whether attributes found on the member should be considered.

elementType
Type

When this method returns, the element type for collection navigations, or null for non-collection (reference) navigations and for members that aren't candidate navigations. For the navigation target type, use this value when non-null, otherwise MemberInfo's type.

shouldBeOwned
Nullable<Boolean>

When this method returns, indicates whether the target should be owned, if known.

explicitlyConfigured
Boolean

When this method returns, indicates whether the target type was explicitly configured.

Returns

true if the member is a candidate navigation; otherwise false.

Applies to