Exemple #1
0
 public void Add(params SQLVarsVals[] vars)
 {
     foreach (var v in vars)
     {
         Variables.Add(v);
     }
 }
Exemple #2
0
        public SQLVarsVals GetVarsVals()
        {
            SQLVarsVals temp = new SQLVarsVals();

            foreach (var v in Variables)
            {
                temp.Add(new SQLVarVal(v.GetName(), v.GetRawValue(), v.GetOperand(), v.GetIsNum()));
            }
            return(temp);
        }
        public List <SQLVarsVals> GetVariables()
        {
            List <SQLVarsVals> temp = new List <SQLVarsVals>();

            string[] fields = Fields.GetFieldNames().Split(',');
            for (int index = 0; index < Values.Count; index++)
            {
                SQLVarsVals var = new SQLVarsVals();
                for (int index2 = 0; index2 < fields.Length; index2++)
                {
                    var.Add(fields[index2], Values[index].GetFieldValues(index2).GetRawValue());
                }
                temp.Add(var);
            }
            return(temp);
        }
Exemple #4
0
 public SQLUpdateTable(string tablename, SQLVarVal var, SQLWhereVar where) : this(tablename)
 {
     Variables.Add(var);
     WhereFields.Add(where);
 }