ReferenceReferenceBuilder.SetPrincipalEntityType Method

Definition

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

Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder

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

Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder

The builder being used to configure this relationship.

Applies to