Exemplo n.º 1
0
 public SQLParamList(SQLVarsVals vars, string prefix = "@")
 {
     for (int index = 0; index < vars.Count(); index++)
     {
         Parameters.Add(new SQLParam($"{prefix}{vars.GetName(index)}", vars.GetValue(index)));
     }
 }
Exemplo n.º 2
0
        public SQLParamList GetParamList()
        {
            SQLParamList temp = new SQLParamList();

            if (WhereFields.Count() > 0)
            {
                temp.Add(WhereFields.GetParameterList("@W"));
            }
            if (Variables.Count() > 0)
            {
                temp.Add(Variables.GetParameterList("@U"));
            }
            return(temp);
        }