Skip to content

Instantly share code, notes, and snippets.

@adaam2
Last active July 23, 2018 12:49
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 adaam2/9ca7334a7fcdfc30725ed5dbb4359137 to your computer and use it in GitHub Desktop.
Save adaam2/9ca7334a7fcdfc30725ed5dbb4359137 to your computer and use it in GitHub Desktop.
Basic IRepository
public interface IRepository<T> where T : class
{
T Find(int id);
List<T> All();
void Delete(int id);
void Update(T obj);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment