You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IRepository.cs 566B

12345678910111213141516
  1. using BlackRock.Reporting.API.Core.Models;
  2. namespace BlackRock.Reporting.API.Core.Interfaces
  3. {
  4. public interface IRepository<TEntity> where TEntity : class, IBaseEntity
  5. {
  6. Task<TEntity> GetByIdAsync(int id);
  7. Task<IEnumerable<TEntity>> GetAllAsync();
  8. Task AddAsync(TEntity entity);
  9. Task AddRangeAsync(IEnumerable<TEntity> entities);
  10. void Update(TEntity entity);
  11. void UpdateRange(IEnumerable<TEntity> entities);
  12. void Remove(TEntity entity);
  13. void RemoveRange(IEnumerable<TEntity> entities);
  14. }
  15. }