PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Relationship­Kind Enumeration

RelationshipKind Enumeration

Enumeration of the kinds of relationship between objects in a object graph.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 2023.0.3.0 (2023.0.3.0)
public enum RelationshipKind
  Member nameValueDescription
None0 No relationship.
Default1 Means that the relationship kind has not been specified. The typical behavior is a build-time error or warning.
Child2 Child (see ChildAttribute).
Reference4 Reference (see ReferenceAttribute).
ParentSurrogate8 Parent surrogate (see IsParentSurrogate).
Parent16 Parent (see ParentAttribute).
ChildOrParentSurrogate10 Either Child or ParentSurrogate, depending on the type of the specific object assigned to the field or property. This is the default relationship kind for ChildAttribute when the IsParentSurrogate property is not set: it causes the field to be a ParentSurrogate if the object is an AdvisableCollection<T> or an AdvisableDictionary<TKey, TValue>, otherwise a Child.
See Also