You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
2.5 KiB

2 years ago
  1. using System;
  2. namespace SqlSugar
  3. {
  4. public class Subqueryable<T> where T : class, new()
  5. {
  6. public Subqueryable<T> Where(Func<T, bool> expression)
  7. {
  8. return this;
  9. }
  10. public Subqueryable<T> OrderBy(Func<T, object> expression)
  11. {
  12. return this;
  13. }
  14. public Subqueryable<T> GroupBy(Func<T, object> expression)
  15. {
  16. return this;
  17. }
  18. public Subqueryable<T> OrderByDesc(Func<T, object> expression)
  19. {
  20. return this;
  21. }
  22. public TResult Select<TResult>(Func<T, TResult> expression) where TResult :struct
  23. {
  24. return default(TResult);
  25. }
  26. public Byte[] Select(Func<T, Byte[]> expression)
  27. {
  28. return null;
  29. }
  30. public string Select(Func<T, string> expression)
  31. {
  32. return default(string);
  33. }
  34. public TResult Max<TResult>(Func<T, TResult> expression) where TResult : struct
  35. {
  36. return default(TResult);
  37. }
  38. public Byte[] Max(Func<T, Byte[]> expression)
  39. {
  40. return null;
  41. }
  42. public string Max(Func<T, string> expression)
  43. {
  44. return default(string);
  45. }
  46. public string Min(Func<T, string> expression)
  47. {
  48. return default(string);
  49. }
  50. public TResult Min<TResult>(Func<T, TResult> expression) where TResult : struct
  51. {
  52. return default(TResult);
  53. }
  54. public Byte[] Min(Func<T, Byte[]> expression)
  55. {
  56. return null;
  57. }
  58. public string Sum(Func<T, string> expression)
  59. {
  60. return default(string);
  61. }
  62. public TResult Sum<TResult>(Func<T, TResult> expression) where TResult : struct
  63. {
  64. return default(TResult);
  65. }
  66. public Byte[] Sum(Func<T, Byte[]> expression)
  67. {
  68. return null;
  69. }
  70. public string Avg(Func<T, string> expression)
  71. {
  72. return default(string);
  73. }
  74. public TResult Avg<TResult>(Func<T, TResult> expression) where TResult : struct
  75. {
  76. return default(TResult);
  77. }
  78. public Byte[] Avg(Func<T, Byte[]> expression)
  79. {
  80. return null;
  81. }
  82. public bool Any()
  83. {
  84. return default(bool);
  85. }
  86. public bool NotAny()
  87. {
  88. return default(bool);
  89. }
  90. public int Count()
  91. {
  92. return default(int);
  93. }
  94. }
  95. }