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 則為擁有者的關聯性,否則為 。

適用於