Beispiel #1
0
 public string GetExpression(ref int bindCount)
 {
     return("UPSERT " + _search.GetExpression(ref bindCount) +
            " INSERT " + _insert.GetExpression(ref bindCount) +
            " UPDATE " + _update.GetExpression(ref bindCount) +
            " IN " + _collectionName +
            (_options.Count > 0 ? " OPTIONS {" + string.Join(", ", _options.Select(kvp => kvp.Key + ":" + kvp.Value)) + "}" : ""));
 }
Beispiel #2
0
        public string GetExpression(ref int bindCount)
        {
            if (_alias != null && _value != null)
            {
                return("COLLECT " + _alias + "=" + _value.GetExpression(ref bindCount));
            }

            return("COLLECT");
        }
Beispiel #3
0
 public string GetExpression(ref int bindCount)
 {
     return
         ("(" +
          _condition.GetExpression(ref bindCount) +
          " ? " +
          _positive.GetExpression(ref bindCount) +
          " : " +
          _negative.GetExpression(ref bindCount) +
          ")");
 }
Beispiel #4
0
 public string GetExpression(ref int bindCount)
 {
     return("AGGREGATE " + _alias + " = " + _value.GetExpression(ref bindCount));
 }
 public string GetExpression(ref int bindCount)
 {
     return(_field + ":" + _value.GetExpression(ref bindCount));
 }
Beispiel #6
0
 public string GetExpression(ref int bindCount)
 {
     return(_value1.GetExpression(ref bindCount) + " " + _operator + " " + _value2.GetExpression(ref bindCount));
 }
Beispiel #7
0
 public string GetExpression(ref int bindCount)
 {
     return("SORT " + _field.GetExpression(ref bindCount) + (_direction == Direction.Asc ? " ASC" : " DESC"));
 }
 public string GetExpression(ref int bindCount)
 {
     return("DOCUMENT('" + _collection + "'," + _value.GetExpression(ref bindCount) + ")");
 }
Beispiel #9
0
 public string GetExpression(ref int bindCount)
 {
     return("FOR " + _alias + " IN " + _collection.GetExpression(ref bindCount));
 }