Share via


IMutableForeignKey.HasPrincipalToDependent Method

Definition

Overloads

HasPrincipalToDependent(MemberInfo)
Obsolete.

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

HasPrincipalToDependent(PropertyInfo)

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

HasPrincipalToDependent(String)
Obsolete.

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

HasPrincipalToDependent(MemberInfo)

Caution

Use SetPrincipalToDependent

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

public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation HasPrincipalToDependent (System.Reflection.MemberInfo property);
[System.Obsolete("Use SetPrincipalToDependent")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation HasPrincipalToDependent (System.Reflection.MemberInfo property);
[System.Obsolete("Use SetPrincipalToDependent")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation? HasPrincipalToDependent (System.Reflection.MemberInfo? property);
abstract member HasPrincipalToDependent : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
[<System.Obsolete("Use SetPrincipalToDependent")>]
abstract member HasPrincipalToDependent : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
override this.HasPrincipalToDependent : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
Public Function HasPrincipalToDependent (property As MemberInfo) As IMutableNavigation
Public Overridable Function HasPrincipalToDependent (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 created navigation property.

Attributes

Applies to

HasPrincipalToDependent(PropertyInfo)

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

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

Parameters

property
PropertyInfo

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

Returns

The newly created navigation property.

Applies to

HasPrincipalToDependent(String)

Caution

Use SetPrincipalToDependent

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

public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation HasPrincipalToDependent (string name);
[System.Obsolete("Use SetPrincipalToDependent")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation HasPrincipalToDependent (string name);
[System.Obsolete("Use SetPrincipalToDependent")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation? HasPrincipalToDependent (string? name);
abstract member HasPrincipalToDependent : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
[<System.Obsolete("Use SetPrincipalToDependent")>]
abstract member HasPrincipalToDependent : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
override this.HasPrincipalToDependent : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
Public Function HasPrincipalToDependent (name As String) As IMutableNavigation
Public Overridable Function HasPrincipalToDependent (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 created navigation property.

Attributes

Applies to