Share via


IMutableForeignKey.HasDependentToPrincipal Method

Definition

Overloads

HasDependentToPrincipal(MemberInfo)
Obsolete.

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

HasDependentToPrincipal(PropertyInfo)

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

HasDependentToPrincipal(String)
Obsolete.

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

HasDependentToPrincipal(MemberInfo)

Caution

Use SetDependentToPrincipal

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

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

Attributes

Applies to

HasDependentToPrincipal(PropertyInfo)

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

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

Parameters

property
PropertyInfo

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

Returns

The newly created navigation property.

Applies to

HasDependentToPrincipal(String)

Caution

Use SetDependentToPrincipal

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

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

Attributes

Applies to