예제 #1
0
        public static int Count(Func <QueryCountBuilder <T>, QueryCountBuilder <T> > query, IAdapterService adapterService = null)
        {
            QueryCountBuilder <T> newQuery = new QueryCountBuilder <T>();
            var returnQuery = query(newQuery);

            return((adapterService ?? ContextAdapterService).Count(returnQuery));
        }
예제 #2
0
 public static int Count(QueryCountBuilder <T> query, IAdapterService adapterService = null)
 {
     return((adapterService ?? ContextAdapterService).Count(query));
 }