IConventionEntityTypeBuilder.CanHaveSkipNavigation 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.
Overloads
CanHaveSkipNavigation(MemberInfo, Boolean) |
Returns a value indicating whether the given skip navigation can be added to this entity type. |
CanHaveSkipNavigation(String, Boolean) |
Obsolete.
Returns a value indicating whether the given skip navigation can be added to this entity type. |
CanHaveSkipNavigation(String, Type, Boolean) |
Returns a value indicating whether the given skip navigation can be added to this entity type. |
CanHaveSkipNavigation(MemberInfo, Boolean)
Returns a value indicating whether the given skip navigation can be added to this entity type.
public virtual bool CanHaveSkipNavigation (System.Reflection.MemberInfo navigation, bool fromDataAnnotation = false);
abstract member CanHaveSkipNavigation : System.Reflection.MemberInfo * bool -> bool
override this.CanHaveSkipNavigation : System.Reflection.MemberInfo * bool -> bool
Public Overridable Function CanHaveSkipNavigation (navigation As MemberInfo, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- navigation
- MemberInfo
The navigation member.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the skip navigation can be added.
Applies to
CanHaveSkipNavigation(String, Boolean)
Caution
Use CanHaveSkipNavigation with Type parameter
Returns a value indicating whether the given skip navigation can be added to this entity type.
public bool CanHaveSkipNavigation (string skipNavigationName, bool fromDataAnnotation = false);
[System.Obsolete("Use CanHaveSkipNavigation with Type parameter")]
public bool CanHaveSkipNavigation (string skipNavigationName, bool fromDataAnnotation = false);
abstract member CanHaveSkipNavigation : string * bool -> bool
[<System.Obsolete("Use CanHaveSkipNavigation with Type parameter")>]
abstract member CanHaveSkipNavigation : string * bool -> bool
Public Function CanHaveSkipNavigation (skipNavigationName As String, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- skipNavigationName
- String
The name of the skip navigation.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the skip navigation can be added.
- Attributes
Applies to
CanHaveSkipNavigation(String, Type, Boolean)
Returns a value indicating whether the given skip navigation can be added to this entity type.
public bool CanHaveSkipNavigation (string skipNavigationName, Type? type, bool fromDataAnnotation = false);
abstract member CanHaveSkipNavigation : string * Type * bool -> bool
Public Function CanHaveSkipNavigation (skipNavigationName As String, type As Type, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- skipNavigationName
- String
The name of the skip navigation.
- type
- Type
The type of the navigation target.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the skip navigation can be added.
Applies to
Entity Framework