示例#1
0
        /// <summary>
        /// Queryable's "single value" standard query operators call this method.
        /// It is also called from <see cref="QueryableUbData{T}.GetEnumerator"/>.
        /// </summary>
        public TResult Execute <TResult>(Expression expression)
        {
            var isEnumerable = typeof(TResult).Name == "IEnumerable`1";

            return((TResult)UbQueryContext.Execute(expression, isEnumerable));
        }
示例#2
0
 public object Execute(Expression expression)
 {
     return(UbQueryContext.Execute(expression, false));
 }