Share via


EntityTypeExtensions.FindOwnership(IEntityType) メソッド

定義

所有者が所有型 null の場合は、所有者とのリレーションシップを返します。それ以外の場合は返します。

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

パラメーター

entityType
IEntityType

エンティティの型。

戻り値

これが所有型 null の場合は所有者との関係。それ以外の場合は 。

適用対象