IConventionEntityTypeBuilder.HasSkipNavigation Method

Definition

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.

collection
Nullable<Boolean>

Whether the navigation property is a collection property.

onDependent
Nullable<Boolean>

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.

collection
Nullable<Boolean>

Whether the navigation property is a collection property.

onDependent
Nullable<Boolean>

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.

collections
Nullable<Boolean>

Whether both of the navigation properties are collections or aren't collections.

onDependent
Nullable<Boolean>

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.

collection
Nullable<Boolean>

Whether the navigation property is a collection property.

onDependent
Nullable<Boolean>

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