IUserMiddleRepository.cs 782 B

1234567891011121314151617181920
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using Datory;
  4. namespace GxPress.Repository.Interface.UserMiddle
  5. {
  6. public interface IUserMiddleRepository : IRepository
  7. {
  8. Task<int> InsertAsync(Entity.UserMiddle.UserMiddle userMiddle);
  9. Task<bool> UpdateAsync(Entity.UserMiddle.UserMiddle userMiddle);
  10. Task<bool> UpdateAsync(SqlKata.Query query);
  11. Task<Entity.UserMiddle.UserMiddle> GetAsync(SqlKata.Query query);
  12. Task<Entity.UserMiddle.UserMiddle> GetAsync(int id);
  13. Task<IEnumerable<Entity.UserMiddle.UserMiddle>> GetAllAsync(SqlKata.Query query);
  14. Task<int> CountAsync(SqlKata.Query query);
  15. Task<bool> ExistsAsync(SqlKata.Query query);
  16. Task<bool> DeleteAsync(SqlKata.Query query);
  17. }
  18. }