IEntityWithRelationships.RelationshipManager 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回關聯性管理員,以便管理實體類型之執行個體 (Instance) 的關聯性。
public System.Data.Entity.Core.Objects.DataClasses.RelationshipManager RelationshipManager { get; }
member this.RelationshipManager : System.Data.Entity.Core.Objects.DataClasses.RelationshipManager
Public ReadOnly Property RelationshipManager As RelationshipManager
屬性值
這個實體的 RelationshipManager。
備註
公開關聯性的類別必須透過建構和設定 RelationshipManager 在其建構函式中實作此屬性。 此屬性的實作應該使用靜態方法 RelationshipManager.Create,視需要建立新的 RelationshipManager。 一旦建立之後,這個物件必須儲存在實體上,而且將透過這個屬性提供。