Created
May 21, 2013 09:22
-
-
Save larsw/5618552 to your computer and use it in GitHub Desktop.
IRepository v1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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