IBaseServiceById.cs 442 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Ropin.Inspection.Service.Interface
  7. {
  8. public interface IBaseServiceById<T, TId>
  9. {
  10. // 根据指定的实体Id获取实体
  11. Task<T> GetByIdAsync(TId id);
  12. // 检查具有指定Id的实体是否存在
  13. Task<bool> IsExistAsync(TId id);
  14. Task DeleteAsync(TId id);
  15. }
  16. }