Guest User

Untitled

a guest
Jan 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. public interface IRepository<T>
  2. {
  3. void Save(T obj);
  4. void Update(T obj);
  5. void Delete(T obj);
  6. T Load<T>(object id);
  7. T GetReference<T>(object id);
  8. IList<T> GetByProperty<T>(string property, object value);
  9. IList<T> GetByHQL<T>(string hql);
  10. IList<T> GetAll<T>();
  11. IList<T> GetAllOrdered<T>(string propertyName, bool Ascending);
  12. IList<T> Find<T>(IList<string> criteria);
  13. void Detach(T item);
  14. IList<T> GetAll<T>(int pageIndex, int pageSize);
  15. void Commit();
  16. void Rollback();
  17. void BeginTransaction();
  18. }
Add Comment
Please, Sign In to add comment