protected GraphPredicateList(IEnumerable items) : base() { List <string> itemStrings = new List <string>(); foreach (var item in items) { itemStrings.Add(GraphQuery.GetObjectString(item)); } if (itemStrings.Count < 1) { throw new ArgumentException("Must have at least one item"); } Predicate = Command + "(" + string.Join(", ", itemStrings) + ")"; }
protected GraphPredicate(object lb, object up) { Predicate = Command + "(" + GraphQuery.GetObjectString(lb) + ", " + GraphQuery.GetObjectString(up) + ")"; }
protected GraphPredicate(object item) { Predicate = Command + "(" + GraphQuery.GetObjectString(item) + ")"; }