BaseInterface.cs 623 B

12345678910111213141516171819202122
  1. using Models;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace Interface
  7. {
  8. public interface BaseInterface
  9. {
  10. Boolean Add<T>(T data);
  11. Boolean DeleteItemBykey<T>(object key);
  12. T QueryItembyKey<T>(object key);
  13. Boolean Update<T>(T data);
  14. List<T> GetList<T>(int page, int rows, string order, List<EExpression> expression, bool isDesc = true);
  15. List<T> GetList<T>(string order,List<EExpression> expression, bool isDesc = true);
  16. int GetCount<T>();
  17. int GetPageListCount<T>(List<EExpression> expression);
  18. }
  19. }