Class RelationshipInfo
Describes the relationship between a parent and a child.
Implements
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 |
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) | Indicates whether this instance and a specified object are equal. |
GetHashCode() | Returns the hash code for this instance. |
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. |