IMutableForeignKey.SetDependentToPrincipal Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
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)
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
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
Entity Framework