EntityTypeExtensions.FindOwnership(IEntityType) Method

Definition

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

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

Parameters

entityType
IEntityType

The entity type.

Returns

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

Applies to