Example #1
0
        public virtual IQueryable <TEntity> QueryGet(Expression <Func <TEntity, bool> > filter)
        {
            var repositoryGetFluentHelper = new RepositoryQuery <TEntity>(this);

            repositoryGetFluentHelper.Filter(filter);
            return(repositoryGetFluentHelper.Get());
        }
Example #2
0
        public virtual IRepositoryQuery <TEntity> Query(bool includeDeleted = false)
        {
            var repositoryGetFluentHelper = new RepositoryQuery <TEntity>(this);

            if (includeDeleted == false)
            {
                repositoryGetFluentHelper.Filter(x => !x.deleted);
            }

            return(repositoryGetFluentHelper);
        }