public static Task <CountResult> CountBySearchAsync <T>(this ISearchableReadOnlyRepository <T> repository, ISystemFilter systemFilter, string filter = null, string aggregations = null, CommandOptionsDescriptor <T> options = null) where T : class, new() { return(repository.CountBySearchAsync(systemFilter, filter, aggregations, options.Configure())); }
public static Task <FindResults <T> > SearchAsync <T>(this ISearchableReadOnlyRepository <T> repository, ISystemFilter systemFilter, string filter = null, string criteria = null, string sort = null, string aggregations = null, CommandOptionsDescriptor <T> options = null) where T : class, new() { return(repository.SearchAsync(systemFilter, filter, criteria, sort, aggregations, options.Configure())); }
public static Task <FindResults <T> > GetAllAsync <T>(this ISearchableReadOnlyRepository <T> repository, string sort, PagingOptions paging = null) where T : class, new() { return(repository.SearchAsync(null, sort: sort, paging: paging)); }