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

IBaseRepository.cs 357B

1234567891011
  1. namespace Diligent.WebAPI.Business.Interfaces
  2. {
  3. public interface IBaseRepository<TEntity> where TEntity : class
  4. {
  5. Task<List<TEntity>> GetAsync();
  6. Task<TEntity> GetByIdAsync(string id);
  7. Task CreateAsync(TEntity entity);
  8. Task UpdateAsync(string id, TEntity updateEntity);
  9. Task RemoveAsync(string id);
  10. }
  11. }