1234567891011121314151617181920212223 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Ropin.Inspection.Repository
- {
- public interface IRepositoryBaseById<T, TId>
- {
- // 根据指定的实体Id获取实体
- Task<T> GetByIdAsync(TId id);
- // 检查具有指定Id的实体是否存在
- Task<bool> IsExistAsync(TId id);
- /// <summary>
- /// 指定Id的实体删除
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- Task<bool> DeleteAsync(TId id);
- }
- }
|