ReferenceReferenceBuilder.SetPrincipalEntityType 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
SetPrincipalEntityType(String) |
Sets the entity type that is the principal of the relationship. |
SetPrincipalEntityType(Type) |
Sets the entity type that is the principal of the relationship. |
SetPrincipalEntityType(String)
Sets the entity type that is the principal of the relationship.
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder SetPrincipalEntityType (string principalEntityTypeName);
abstract member SetPrincipalEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.SetPrincipalEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Protected Overridable Function SetPrincipalEntityType (principalEntityTypeName As String) As InternalRelationshipBuilder
Parameters
- principalEntityTypeName
- String
The name of the principal entity type.
Returns
The builder being used to configure this relationship.
Applies to
SetPrincipalEntityType(Type)
Sets the entity type that is the principal of the relationship.
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder SetPrincipalEntityType (Type principalEntityType);
abstract member SetPrincipalEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.SetPrincipalEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Protected Overridable Function SetPrincipalEntityType (principalEntityType As Type) As InternalRelationshipBuilder
Parameters
- principalEntityType
- Type
The principal entity type.
Returns
The builder being used to configure this relationship.
Applies to
Entity Framework