Table of Contents

Class Grouping

Namespace
Dynamicweb.Tracking.Reporting
Assembly
Dynamicweb.Core.dll

Represents a grouping of data.

public class Grouping
Inheritance
Grouping
Inherited Members

Constructors

Grouping()

Initializes a new instance of the Grouping class.

public Grouping()

Properties

AllowUnsafeColumnNames

Gets or sets a value indicating whether the column names specified should be treated as safe. I.E., wrapped in square brackets "[ ]". Default is false meaning treat as unsafe.

public bool AllowUnsafeColumnNames { get; set; }

Property Value

bool

DateGrouping

Gets or sets a date grouping.

public DateGrouping? DateGrouping { get; set; }

Property Value

DateGrouping?

The date grouping.

GroupingConcatenation

Gets or sets the grouping concatenation.

public Func<string[], string>? GroupingConcatenation { get; set; }

Property Value

Func<string[], string>

The grouping concatenation.

Names

Gets the names.

public List<string> Names { get; }

Property Value

List<string>

The names.

Methods

AddGrouping(string, Func<string, string>?)

Adds a grouping.

public void AddGrouping(string name, Func<string, string>? nameMapping = null)

Parameters

name string

The name.

nameMapping Func<string, string>

The name mapping.

GetLabel(IEnumerable<object>)

Gets the label.

public string GetLabel(IEnumerable<object> values)

Parameters

values IEnumerable<object>

The values.

Returns

string

GetLabelKey(IEnumerable<object>)

Gets the label key.

public string GetLabelKey(IEnumerable<object> values)

Parameters

values IEnumerable<object>

The values.

Returns

string

GetLabels(string[])

Gets the labels.

public List<string> GetLabels(string[] values)

Parameters

values string[]

The values.

Returns

List<string>

GetSize()

Gets the size.

public int GetSize()

Returns

int

MapValue(string, string)

Maps the value.

public string MapValue(string name, string value)

Parameters

name string

The name.

value string

The value.

Returns

string
To top