Пример #1
0
 /// <summary>
 /// Appends an ordering to the selection.
 /// </summary>
 /// <param name="direction">The order direction.</param>
 /// <param name="names">The member names to use for ordering.</param>
 /// <returns>The T.</returns>
 public ClassSelect <T> ThenBy(EixoX.Data.SortDirection direction, params string[] names)
 {
     for (int i = 0; i < names.Length; i++)
     {
         this._OrderLast = this._OrderLast.SetNext(names[i], direction);
     }
     return(this);
 }
Пример #2
0
 /// <summary>
 /// Appends more ordering of the selection.
 /// </summary>
 /// <param name="direction">The sort diretion.</param>
 /// <param name="ordinals">The ordinals of the members to order by.</param>
 /// <returns>The T.</returns>
 public ClassSelect <T> ThenBy(EixoX.Data.SortDirection direction, params int[] ordinals)
 {
     for (int i = 0; i < ordinals.Length; i++)
     {
         this._OrderLast = this._OrderLast.SetNext(ordinals[i], direction);
     }
     return(this);
 }
Пример #3
0
 /// <summary>
 /// Sets the first ordering of the selection.
 /// </summary>
 /// <param name="direction">The order direction.</param>
 /// <param name="names">The member names to use for ordering.</param>
 /// <returns>The T.</returns>
 public ClassSelect <T> OrderBy(EixoX.Data.SortDirection direction, params string[] names)
 {
     this._OrderFirst = new ClassSortNode(_Aspect, names[0], direction);
     this._OrderLast  = this._OrderFirst;
     for (int i = 1; i < names.Length; i++)
     {
         this._OrderLast = this._OrderLast.SetNext(names[i], direction);
     }
     return(this);
 }
Пример #4
0
 /// <summary>
 /// Sets the first ordering of the selection.
 /// </summary>
 /// <param name="direction">The sort diretion.</param>
 /// <param name="ordinals">The ordinals of the members to order by.</param>
 /// <returns>The T.</returns>
 public ClassSelect <T> OrderBy(EixoX.Data.SortDirection direction, params int[] ordinals)
 {
     this._OrderFirst = new ClassSortNode(_Aspect, ordinals[0], direction);
     this._OrderLast  = this._OrderFirst;
     for (int i = 1; i < ordinals.Length; i++)
     {
         this._OrderLast = this._OrderLast.SetNext(ordinals[i], direction);
     }
     return(this);
 }
Пример #5
0
 /// <summary>
 /// Appends ordering to the selection.
 /// </summary>
 /// <param name="ordinal">The ordinal position of the members used to filter.</param>
 /// <param name="direction">The sort diretion.</param>
 /// <returns>The T.</returns>
 public ClassSelect <T> ThenBy(int ordinal, EixoX.Data.SortDirection direction)
 {
     return(ThenBy(direction, ordinal));
 }
Пример #6
0
 /// <summary>
 /// Appends an ordering to the selection.
 /// </summary>
 /// <param name="name">The name of the member to use for ordering.</param>
 /// <param name="direction">The order direction.</param>
 /// <returns>The T.</returns>
 public ClassSelect <T> ThenBy(string name, EixoX.Data.SortDirection direction)
 {
     return(ThenBy(direction, name));
 }
Пример #7
0
 public ClassSortNode SetNext(int ordinal, EixoX.Data.SortDirection direction)
 {
     this._next = new ClassSortNode(_Aspect, ordinal, direction);
     return(this._next);
 }
Пример #8
0
 /// <summary>
 /// Sets the first ordering of the selection.
 /// </summary>
 /// <param name="ordinal">The ordinal position of the members used to filter.</param>
 /// <param name="direction">The sort diretion.</param>
 /// <returns>The T.</returns>
 public ClassSelectMember OrderBy(int ordinal, EixoX.Data.SortDirection direction)
 {
     return(OrderBy(direction, ordinal));
 }
Пример #9
0
 /// <summary>
 /// Appends ordering to the selection.
 /// </summary>
 /// <param name="ordinal">The ordinal position of the members used to filter.</param>
 /// <param name="direction">The sort diretion.</param>
 /// <returns>The T.</returns>
 public ClassSortExpression ThenBy(int ordinal, EixoX.Data.SortDirection direction)
 {
     return(ThenBy(direction, ordinal));
 }
Пример #10
0
 public ClassSortNode(Aspect aspect, int ordinal, EixoX.Data.SortDirection direction)
     : this(new ClassSortTerm(aspect, ordinal, direction))
 {
 }
Пример #11
0
 /// <summary>
 /// Appends an ordering to the selection.
 /// </summary>
 /// <param name="name">The name of the member to use for ordering.</param>
 /// <param name="direction">The order direction.</param>
 /// <returns>The T.</returns>
 public ClassSortExpression ThenBy(string name, EixoX.Data.SortDirection direction)
 {
     return(ThenBy(direction, name));
 }
 /// <summary>
 /// Appends ordering to the selection.
 /// </summary>
 /// <param name="ordinal">The ordinal position of the members used to filter.</param>
 /// <param name="direction">The sort diretion.</param>
 /// <returns>The T.</returns>
 public EnumerableSelect <T> ThenBy(int ordinal, EixoX.Data.SortDirection direction)
 {
     return(ThenBy(direction, ordinal));
 }
 /// <summary>
 /// Appends an ordering to the selection.
 /// </summary>
 /// <param name="name">The name of the member to use for ordering.</param>
 /// <param name="direction">The order direction.</param>
 /// <returns>The T.</returns>
 public EnumerableSelect <T> ThenBy(string name, EixoX.Data.SortDirection direction)
 {
     return(ThenBy(direction, name));
 }
Пример #14
0
 public ClassSortTerm(Aspect aspect, int ordinal, EixoX.Data.SortDirection direction)
 {
     this._Aspect    = aspect;
     this._Ordinal   = ordinal;
     this._Direction = direction;
 }
Пример #15
0
 public ClassSortNode SetNext(string name, EixoX.Data.SortDirection direction)
 {
     this._next = new ClassSortNode(_Aspect, name, direction);
     return(this._next);
 }
Пример #16
0
 public ClassSortTerm(Aspect aspect, string name, EixoX.Data.SortDirection direction)
     : this(aspect, aspect.GetOrdinalOrException(name), direction)
 {
 }
Пример #17
0
 /// <summary>
 /// Sets the first ordering of the selection.
 /// </summary>
 /// <param name="name">The name of the member to use for ordering.</param>
 /// <param name="direction">The order direction.</param>
 /// <returns>The ClassSelectMember.</returns>
 public ClassSelectMember OrderBy(string name, EixoX.Data.SortDirection direction)
 {
     return(OrderBy(direction, name));
 }