Udostępnij za pośrednictwem


ModelRelationshipType Enumeration

Defines the type of relationship.

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Enumeration ModelRelationshipType
'Usage
Dim instance As ModelRelationshipType
public enum ModelRelationshipType
public enum class ModelRelationshipType
public enum ModelRelationshipType

Members

Member name Description
Peer Relationship between two peers
Hierarchical Relationship to a parent
Composing Relationship to a child that is owned
ComposingRelationshipSurrogate Relationship to a subelement that does not have an identity distinct from its parent
Reverse Reverse relationship

Remarks

The meaning of the relationship surrogate is that the composed element is really the same logical entity as the composing element, but it is used in order to enable polymorphism and arbitrary cardinality for only a portion of the outer object. From the ModelStore perspective, ComposingRelationshipSurrogate and Composing are equivalent. However, clients of a ModelStore should interpret a ComposingRelationshipSurrogate child as being the same object as the containing element, whereas, in the Composing case, the inner element is a subobject.

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace