Created
September 24, 2009 18:38
-
-
Save mhinze/192943 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 IRepository | |
{ | |
void Save<ENTITY>(ENTITY entity) | |
where ENTITY : DomainEntity; | |
ENTITY Load<ENTITY>(Guid id) | |
where ENTITY : DomainEntity; | |
IQueryable<ENTITY> Query<ENTITY>() | |
where ENTITY : DomainEntity; | |
IQueryable<ENTITY> Query<ENTITY>(IDomainQuery<ENTITY> whereQuery) | |
where ENTITY : DomainEntity; | |
} | |
public interface IRepositoryWithTypedId<T, IdT> | |
{ | |
T Get(IdT id); | |
IList<T> GetAll(); | |
IList<T> FindAll(IDictionary<string, object> propertyValuePairs); | |
T FindOne(IDictionary<string, object> propertyValuePairs); | |
T SaveOrUpdate(T entity); | |
void Delete(T entity); | |
IDbContext DbContext { get; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment