IConventionForeignKeyBuilder.CanSetNavigations Method

Definition

Overloads

CanSetNavigations(MemberInfo, MemberInfo, Boolean)

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

CanSetNavigations(String, String, Boolean)

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

CanSetNavigations(MemberInfo, MemberInfo, Boolean)

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

public bool CanSetNavigations (System.Reflection.MemberInfo navigationToPrincipal, System.Reflection.MemberInfo navigationToDependent, bool fromDataAnnotation = false);
public bool CanSetNavigations (System.Reflection.MemberInfo? navigationToPrincipal, System.Reflection.MemberInfo? navigationToDependent, bool fromDataAnnotation = false);
abstract member CanSetNavigations : System.Reflection.MemberInfo * System.Reflection.MemberInfo * bool -> bool
Public Function CanSetNavigations (navigationToPrincipal As MemberInfo, navigationToDependent As MemberInfo, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

navigationToPrincipal
MemberInfo

The property to use as the navigation to the principal entity type. Can be null.

navigationToDependent
MemberInfo

The property to use as the navigation to the dependent entity type. Can be null.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given properties can be used as navigations.

Applies to

CanSetNavigations(String, String, Boolean)

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

public bool CanSetNavigations (string navigationToPrincipalName, string navigationToDependentName, bool fromDataAnnotation = false);
public bool CanSetNavigations (string? navigationToPrincipalName, string? navigationToDependentName, bool fromDataAnnotation = false);
abstract member CanSetNavigations : string * string * bool -> bool
Public Function CanSetNavigations (navigationToPrincipalName As String, navigationToDependentName As String, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

navigationToPrincipalName
String

The name of the property to use as the navigation to the principal entity type. Can be null.

navigationToDependentName
String

The name of the property to use as the navigation to the dependent entity type. Can be null.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given properties can be used as navigations.

Applies to