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)); }
public static int Count(QueryCountBuilder <T> query, IAdapterService adapterService = null) { return((adapterService ?? ContextAdapterService).Count(query)); }