Skip to content

Instantly share code, notes, and snippets.

@PradeepLoganathan
Last active July 30, 2020 00:52
Show Gist options
  • Select an option

  • Save PradeepLoganathan/9ff9a3fd01b65fb86e0592d68b9b9dc6 to your computer and use it in GitHub Desktop.

Select an option

Save PradeepLoganathan/9ff9a3fd01b65fb86e0592d68b9b9dc6 to your computer and use it in GitHub Desktop.
IGenericRepository
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