DbFunctions.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. namespace Ant.ORM
  3. {
  4. public static class DbFunctions
  5. {
  6. public static int? DiffYears(DateTime? dateTime1, DateTime? dateTime2)
  7. {
  8. throw new NotSupportedException();
  9. }
  10. public static int? DiffMonths(DateTime? dateTime1, DateTime? dateTime2)
  11. {
  12. throw new NotSupportedException();
  13. }
  14. public static int? DiffDays(DateTime? dateTime1, DateTime? ddateTime2)
  15. {
  16. throw new NotSupportedException();
  17. }
  18. public static int? DiffHours(DateTime? dateTime1, DateTime? dateTime2)
  19. {
  20. throw new NotSupportedException();
  21. }
  22. public static int? DiffMinutes(DateTime? dateTime1, DateTime? dateTime2)
  23. {
  24. throw new NotSupportedException();
  25. }
  26. public static int? DiffSeconds(DateTime? dateTime1, DateTime? dateTime2)
  27. {
  28. throw new NotSupportedException();
  29. }
  30. public static int? DiffMilliseconds(DateTime? dateTime1, DateTime? dateTime2)
  31. {
  32. throw new NotSupportedException();
  33. }
  34. public static int? DiffMicroseconds(DateTime? dateTime1, DateTime? dateTime2)
  35. {
  36. throw new NotSupportedException();
  37. }
  38. }
  39. }