Esempio n. 1
0
        public SoodaOrderBy(SoqlExpression expression, SortOrder sortOrder)
        {
            SoodaObjectExpressionComparer ec = new SoodaObjectExpressionComparer();

            ec.AddExpression(expression, sortOrder);
            _comparer = ec;
        }
Esempio n. 2
0
        public SoodaOrderBy(string columnName, SortOrder sortOrder)
        {
            SoodaObjectExpressionComparer ec = new SoodaObjectExpressionComparer();

            ec.AddExpression(SoqlParser.ParseExpression(columnName), sortOrder);
            _comparer = ec;
        }
Esempio n. 3
0
 public SoodaOrderBy(string columnName1, SortOrder sortOrder1,
     string columnName2, SortOrder sortOrder2)
 {
     SoodaObjectExpressionComparer ec = new SoodaObjectExpressionComparer();
     ec.AddExpression(SoqlParser.ParseExpression(columnName1), sortOrder1);
     ec.AddExpression(SoqlParser.ParseExpression(columnName2), sortOrder2);
     _comparer = ec;
 }
Esempio n. 4
0
 public SoodaOrderBy(string[] columnNames, SortOrder[] sortOrders)
 {
     SoodaObjectExpressionComparer ec = new SoodaObjectExpressionComparer();
     for (int i = 0; i < columnNames.Length; ++i)
     {
         ec.AddExpression(SoqlParser.ParseExpression(columnNames[i]), sortOrders[i]);
     }
     _comparer = ec;
 }
Esempio n. 5
0
        public SoodaOrderBy(SoqlExpression[] expressions, SortOrder[] sortOrders)
        {
            SoodaObjectExpressionComparer ec = new SoodaObjectExpressionComparer();

            for (int i = 0; i < expressions.Length; ++i)
            {
                ec.AddExpression(expressions[i], sortOrders[i]);
            }
            _comparer = ec;
        }
Esempio n. 6
0
        public SoodaOrderBy(string[] columnNames, SortOrder[] sortOrders)
        {
            SoodaObjectExpressionComparer ec = new SoodaObjectExpressionComparer();

            for (int i = 0; i < columnNames.Length; ++i)
            {
                ec.AddExpression(SoqlParser.ParseExpression(columnNames[i]), sortOrders[i]);
            }
            _comparer = ec;
        }
Esempio n. 7
0
        public SoodaOrderBy(string columnName1, SortOrder sortOrder1,
                            string columnName2, SortOrder sortOrder2,
                            string columnName3, SortOrder sortOrder3)
        {
            SoodaObjectExpressionComparer ec = new SoodaObjectExpressionComparer();

            ec.AddExpression(SoqlParser.ParseExpression(columnName1), sortOrder1);
            ec.AddExpression(SoqlParser.ParseExpression(columnName2), sortOrder2);
            ec.AddExpression(SoqlParser.ParseExpression(columnName3), sortOrder3);
            _comparer = ec;
        }
Esempio n. 8
0
        public SoodaOrderBy(SoodaOrderBy other, SoqlExpression expression, SortOrder sortOrder)
        {
            SoodaObjectExpressionComparer ec = new SoodaObjectExpressionComparer();

            if (other != null)
            {
                ec.AddExpressions(other._comparer);
            }
            ec.AddExpression(expression, sortOrder);
            _comparer = ec;
        }
 public void AddExpressions(SoodaObjectExpressionComparer other)
 {
     expressions.AddRange(other.expressions);
 }
 public void AddExpressions(SoodaObjectExpressionComparer other)
 {
     expressions.AddRange(other.expressions);
 }
Esempio n. 11
0
 public SoodaOrderBy(SoqlExpression expression, SortOrder sortOrder, SoodaOrderBy other)
 {
     SoodaObjectExpressionComparer ec = new SoodaObjectExpressionComparer();
     ec.AddExpression(expression, sortOrder);
     if (other != null)
         ec.AddExpressions(other._comparer);
     _comparer = ec;
 }
Esempio n. 12
0
 public SoodaOrderBy(SoqlExpression[] expressions, SortOrder[] sortOrders)
 {
     SoodaObjectExpressionComparer ec = new SoodaObjectExpressionComparer();
     for (int i = 0; i < expressions.Length; ++i)
         ec.AddExpression(expressions[i], sortOrders[i]);
     _comparer = ec;
 }
Esempio n. 13
0
 public SoodaOrderBy(SoqlExpression expression, SortOrder sortOrder)
 {
     SoodaObjectExpressionComparer ec = new SoodaObjectExpressionComparer();
     ec.AddExpression(expression, sortOrder);
     _comparer = ec;
 }