Beispiel #1
0
 /// <summary>
 /// Specify the query's group-by options. Query will be grouped by specified <paramref name="fieldRef"/>.
 /// </summary>
 /// <param name="fieldRef">Reference to the field to group by.</param>
 /// <returns>Returns the query itself.</returns>
 public Query GroupBy(FieldReference fieldRef)
 {
     groupByFields.Add(fieldRef);
     return(this);
 }
Beispiel #2
0
 /// <summary>
 /// Adds a new query sort order relatively to a specified <paramref name="fieldRef"/>.
 /// </summary>
 /// <param name="fieldRef">Reference to the field where to perform the ordering on.</param>
 /// <returns>Returns the query itself.</returns>
 /// <remarks>Use <see cref="FieldReference.Ascending"/> with false value to specify descending order.</remarks>
 public Query OrderBy(FieldReference fieldRef)
 {
     orderByFields.Add(fieldRef);
     return(this);
 }