Class VirtualGroupCondition<T, TKey>
Represents the conditions for grouping data, holding the property to group by and the order (ascending or descending).
Inherited Members
Namespace: AkiraNetwork.VirtualStorageLibrary
Assembly: VirtualStorageLibrary.dll
Syntax
public class VirtualGroupCondition<T, TKey>
Type Parameters
| Name | Description |
|---|---|
| T | The type of the entity to be grouped. |
| TKey | The type of the key used for grouping. |
Constructors
VirtualGroupCondition(Expression<Func<T, TKey>>, bool)
Initializes a new instance of the VirtualGroupCondition<T, TKey> class with the specified grouping property and order.
Declaration
public VirtualGroupCondition(Expression<Func<T, TKey>> groupBy, bool ascending = true)
Parameters
| Type | Name | Description |
|---|---|---|
| Expression<Func<T, TKey>> | groupBy | The property to group by. |
| bool | ascending | A value indicating whether the grouping order is ascending. |
Properties
Ascending
Gets or sets a value indicating whether the grouping order is ascending. True if the order is ascending; otherwise, false.
Declaration
public bool Ascending { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A boolean value indicating whether the grouping order is ascending. |
GroupBy
Gets or sets the property used for grouping.
Declaration
public Expression<Func<T, TKey>> GroupBy { get; set; }
Property Value
| Type | Description |
|---|---|
| Expression<Func<T, TKey>> | An expression that specifies the property to use for grouping. |