IMutableForeignKey.SetPrincipalToDependent Method

Definition

Overloads

SetPrincipalToDependent(MemberInfo)

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

SetPrincipalToDependent(String)

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

SetPrincipalToDependent(MemberInfo)

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

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

Parameters

property
MemberInfo

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

Returns

The newly set navigation property.

Applies to

SetPrincipalToDependent(String)

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

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

Parameters

name
String

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

Returns

The newly set navigation property.

Applies to