This document is archived and information here might be outdated. Recommended version. |
Indicates if the relationship class represents a composite relationship in which the origin object class represents the composite object.
[Visual Basic .NET]
Public ReadOnly Property IsComposite As Boolean
[C#]
public bool IsComposite {get;}
[C++]
HRESULT get_IsComposite(
Boolean* IsComposite
);
[C++] Parameters IsComposite [out, retval]
IsComposite is a parameter of type bool*
The IsComposite property indicates whether this relationship class is composite or simple. A composite relationship class is one where objects in the origin class control the lifetime of the objects in the destination class. When the origin object is deleted, the related destination object is also deleted. Composite relationship classes are always one to many relationships, but this can be constrained to one to one through the use of relationship rules.
If a relationship class is not composite, it is considered 'simple', and related objects are independent of each other. Simple relationships can be of any cardinality.