Esempio n. 1
0
        /// <inheritdoc/>
        public Task <PageResult <TModel> > SearchAsync <TModel>(IEnumerable <Expression <Func <TModel, bool> > > filters, OrderByDefinition <TModel> orderBy = null, int page = 1, int pageSize = 25)
            where TModel : MeshData
        {
            var filter = PredicateBuilder.CombineExpressions(filters);

            return(this.SearchAsync(filter, orderBy, page, pageSize));
        }
Esempio n. 2
0
        /// <inheritdoc/>
        public Task <UpdateManyResult> UpdateManyAsync <TModel>(IEnumerable <Expression <Func <TModel, bool> > > filters, string update)
            where TModel : MeshData
        {
            var filter = PredicateBuilder.CombineExpressions(filters);

            return(this.UpdateManyAsync <TModel>(filter, update));
        }
Esempio n. 3
0
        /// <inheritdoc/>
        public Task <DeleteManyResult> DeleteManyAsync <TModel>(IEnumerable <Expression <Func <TModel, bool> > > filters)
            where TModel : MeshData
        {
            var filter = PredicateBuilder.CombineExpressions(filters);

            return(this.DeleteManyAsync(filter));
        }
Esempio n. 4
0
        /// <inheritdoc/>
        public PageResult <TData> Get <TData>(string projectionName, IEnumerable <Expression <Func <TData, bool> > > filters, OrderByDefinition <TData> orderBy = null, int page = 1, int pageSize = 25)
            where TData : class
        {
            var filter = PredicateBuilder.CombineExpressions(filters);

            return(this.Get <TData>(projectionName, filter, orderBy, page, pageSize));
        }
Esempio n. 5
0
        /// <inheritdoc/>
        public PageResult <TModel> Search <TModel>(IEnumerable <Expression <Func <TModel, bool> > > filters, OrderByDefinition <TModel> orderBy = null, int page = 1, int pageSize = 25)
            where TModel : MeshData
        {
            var filter = PredicateBuilder.CombineExpressions(filters);
            var t      = this.SearchAsync <TModel>(filter, orderBy, page, pageSize);

            return(t.ConfigureAwait(false).GetAwaiter().GetResult());
        }