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 方法。

适用于