| 12345678910111213141516171819 |
- using System.Linq.Expressions;
- using BlackRock.Reporting.API.Core.Models;
- using BlackRock.Reporting.API.Models;
- using BlackRock.Reporting.API.Persistence;
-
- namespace BlackRock.Reporting.API.Core
- {
- public interface IRepository<TEntity> where TEntity : class, IBaseEntity
- {
- Task<TEntity> GetByIdAsync(int id);
- Task<IEnumerable<TEntity>> GetAllAsync();
- Task AddAsync(TEntity entity);
- Task AddRangeAsync(IEnumerable<TEntity> entities);
- void Update(TEntity entity);
- void UpdateRange(IEnumerable<TEntity> entities);
- void Remove(TEntity entity);
- void RemoveRange(IEnumerable<TEntity> entities);
- }
- }
|