Open sandboxFocus

Class FieldRule

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

Inheritance
FieldRule
Namespace: PostSharp.Patterns.Model.TypeAdapters
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
public abstract class FieldRule
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.