IDataProvider.cs 582 B

1234567891011121314151617181920212223
  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. void setMinCostForAgent(decimal result, int[] ints);
  20. }
  21. }