Beispiel #1
0
        public static int Count <TSource>(this ISimpleQueryable <TSource> queryable)
        {
            string newQueryDescription = queryable.QueryDescription + ".Count()";
            ISimpleQueryable <TSource> newQueryable = queryable.CreateNewQueryable(newQueryDescription);

            return(newQueryable.Execute <int>());
        }
Beispiel #2
0
 public static ISimpleQueryable <TSource> where < TSource > (this ISimpleQueryable <TSource> quaryable,
                                                             Expression <Func <TSource, bool> > predicate)
 {
     string newQueryDescription = quaryable.QueryDescription + ".Where(" + predicate.ToString() + ")";
     return(quaryable.CreateNewQueryable(newQueryDescription));
 }