IMutableForeignKey.SetPrincipalToDependent 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
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)
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
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)
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
- Source:
- IMutableForeignKey.cs
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
Entity Framework