/// <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(""); }
public Particle(dbOpe oper, Expression expr) { Operation = oper; SetValue(expr); }
/// <summary>Operador general</summary> private Expression Operate(dbOpe oper, Expression expr) { return(Op(new Particle(oper, expr))); }
public Particle(dbOpe oper, string val) { Operation = oper; Value = val; }