MemberClassifier.IsCandidateNavigationProperty 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.
Returns a value indicating whether the given member is a candidate navigation.
public virtual 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
override this.IsCandidateNavigationProperty : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionModel * bool * Type * Nullable * bool -> bool
Public Overridable 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.
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.