Created
August 24, 2012 01:43
-
-
Save mokemokechicken/3444602 to your computer and use it in GitHub Desktop.
IRepository
This file contains 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 ILLEntityRepository<TEntity> where TEntity : class | |
{ | |
IEnumerable<TEntity> FetchAll(); | |
void Add(TEntity entity); | |
void Edit(TEntity entity); | |
void Delete(TEntity entity); | |
void Commit(); | |
} | |
public interface ILLEntityRepositoryContext | |
{ | |
ILLEntityRepository<TEntity> GetRepository<TEntity>() where TEntity : class; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment