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.

45 lines
1.3 KiB

2 years ago
  1. namespace SqlSugar
  2. {
  3. public class OracleBuilder : SqlBuilderProvider
  4. {
  5. public override string SqlParameterKeyWord
  6. {
  7. get
  8. {
  9. return ":";
  10. }
  11. }
  12. public override string SqlDateNow
  13. {
  14. get
  15. {
  16. return "sysdate";
  17. }
  18. }
  19. public override string FullSqlDateNow
  20. {
  21. get
  22. {
  23. return "select sysdate from dual";
  24. }
  25. }
  26. public override string SqlTranslationLeft { get { return "\""; } }
  27. public override string SqlTranslationRight { get { return "\""; } }
  28. public override string GetTranslationTableName(string name)
  29. {
  30. var result= base.GetTranslationTableName(name);
  31. return result.ToUpper();
  32. }
  33. public override string GetTranslationColumnName(string entityName, string propertyName)
  34. {
  35. var result = base.GetTranslationColumnName(entityName, propertyName);
  36. return result.ToUpper();
  37. }
  38. public override string GetTranslationColumnName(string propertyName)
  39. {
  40. var result = base.GetTranslationColumnName(propertyName);
  41. return result.ToUpper();
  42. }
  43. }
  44. }