条件表达式
   switch (op.ToLower())
            {
                case "add":
                    return " + ";
                case "bitwiseand":
                    return " & ";
                case "bitwisenot":
                    return " ~ ";
                case "bitwiseor":
                    return " | ";
                case "bitwisexor":
                    return " ^ ";
                case "divide":
                    return " / ";
                case "equal":
                    return " = ";
                case "greater":
                    return " > ";
                case "greaterorequal":
                    return " >= ";
                case "isnull":
                    return " is null ";
                case "isnotnull":
                    return " is not null ";
                case "less":
                    return " < ";
                case "lessorequal":
                    return " <= ";
                case "like":
                    return " like ";
                case "startwith":
                    return " like ";
                case "endwith":
                    return " like ";
                case "modulo":
                    return " % ";
                case "multiply":
                    return " * ";
                case "notequal":
                    return " <> ";
                case "subtract":
                    return " - ";
                case "and":
                    return " and ";
                case "or":
                    return " or ";
                case "in":
                    return " in ";
                case "notin":
                    return " not in ";
                default:
                    return " = ";

相关文章:

  • 2022-02-26
  • 2022-12-23
  • 2021-06-24
  • 2021-07-01
  • 2021-12-13
  • 2022-12-23
  • 2022-01-28
  • 2021-07-21
猜你喜欢
  • 2022-12-23
  • 2021-08-13
  • 2021-06-07
  • 2021-08-05
  • 2022-02-24
  • 2021-07-20
  • 2021-12-01
相关资源
相似解决方案