Share via


IConventionRelationshipBuilder.CanSetNavigation Method

Definition

Overloads

CanSetNavigation(MemberInfo, Boolean, Boolean)

Returns a value indicating whether the given property can be used as a navigation for this relationship from the current configuration source.

CanSetNavigation(String, Boolean, Boolean)

Returns a value indicating whether the property with the given name can be used as a navigation for this relationship from the current configuration source.

CanSetNavigation(MemberInfo, Boolean, Boolean)

Returns a value indicating whether the given property can be used as a navigation for this relationship from the current configuration source.

public bool CanSetNavigation (System.Reflection.MemberInfo property, bool pointsToPrincipal, bool fromDataAnnotation = false);
abstract member CanSetNavigation : System.Reflection.MemberInfo * bool * bool -> bool
Public Function CanSetNavigation (property As MemberInfo, pointsToPrincipal As Boolean, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

property
MemberInfo

The property to use.

pointsToPrincipal
Boolean

A value indicating whether the navigation is on the dependent type pointing to the principal type.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given property can be used as a navigation.

Applies to

CanSetNavigation(String, Boolean, Boolean)

Returns a value indicating whether the property with the given name can be used as a navigation for this relationship from the current configuration source.

public bool CanSetNavigation (string name, bool pointsToPrincipal, bool fromDataAnnotation = false);
abstract member CanSetNavigation : string * bool * bool -> bool
Public Function CanSetNavigation (name As String, pointsToPrincipal As Boolean, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

name
String

The name of the property to use.

pointsToPrincipal
Boolean

A value indicating whether the navigation is on the dependent type pointing to the principal type.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given property can be used as a navigation.

Applies to