Skip to content

Instantly share code, notes, and snippets.

@larsw
Created May 21, 2013 09:22
Show Gist options
  • Select an option

  • Save larsw/5618552 to your computer and use it in GitHub Desktop.

Select an option

Save larsw/5618552 to your computer and use it in GitHub Desktop.
IRepository v1
public interface IRepository<TEntity>
where TEntity : class
{
TEntity Find(int id);
TEntity Find(Func<TEntity, bool> predicate);
// ...
void Add(TEntity entity);
void Remove(TEntity entity);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment