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

RelationshipInfo Class

Describes the relationship between a parent and a child.

Inheritance
RelationshipInfo
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
[Serializer]
public sealed class RelationshipInfo : ValueType

Constructors

Name Description
RelationshipInfo(RelationshipKind, RelationshipKind)

Initializes a new instance of the RelationshipInfo type.

Properties

Name Description
ItemsRelationship

Gets the kind of relationship of items of the child collection relatively to the child collection.

PropagateBehaviors

Specifies whether behaviors of the parent should be propagated to objects assigned to the field.

PropagateBehaviorsToItems

Specifies whether behaviors of the parent should be propagated to objects added to collections assigned to this field. This property is ignored if PropagateBehaviors is false.

Relationship

Gets the kind of relationship of the child relatively to the parent. Valid values are Child, ParentSurrogate or ChildOrParentSurrogate.

Methods

Name Description
Equals(RelationshipInfo)
Equals(Object)
GetHashCode()

Operators

Name Description
Equality(RelationshipInfo, RelationshipInfo)

Determines whether two instances of the RelationshipInfo type are equal.

Inequality(RelationshipInfo, RelationshipInfo)

Determines whether two instances of the RelationshipInfo type are equal.