IConventionNavigation.SetInverse 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
SetInverse(MemberInfo, Boolean) |
Sets the inverse navigation. |
SetInverse(String, Boolean) |
Sets the inverse navigation. |
SetInverse(MemberInfo, Boolean)
Sets the inverse navigation.
public Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation SetInverse (System.Reflection.MemberInfo inverse, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation? SetInverse (System.Reflection.MemberInfo? inverse, bool fromDataAnnotation = false);
abstract member SetInverse : System.Reflection.MemberInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation
Public Function SetInverse (inverse As MemberInfo, Optional fromDataAnnotation As Boolean = false) As IConventionNavigation
Parameters
- inverse
- MemberInfo
The name of the inverse navigation property. Passing null
will result in there being
no inverse navigation property defined.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The new inverse navigation.
Applies to
SetInverse(String, Boolean)
Sets the inverse navigation.
public Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation SetInverse (string inverseName, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation? SetInverse (string? inverseName, bool fromDataAnnotation = false);
abstract member SetInverse : string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation
Public Function SetInverse (inverseName As String, Optional fromDataAnnotation As Boolean = false) As IConventionNavigation
Parameters
- inverseName
- String
The name of the inverse navigation property. Passing null
will result in there being
no inverse navigation property defined.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The new inverse navigation.
Applies to
Entity Framework