Last active
July 30, 2020 00:52
-
-
Save PradeepLoganathan/9ff9a3fd01b65fb86e0592d68b9b9dc6 to your computer and use it in GitHub Desktop.
IGenericRepository
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 IGenericRepository<T> where T : class | |
| { | |
| Task<T> Get(int id); | |
| Task<IEnumerable<T>> GetAll(); | |
| Task<int> Add(T entity); | |
| Task<int> Delete(int id); | |
| Task<int> Update(T entity); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment