PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelAggregatable­AttributeDefault­Item­Relationship
Open sandboxFocus

AggregatableAttribute.DefaultItemRelationship Property


Gets or sets the default kind of relationship for collection items.

public RelationshipKind DefaultItemRelationship { get; set; }
Property Value
Type Description

If the target class of the AggregatableAttribute aspect is a collection class, the DefaultItemRelationship property applies to items of this collection. Otherwise, the property applies to items of collection children. In this case, the value of this property can be overwritten by the ItemsRelationship property of the ChildAttribute custom attribute.

The default value of this property is Default, which is interpreted as Child.