예제 #1
0
        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) + ")";
        }
예제 #2
0
 protected GraphPredicate(object lb, object up)
 {
     Predicate = Command + "(" + GraphQuery.GetObjectString(lb) + ", " + GraphQuery.GetObjectString(up) + ")";
 }
예제 #3
0
 protected GraphPredicate(object item)
 {
     Predicate = Command + "(" + GraphQuery.GetObjectString(item) + ")";
 }