您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

IRepository.cs 555B

12345678910111213141516
  1. using BlackRock.Reporting.API.Core.Models;
  2. namespace BlackRock.Reporting.API.Core
  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. }