共用方式為


RelationshipManager.Create(IEntityWithRelationships) 方法

定義

建立新的 RelationshipManager 物件。

public:
 static System::Data::Objects::DataClasses::RelationshipManager ^ Create(System::Data::Objects::DataClasses::IEntityWithRelationships ^ owner);
public static System.Data.Objects.DataClasses.RelationshipManager Create (System.Data.Objects.DataClasses.IEntityWithRelationships owner);
static member Create : System.Data.Objects.DataClasses.IEntityWithRelationships -> System.Data.Objects.DataClasses.RelationshipManager
Public Shared Function Create (owner As IEntityWithRelationships) As RelationshipManager

參數

owner
IEntityWithRelationships

參考正在呼叫這個方法的實體。

傳回

所要求的 RelationshipManager

備註

實作 Create 的物件會使用 IEntityWithRelationships 方法。 當物件服務要求實作 RelationshipManager 之物件的 IEntityWithRelationships 屬性時,如果此物件的關聯性管理員尚未存在,就會呼叫 Create 方法。

適用於