IMutableEntityType.AddSkipNavigation Method

Definition

Overloads

AddSkipNavigation(String, MemberInfo, IMutableEntityType, Boolean, Boolean)

Adds a new skip navigation property to this entity type.

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

Adds a new skip navigation property to this entity type.

AddSkipNavigation(String, MemberInfo, IMutableEntityType, Boolean, Boolean)

Adds a new skip navigation property to this entity type.

public Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation AddSkipNavigation (string name, System.Reflection.MemberInfo memberInfo, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType targetEntityType, bool collection, bool onDependent);
public Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation AddSkipNavigation (string name, System.Reflection.MemberInfo? memberInfo, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType targetEntityType, bool collection, bool onDependent);
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation AddSkipNavigation (string name, System.Reflection.MemberInfo? memberInfo, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType targetEntityType, bool collection, bool onDependent);
abstract member AddSkipNavigation : string * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation
abstract member AddSkipNavigation : string * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation
override this.AddSkipNavigation : string * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation
Public Function AddSkipNavigation (name As String, memberInfo As MemberInfo, targetEntityType As IMutableEntityType, collection As Boolean, onDependent As Boolean) As IMutableSkipNavigation
Public Overridable Function AddSkipNavigation (name As String, memberInfo As MemberInfo, targetEntityType As IMutableEntityType, collection As Boolean, onDependent As Boolean) As IMutableSkipNavigation

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
IMutableEntityType

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.

Returns

The newly created skip navigation property.

Applies to

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

Adds a new skip navigation property to this entity type.

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

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
IMutableEntityType

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.

Returns

The newly created skip navigation property.

Applies to