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
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
Names
Gets the names.
public List<string> Names { get; }
Property Value
Methods
AddGrouping(string, Func<string, string>?)
Adds a grouping.
public void AddGrouping(string name, Func<string, string>? nameMapping = null)
Parameters
GetLabel(IEnumerable<object>)
Gets the label.
public string GetLabel(IEnumerable<object> values)
Parameters
values
IEnumerable<object>The values.
Returns
GetLabelKey(IEnumerable<object>)
Gets the label key.
public string GetLabelKey(IEnumerable<object> values)
Parameters
values
IEnumerable<object>The values.
Returns
GetLabels(string[])
Gets the labels.
public List<string> GetLabels(string[] values)
Parameters
values
string[]The values.
Returns
GetSize()
Gets the size.
public int GetSize()
Returns
MapValue(string, string)
Maps the value.
public string MapValue(string name, string value)