Messages of the COM family, reported by PostSharp.Patterns.Aggregation and the common patterns: [Aggregatable], [Child], [Reference] and [Parent], and the advisable collections.
| Message | Severity | Description |
|---|---|---|
| COM001 | Error | A field or property is marked with more than one of [Child], [Reference] and [Parent]. |
| COM002 | Error | A field or property of an aggregatable class does not say whether it holds a child, a reference or the parent. |
| COM003 | Error | A [Child], [Reference] or [Parent] attribute is applied to a property that is not automatic. |
| COM004 | Error | A [Child], [Reference] or [Parent] attribute is applied to a member whose type cannot have a relationship. |
| COM007 | Error | The IsParentSurrogate property of a [Child] attribute is not valid for the type of the field or property. |
| COM008 | Error | A child field or property uses a standard collection type instead of an advisable collection. |
| COM009 | Error | A child field or automatic property of a struct type is read-only. |
| COM010 | Error | A range contract is applied to a numeric type that cannot hold any value of the range. |
| COM011 | Error | An async lambda or anonymous method opens a custom logging activity. |
| COM012 | Warning | A relationship attribute is applied to a static field or property, and PostSharp ignores it. |
| COM013 | Warning | A [Child], [Parent] or [Reference] attribute is applied in a class that does not have the [Aggregatable] aspect. |
| COM014 | Warning | A collection field or property of a class with a threading model has neither [Child] nor [Reference]. |
| COM015 | Warning | A relationship attribute applied with the field: target to an automatic property has no effect. |
| COM016 | Warning | A read-only automatic property has [Reference] on its backing field but not on the property. |
| COM017 | Warning | An automatic property and its backing field have different relationship attributes. |
| COM018 | Warning | A relationship attribute is applied to the backing field of a string, delegate or value-type property. |