IConventionEntityTypeBuilder.HasSkipNavigation 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
HasSkipNavigation(MemberInfo, IConventionEntityType, Nullable<Boolean>, Nullable<Boolean>, Boolean) |
Configures a skip navigation between this and the target entity type. |
HasSkipNavigation(String, IConventionEntityType, Nullable<Boolean>, Nullable<Boolean>, Boolean) |
Configures a skip navigation between this and the target entity type. |
HasSkipNavigation(MemberInfo, IConventionEntityType, MemberInfo, Nullable<Boolean>, Nullable<Boolean>, Boolean) |
Configures a skip navigation and the inverse between this and the target entity type. |
HasSkipNavigation(String, IConventionEntityType, Type, Nullable<Boolean>, Nullable<Boolean>, Boolean) |
Configures a skip navigation between this and the target entity type. |
HasSkipNavigation(MemberInfo, IConventionEntityType, Nullable<Boolean>, Nullable<Boolean>, Boolean)
Configures a skip navigation between this and the target entity type.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder HasSkipNavigation (System.Reflection.MemberInfo navigation, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType targetEntityType, bool? collection = default, bool? onDependent = default, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder? HasSkipNavigation (System.Reflection.MemberInfo navigation, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType targetEntityType, bool? collection = default, bool? onDependent = default, bool fromDataAnnotation = false);
abstract member HasSkipNavigation : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<bool> * Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder
Public Function HasSkipNavigation (navigation As MemberInfo, targetEntityType As IConventionEntityType, Optional collection As Nullable(Of Boolean) = Nothing, Optional onDependent As Nullable(Of Boolean) = Nothing, Optional fromDataAnnotation As Boolean = false) As IConventionSkipNavigationBuilder
Parameters
- navigation
- MemberInfo
The navigation property.
- targetEntityType
- IConventionEntityType
The entity type that the navigation targets.
Whether the navigation property is defined on the dependent side of the underlying foreign key.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
An object that can be used to configure the relationship if it exists on the entity type,
null
otherwise.
Applies to
HasSkipNavigation(String, IConventionEntityType, Nullable<Boolean>, Nullable<Boolean>, Boolean)
Configures a skip navigation between this and the target entity type.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder HasSkipNavigation (string navigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType targetEntityType, bool? collection = default, bool? onDependent = default, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder? HasSkipNavigation (string navigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType targetEntityType, bool? collection = default, bool? onDependent = default, bool fromDataAnnotation = false);
abstract member HasSkipNavigation : string * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<bool> * Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder
Public Function HasSkipNavigation (navigationName As String, targetEntityType As IConventionEntityType, Optional collection As Nullable(Of Boolean) = Nothing, Optional onDependent As Nullable(Of Boolean) = Nothing, Optional fromDataAnnotation As Boolean = false) As IConventionSkipNavigationBuilder
Parameters
- navigationName
- String
The navigation property name.
- targetEntityType
- IConventionEntityType
The entity type that the navigation targets.
Whether the navigation property is defined on the dependent side of the underlying foreign key.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
An object that can be used to configure the relationship if it exists on the entity type,
null
otherwise.
Applies to
HasSkipNavigation(MemberInfo, IConventionEntityType, MemberInfo, Nullable<Boolean>, Nullable<Boolean>, Boolean)
Configures a skip navigation and the inverse between this and the target entity type.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder HasSkipNavigation (System.Reflection.MemberInfo navigation, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType targetEntityType, System.Reflection.MemberInfo inverseNavigation, bool? collections = default, bool? onDependent = default, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder? HasSkipNavigation (System.Reflection.MemberInfo navigation, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType targetEntityType, System.Reflection.MemberInfo inverseNavigation, bool? collections = default, bool? onDependent = default, bool fromDataAnnotation = false);
abstract member HasSkipNavigation : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Reflection.MemberInfo * Nullable<bool> * Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder
Public Function HasSkipNavigation (navigation As MemberInfo, targetEntityType As IConventionEntityType, inverseNavigation As MemberInfo, Optional collections As Nullable(Of Boolean) = Nothing, Optional onDependent As Nullable(Of Boolean) = Nothing, Optional fromDataAnnotation As Boolean = false) As IConventionSkipNavigationBuilder
Parameters
- navigation
- MemberInfo
The navigation property on this entity type that is part of the relationship.
- targetEntityType
- IConventionEntityType
The entity type that this relationship targets.
- inverseNavigation
- MemberInfo
The navigation property on the target entity type that is part of the relationship. If null
is specified, the relationship will be configured without a navigation property on the target end.
Whether both of the navigation properties are collections or aren't collections.
Whether both of the navigation property are defined on the dependent side of the underlying foreign keys.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
An object that can be used to configure the relationship if it exists on the entity type,
null
otherwise.
Applies to
HasSkipNavigation(String, IConventionEntityType, Type, Nullable<Boolean>, Nullable<Boolean>, Boolean)
Configures a skip navigation between this and the target entity type.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder? HasSkipNavigation (string navigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType targetEntityType, Type? navigationType = default, bool? collection = default, bool? onDependent = default, bool fromDataAnnotation = false);
abstract member HasSkipNavigation : string * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Type * Nullable<bool> * Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder
Public Function HasSkipNavigation (navigationName As String, targetEntityType As IConventionEntityType, Optional navigationType As Type = Nothing, Optional collection As Nullable(Of Boolean) = Nothing, Optional onDependent As Nullable(Of Boolean) = Nothing, Optional fromDataAnnotation As Boolean = false) As IConventionSkipNavigationBuilder
Parameters
- navigationName
- String
The navigation property name.
- targetEntityType
- IConventionEntityType
The entity type that the navigation targets.
- navigationType
- Type
The navigation type.
Whether the navigation property is defined on the dependent side of the underlying foreign key.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
An object that can be used to configure the relationship if it exists on the entity type,
null
otherwise.
Applies to
Entity Framework