Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public static int QueryCount(CountOptions options)
 {
     return(Manager.QueryCount(options));
 }