PostSharpAPI ReferencePost­Sharp.​Patterns.​Model.​Type­AdaptersField­Rule
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 : Object

Constructors

Name Description
FieldRule() PostSharp.Patterns.Model.TypeAdapters.FieldRule

Methods

Name Description
GetRelationshipInfo(FieldInfo)

Gets the RelationshipInfo of a given field.