Class GroupBy
The Divide class
Namespace: SuperOffice.Data.SQL
Assembly: SoDataBase.dll
Syntax
public sealed class GroupBy : Object
Constructors
GroupBy()
Initializes a new instance of the GroupBy class.
Declaration
public GroupBy()
GroupBy(FieldInfo[])
Initializes a new instance of the GroupBy class. Takes array of FieldInfo as groupBy properties
Declaration
public GroupBy(params FieldInfo[] groupFields)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo[] | groupFields |
Properties
Grouping
MainTableName to get the GroupBy collection.
Declaration
public ArgumentCollection Grouping { get; }
Property Value
Type | Description |
---|---|
ArgumentCollection |
Item[Int32]
Returns the Argument on a specific index.
Declaration
public Argument this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Property Value
Type | Description |
---|---|
Argument |
Methods
Contains(FieldInfo)
Contains checks the GroupBy collection for a specific FieldInfo.
Declaration
public bool Contains(FieldInfo field)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | field | The FieldInfo we want to know if exists or not. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the FieldInfo exists, false if not. |
GetNumberOfItems()
Get number of items in the collection.
Declaration
public int GetNumberOfItems()
Returns
Type | Description |
---|---|
Int32 | Number of items |
ToString()
String output.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | GROUP BY ... |
Extension Methods
EnumUtil.MapEnums<From, To>(From)