IConventionEntityTypeBuilder.CanAddNavigation(String, Boolean) 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.
Caution
Use CanHaveNavigation
Returns a value indicating whether the given navigation can be added to this entity type.
public bool CanAddNavigation (string navigationName, bool fromDataAnnotation = false);
[System.Obsolete("Use CanHaveNavigation")]
public virtual bool CanAddNavigation (string navigationName, bool fromDataAnnotation = false);
abstract member CanAddNavigation : string * bool -> bool
[<System.Obsolete("Use CanHaveNavigation")>]
abstract member CanAddNavigation : string * bool -> bool
override this.CanAddNavigation : string * bool -> bool
Public Function CanAddNavigation (navigationName As String, Optional fromDataAnnotation As Boolean = false) As Boolean
Public Overridable Function CanAddNavigation (navigationName As String, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- navigationName
- String
The name of the navigation.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the configuration can be applied.
- Attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework