Table of Contents

Class GroupKeyAttribute

Namespace
Rinku.Mapping
Assembly
Rinku.dll

Marks a grouping value. Several declarations form a combined key. Construction keys are tried before type keys. A rule that returns no boundary allows the next option.

[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class GroupKeyAttribute : Attribute, IGroupingRuleMaker
Inheritance
GroupKeyAttribute
Implements
Inherited Members
Extension Methods

Methods

Composes(ICustomAttributeProvider)

Allows members and parameters to form a combined key. A boundary method must stand alone.

public bool Composes(ICustomAttributeProvider carrier)

Parameters

carrier ICustomAttributeProvider

Returns

bool

MakeRule(IReadOnlyList<ICustomAttributeProvider>)

Creates a rule from the declarations found on one type or construction.

public IGroupingRule MakeRule(IReadOnlyList<ICustomAttributeProvider> carriers)

Parameters

carriers IReadOnlyList<ICustomAttributeProvider>

Returns

IGroupingRule