PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelRelationship­Kind
Open sandboxFocus

RelationshipKind Class

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

Inheritance
RelationshipKind
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
public sealed class RelationshipKind : Enum

Fields

Name Description
Child

Child (see ChildAttribute).

ChildOrParentSurrogate

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.

Default

Means that the relationship kind has not been specified. The typical behavior is a build-time error or warning.

None

No relationship.

Parent

Parent (see ParentAttribute).

ParentSurrogate

Parent surrogate (see IsParentSurrogate).

Reference

Reference (see ReferenceAttribute).

value__