版博士V2.0程序
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

36 linhas
1.3 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Dynamic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Service
  8. {
  9. internal class BaseExtend
  10. {
  11. //public List<ExpandoObject> GetList(string tablename, string fields, string domain, string orderby)
  12. //{
  13. // int totalCount = 0;
  14. // return GetList(tablename, fields, domain, orderby, 0, 0, ref totalCount);
  15. //}
  16. //public List<ExpandoObject> GetList(string tablename, string fields, string domain, string orderby, int pageNum, int pageSize, ref int totalCount)
  17. //{
  18. // var sql = base.Context.Queryable(tablename, tablename);
  19. // if (!string.IsNullOrWhiteSpace(domain))
  20. // sql = sql.Where(base.Context.Utilities.JsonToConditionalModels(domain));
  21. // if (!string.IsNullOrWhiteSpace(fields) && fields!="*")
  22. // sql = sql.Select(fields);
  23. // if (!string.IsNullOrWhiteSpace(orderby))
  24. // sql = sql.OrderBy(orderby);
  25. // else
  26. // sql = sql.OrderBy("id desc");
  27. // if (pageNum == 0 && pageSize == 0)
  28. // return sql.ToList();
  29. // else
  30. // return sql.ToPageList(pageNum, pageSize, ref totalCount);
  31. //}
  32. }
  33. }