IConventionEntityType.AddSkipNavigation 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
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for