Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created April 15, 2018 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/e3648358e433716f7b236c81af75fed3 to your computer and use it in GitHub Desktop.
Save NMZivkovic/e3648358e433716f7b236c81af75fed3 to your computer and use it in GitHub Desktop.
public interface IReporitory<TEntity> where TEntity : class
{
void Add(TEntity entity);
void Remove(TEntity entity);
TEntity Get(int id);
IEnumerable<TEntity> GetAll();
IEnumerable<TEntity> Find(Expression<Func<TEntity, bool>> predicate);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment