Пример #1
0
        protected IQueryable <TEntity> FindAll(Expression <Func <TEntity, bool> > pression)
        {
            var property = typeof(TEntity).GetProperty(CLIENT_ID);

            IQueryable <TEntity> query = _repository.FindAll(pression);

            if (property != null && AllowedGrant == OAuthGrant.Client)
            {
                query = query.Where(LambdaHelper.BuildQuery <TEntity>("ClientId == " + ClientId));
            }

            return(query);
        }