Exemple #1
0
        /// <summary>Devuelve los caracteres especificos para la operación solicitada</summary>
        protected string dbOpeToString(dbOpe oper)
        {
            switch (oper)
            {
            case dbOpe.Addition:
                return("+");

            case dbOpe.Substraction:
                return("-");

            case dbOpe.Multiplication:
                return("*");

            case dbOpe.Division:
                return("/");

            case dbOpe.Modulo:
                return("%");

            case dbOpe.Case:
                return("WHEN");

            case dbOpe.Else:
                return("ELSE");

            case dbOpe.Comma:
                return(",");

            case dbOpe.As:
                return("AS");
            }
            return("");
        }
Exemple #2
0
 public Particle(dbOpe oper, Expression expr)
 {
     Operation = oper;
     SetValue(expr);
 }
Exemple #3
0
 /// <summary>Operador general</summary>
 private Expression Operate(dbOpe oper, Expression expr)
 {
     return(Op(new Particle(oper, expr)));
 }
Exemple #4
0
 public Particle(dbOpe oper, string val)
 {
     Operation = oper;
     Value     = val;
 }