Example #1
0
 /// <summary>Engloba la expresión en una funcion de sql</summary>
 public Expression Fun(dbFun funct, params string[] extraParams)
 {
     if (extraParams != null && extraParams.Length > 0)
     {
         foreach (string prm in extraParams)
         {
             if (funct == dbFun.Cast)
             {
                 Operate(dbOpe.As, prm);
             }
             else
             {
                 Operate(dbOpe.Comma, prm);
             }
         }
     }
     return(new Expression(funct, this));
 }
Example #2
0
 private Expression(dbFun funct, Expression expr)
 {
     particles.Add(new Particle(funct, expr));
 }
Example #3
0
 public Particle(dbFun funct, Expression expr)
 {
     Operation = dbOpe.Funct;
     Funct     = funct;
     SetValue(expr);
 }