EntityTypeExtensions.FindOwnership(IEntityType) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果這是擁有的類型, 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
則為擁有者的關聯性,否則為 。