選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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. }