code_junkie

How can I use Expression<T> in NHibernate?

Nov 12th, 2011
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. using System;
  2. using System.Collections;
  3. using System.Linq;
  4. using System.Linq.Expressions;
  5.  
  6.  
  7. public interface IRepository<T>
  8. {
  9. IQueryable<T> GetAll();
  10. PagedList<T> GetPaged(int pageIndex, int pageSize);
  11. IQueryable<T> Find(Expression<Func<T, bool>> expression);
  12. void Save(T item);
  13. void Delete(T item);
  14. }
Add Comment
Please, Sign In to add comment