Table of Contents

Class GroupKeyColumnsAttribute

Namespace
Rinku.Mapping
Assembly
Rinku.dll

Groups a spanning type by named columns directly, no member required. The boundary reads each named column as whatever type it carries, so nothing is stored for the key. This type-level rule applies to every construction. Implement IGroupingRuleMaker when named columns are not enough.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false)]
public sealed class GroupKeyColumnsAttribute : Attribute, IGroupingRuleMaker
Inheritance
GroupKeyColumnsAttribute
Implements
Inherited Members
Extension Methods

Constructors

GroupKeyColumnsAttribute(params string[])

Groups a spanning type by named columns directly, no member required. The boundary reads each named column as whatever type it carries, so nothing is stored for the key. This type-level rule applies to every construction. Implement IGroupingRuleMaker when named columns are not enough.

public GroupKeyColumnsAttribute(params string[] columns)

Parameters

columns string[]

Methods

Composes(ICustomAttributeProvider)

A column-name key is the only group key on its type.

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