RelationshipManager.Create(IEntityWithRelationships) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new RelationshipManager object.
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
Parameters
- owner
- IEntityWithRelationships
Reference to the entity that is calling this method.
Returns
The requested RelationshipManager.
Remarks
The Create method is used by objects that implement IEntityWithRelationships. When Object Services requests the RelationshipManager property of an object that implements IEntityWithRelationships, the Create method is called if the relationship manager does not already exist for the object.