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 667B

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