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.

56 lines
2.6 KiB

2 years ago
  1. using System.Collections.Generic;
  2. namespace SqlSugar
  3. {
  4. public interface IDbMethods
  5. {
  6. string IIF(MethodCallExpressionModel model);
  7. string HasNumber(MethodCallExpressionModel model);
  8. string HasValue(MethodCallExpressionModel model);
  9. string IsNullOrEmpty(MethodCallExpressionModel model);
  10. string ToLower(MethodCallExpressionModel model);
  11. string ToUpper(MethodCallExpressionModel model);
  12. string Trim(MethodCallExpressionModel model);
  13. string Contains(MethodCallExpressionModel model);
  14. string ContainsArray(MethodCallExpressionModel model);
  15. string Equals(MethodCallExpressionModel model);
  16. string DateIsSameDay(MethodCallExpressionModel model);
  17. string DateIsSameByType(MethodCallExpressionModel model);
  18. string DateAddByType(MethodCallExpressionModel model);
  19. string DateValue(MethodCallExpressionModel model);
  20. string DateAddDay(MethodCallExpressionModel model);
  21. string Between(MethodCallExpressionModel model);
  22. string StartsWith(MethodCallExpressionModel model);
  23. string EndsWith(MethodCallExpressionModel model);
  24. string ToInt32(MethodCallExpressionModel model);
  25. string ToInt64(MethodCallExpressionModel model);
  26. string ToString(MethodCallExpressionModel model);
  27. string ToGuid(MethodCallExpressionModel model);
  28. string ToDouble(MethodCallExpressionModel model);
  29. string ToBool(MethodCallExpressionModel model);
  30. string CaseWhen(List<KeyValuePair<string,string>> sqls);
  31. string Substring(MethodCallExpressionModel model);
  32. string ToDate(MethodCallExpressionModel model);
  33. string ToTime(MethodCallExpressionModel model);
  34. string ToDecimal(MethodCallExpressionModel model);
  35. string Length(MethodCallExpressionModel model);
  36. string Replace(MethodCallExpressionModel model);
  37. string AggregateSum(MethodCallExpressionModel model);
  38. string AggregateAvg(MethodCallExpressionModel model);
  39. string AggregateMin(MethodCallExpressionModel model);
  40. string AggregateMax(MethodCallExpressionModel model);
  41. string AggregateCount(MethodCallExpressionModel model);
  42. string MappingColumn(MethodCallExpressionModel model);
  43. string IsNull(MethodCallExpressionModel model);
  44. string GetSelfAndAutoFill(string shortName,bool isSingle);
  45. string True();
  46. string False();
  47. string GuidNew();
  48. string MergeString(params string[] strings);
  49. string EqualTrue(string value);
  50. string Pack(string sql);
  51. string Null();
  52. string GetDate();
  53. }
  54. }