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

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