PostSharpAPI ReferencePost­Sharp.​Patterns.​Model.​Type­AdaptersField­Rule
Open sandboxFocus

FieldRule Class

Exposes a method GetRelationshipInfo(FieldInfo) that allows to mark a field as Child or Reference programmatically, without custom attribute.

Inheritance
System.Object
FieldRule
Namespace: PostSharp.Patterns.Model.TypeAdapters
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
public abstract class FieldRule : Object
Remarks

Field rules must be registered using the RegisterFieldRuleAttribute custom attribute.

Constructors

Name Description
FieldRule()

Methods

Name Description
GetRelationshipInfo(FieldInfo)

Gets the RelationshipInfo of a given field.