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

Namespace: PostSharp.Patterns.Model.TypeAdapters
Assembly: PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 6.4.11.0 (6.4.11.0)

C#
public abstract class FieldRule
The FieldRule type exposes the following members.

Name | Description | |
---|---|---|
![]() | FieldRule | Initializes a new instance of the FieldRule class |

Name | Description | |
---|---|---|
![]() | GetRelationshipInfo |
Gets the RelationshipInfo of a given field.
|

Field rules must be registered using the RegisterFieldRuleAttribute custom attribute.
