Share via


IConventionNavigation.SetInverse Method

Definition

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