Created
October 13, 2014 10:35
-
-
Save stevenh77/9dc95f75a4c2dfe7b6cb to your computer and use it in GitHub Desktop.
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 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