Created
March 17, 2019 07:12
-
-
Save dealproc/d717af58b01808aa0097e43f3beee20e to your computer and use it in GitHub Desktop.
Multi-Tenant Solutions - IRepository<T>.cs
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> : IProject<T> where T : class, new() { | |
T Get(int id); | |
T GetFirst(Expression<Func<T, bool>> condition); | |
IEnumerable<T> GetAll(); | |
T SaveOrUpdate(T entity); | |
IEnumerable<T> SaveOrUpdate(IEnumerable<T> entities); | |
void Delete(T item); | |
// other various operations on your repository of choice ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment