PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Relationship­Info Structure / Relationship­Info Constructor

RelationshipInfo Constructor

Initializes a new instance of the RelationshipInfo type.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
public RelationshipInfo(
	RelationshipKind itemsRelationship,
	RelationshipKind relationship = RelationshipKind.Child
)

Parameters

itemsRelationship
Type: PostSharp.Patterns.Model.RelationshipKind
The kind of relationship of items of the child collection relatively to the child collection.
relationship (Optional)
Type: PostSharp.Patterns.Model.RelationshipKind
The kind of relationship of the child relatively to the parent. Valid values are Child, ParentSurrogate or ChildOrParentSurrogate.
See Also