Created
April 19, 2016 16:55
-
-
Save margusmartsepp/0fe5ab2a07ba452110e496d531fce3ee to your computer and use it in GitHub Desktop.
EF4 linq to sql repository interface
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 IRepository<T> | |
{ | |
IQueryable<T> Filter(Expression<Func<T, bool>> predicate); | |
int Insert(T entity); | |
int Delete(T entity); | |
int Save(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment