Пример #1
0
        public Query In(string fieldName)
        {
            InQuery q = new InQuery(this._root ?? this, GetMethodInfo(fieldName));

            NestedQueries.Add(q);
            return(q);
        }
Пример #2
0
        public Query ForEach(string fieldName)
        {
            MethodInfo methodInfo            = GetMethodInfo(fieldName);
            Type       iEnumerableReturnType = GetIEnumerableReturnType(methodInfo);

            if (iEnumerableReturnType == null)
            {
                throw new ArgumentOutOfRangeException("fieldName",
                                                      fieldName,
                                                      "Does not implement IEnumerable<T>");
            }

            ForEachQuery q = new ForEachQuery(_root ?? this, methodInfo, iEnumerableReturnType);

            NestedQueries.Add(q);
            return(q);
        }