Share via


IMutableForeignKey.SetDependentToPrincipal Method

Definition

Overloads

SetDependentToPrincipal(MemberInfo)

Sets the navigation property on the dependent entity type that points to the principal entity.

SetDependentToPrincipal(String)

Sets the navigation property on the dependent entity type that points to the principal entity.

SetDependentToPrincipal(MemberInfo)

Sets the navigation property on the dependent entity type that points to the principal entity.

public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation SetDependentToPrincipal (System.Reflection.MemberInfo property);
public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation? SetDependentToPrincipal (System.Reflection.MemberInfo? property);
abstract member SetDependentToPrincipal : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
Public Function SetDependentToPrincipal (property As MemberInfo) As IMutableNavigation

Parameters

property
MemberInfo

The navigation property on the dependent type. Passing null will result in there being no navigation property defined.

Returns

The newly set navigation property.

Applies to

SetDependentToPrincipal(String)

Sets the navigation property on the dependent entity type that points to the principal entity.

public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation SetDependentToPrincipal (string name);
public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation? SetDependentToPrincipal (string? name);
abstract member SetDependentToPrincipal : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
Public Function SetDependentToPrincipal (name As String) As IMutableNavigation

Parameters

name
String

The name of the navigation property on the dependent type. Passing null will result in there being no navigation property defined.

Returns

The newly set navigation property.

Applies to