Beispiel #1
0
 /// <summary>
 /// Returns the variable based on whether or not it is a number
 /// </summary>
 /// <returns></returns>
 public string GetValue()
 {
     return(Value.GetValue());
     //if (IsNum)
     //    return Value;
     //else
     //    return "'" + Value + "'";
 }
        new protected string GetWhere()
        {
            string command = "";

            if ((WhereFields.Count() > 0) || (BetweenField != null))
            {
                command += $" WHERE ";
                if (BetweenField != null)
                {
                    command += $"{BetweenField.GetName()} {GetNot()} BETWEEN ({Between1.GetValue()} AND {Between2.GetValue()}";
                }
                if (WhereFields.Count() > 0)
                {
                    command += $"{WhereFields.GetFieldOperandValueasStringorNum()}";
                }
            }
            return(command);
        }