public SQLWhereVar(string con, SQLField field, string val, string operand = " = ", bool isnum = false) : this(con, field.GetName(), val, operand, isnum) { }
/// <summary> /// Constructor to create a variable value connection instance /// </summary> /// <param name="field">A SQLiteField variable to be used to name the variable</param> /// <param name="val">The value of the new variable</param> /// <param name="isnum">Whether it should be considered a number</param> public SQLVarVal(SQLField field, string val, string operand = " = ", bool isnum = false) : this(field.GetName(), val, operand, isnum) { }
public void AddGroupByField(SQLField field1) { GroupBy.Add(new SQLVar(field1.GetName())); }
public void AddOrderByField(SQLField field1, string order) { OrderByFields.Add(new SQLOrderVar(field1.GetName(), order)); }
/// <summary> /// Adds a variable to the list of variables with values /// </summary> /// <param name="field">Variable that contains the name of the variable</param> /// <param name="val">The value to be stored in the varible</param> /// <param name="isnum">Whether or not variable is a number</param> public void Add(SQLField field, string val, string operand = " = ", bool isnum = false) { Variables.Add(new SQLVarVal(field, val, operand, isnum)); }
/// <summary> /// Adds a field to the table /// </summary> /// <param name="field">Contains all the information for the field to be added</param> public void AddField(SQLField field) { Fields.Add(field); }