protected internal virtual int QueryCount(CountOptions options) { var queryDescription = DynamicQueryManager.Current.QueryDescription(options.QueryName); FilterOption.SetFilterTokens(options.FilterOptions, queryDescription, canAggregate: false); var request = new QueryCountRequest { QueryName = options.QueryName, Filters = options.FilterOptions.Select(f => f.ToFilter()).ToList() }; return(DynamicQueryManager.Current.ExecuteQueryCount(request)); }
public static int QueryCount(CountOptions options) { return(Manager.QueryCount(options)); }