SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public interface IRepository<T> : IProject<T> where T : class, new() {
  2.   T Get(int id);
  3.   T GetFirst(Expression<Func<T, bool>> condition);
  4.   IEnumerable<T> GetAll();
  5.   T SaveOrUpdate(T entity);
  6.   IEnumerable<T> SaveOrUpdate(IEnumerable<T> entities);
  7.   void Delete(T item);
  8.   // other various operations on your repository of choice ...
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top