is that ok (according to repository pattern) to haVe just one IRepository (generic one) and one implementation of that with a method that takes a linQ in parameter public virtual IEnumerable<TEntity> Get( Expression<Func<TEntity, bool>> filter = null, Func<IQueryable<TEntity>, IOrderedQueryable<TEntity>> orderBy = null, string includeProperties = "" ) in this case I shouldn't write a separate repository for each model. OR OR I should write a separate repository for each model and put methods like GetTopUser() or GetInActiveUser() and write query in that methods in repository?
Обсуждают сегодня