ConventionEntityTypeExtensions.FindOwnership(IConventionEntityType) Method

Definition

Returns the relationship to the owner if this is an owned type or null otherwise.

public static Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey FindOwnership (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
static member FindOwnership : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey
<Extension()>
Public Function FindOwnership (entityType As IConventionEntityType) As IConventionForeignKey

Parameters

entityType
IConventionEntityType

The entity type.

Returns

The relationship to the owner if this is an owned type or null otherwise.

Applies to