IConventionEntityType.AddSkipNavigation Method

Definition

Overloads

AddSkipNavigation(String, MemberInfo, IConventionEntityType, Boolean, Boolean, Boolean)

Adds a new skip navigation property to this entity type.

AddSkipNavigation(String, Type, MemberInfo, IConventionEntityType, Boolean, Boolean, Boolean)

Adds a new skip navigation property to this entity type.

AddSkipNavigation(String, MemberInfo, IConventionEntityType, Boolean, Boolean, Boolean)

Adds a new skip navigation property to this entity type.

public Microsoft.EntityFrameworkCore.Metadata.IConventionSkipNavigation AddSkipNavigation (string name, System.Reflection.MemberInfo memberInfo, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType targetEntityType, bool collection, bool onDependent, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionSkipNavigation? AddSkipNavigation (string name, System.Reflection.MemberInfo? memberInfo, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType targetEntityType, bool collection, bool onDependent, bool fromDataAnnotation = false);
abstract member AddSkipNavigation : string * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionSkipNavigation
Public Function AddSkipNavigation (name As String, memberInfo As MemberInfo, targetEntityType As IConventionEntityType, collection As Boolean, onDependent As Boolean, Optional fromDataAnnotation As Boolean = false) As IConventionSkipNavigation

Parameters

name
String

The name of the skip navigation property to add.

memberInfo
MemberInfo

The corresponding CLR type member or null for a shadow navigation.

An indexer with a String parameter and Object return type can be used.

targetEntityType
IConventionEntityType

The entity type that the skip navigation property will hold an instance(s) of.

collection
Boolean

Whether the navigation property is a collection property.

onDependent
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

The newly created skip navigation property.

Applies to

AddSkipNavigation(String, Type, MemberInfo, IConventionEntityType, Boolean, Boolean, Boolean)

Adds a new skip navigation property to this entity type.

public Microsoft.EntityFrameworkCore.Metadata.IConventionSkipNavigation? AddSkipNavigation (string name, Type? navigationType, System.Reflection.MemberInfo? memberInfo, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType targetEntityType, bool collection, bool onDependent, bool fromDataAnnotation = false);
abstract member AddSkipNavigation : string * Type * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionSkipNavigation
Public Function AddSkipNavigation (name As String, navigationType As Type, memberInfo As MemberInfo, targetEntityType As IConventionEntityType, collection As Boolean, onDependent As Boolean, Optional fromDataAnnotation As Boolean = false) As IConventionSkipNavigation

Parameters

name
String

The name of the skip navigation property to add.

navigationType
Type

The navigation type.

memberInfo
MemberInfo

The corresponding CLR type member or null for a shadow navigation.

An indexer with a String parameter and Object return type can be used.

targetEntityType
IConventionEntityType

The entity type that the skip navigation property will hold an instance(s) of.

collection
Boolean

Whether the navigation property is a collection property.

onDependent
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

The newly created skip navigation property.

Applies to