Ejemplo 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));
        }
Ejemplo 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));
        }
Ejemplo 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));
        }
Ejemplo 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));
        }
Ejemplo 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());
        }