IDataProvider.cs 520 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using MySqlConnector;
  7. using Dapper;
  8. using mysql_connector2.res;
  9. namespace mysql_connector2.res
  10. {
  11. public interface IDataProvider
  12. {
  13. IEnumerable<Product> getProduct(int pageNum);
  14. int getProductCount();
  15. void setOrder(string condition);
  16. IEnumerable<ProductType> getProductTypes();
  17. void clearFilter();
  18. void addFilter(string v, object value);
  19. }
  20. }