Skip to content

Instantly share code, notes, and snippets.

@stevenh77
Created October 13, 2014 10:35
Show Gist options
  • Save stevenh77/9dc95f75a4c2dfe7b6cb to your computer and use it in GitHub Desktop.
Save stevenh77/9dc95f75a4c2dfe7b6cb to your computer and use it in GitHub Desktop.
public interface IDataRepository
{
}
public interface IDataRepository<T> : IDataRepository
where T : class, IIdentifiableEntity, new()
{
T Add(T entity);
void Remove(T entity);
void Remove(int id);
T Update(T entity);
IEnumerable<T> Get();
T Get(int id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment