Table of Contents

Class GroupKeyMethodAttribute

Namespace
Rinku.Mapping
Assembly
Rinku.dll

Sets the static method that decides grouping for one constructor or factory. The method receives the stored key followed by values from the current row. It returns whether the group stays open and the next key.

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

Constructors

GroupKeyMethodAttribute(string)

Sets the static method that decides grouping for one constructor or factory. The method receives the stored key followed by values from the current row. It returns whether the group stays open and the next key.

public GroupKeyMethodAttribute(string method)

Parameters

method string

Properties

Method

The name of the static boundary method on the construction's declaring type.

public string Method { get; }

Property Value

string

Methods

Composes(ICustomAttributeProvider)

A named boundary method is the only group key on its construction.

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