Exemplo n.º 1
0
    public DBConnect(string p_sConnectionString, ParmList p_paramList)
    {
        _sConnectionString = p_sConnectionString;
        conn = new SqlConnection();
        comm = new SqlCommand();

        _paramList = p_paramList;

        if (_paramList.Items.Count > 0)
        {
            // add paramaters
            foreach (ParmObject obj in _paramList.Items)
            {
                comm.Parameters.AddWithValue(obj.ParmName, obj.ParmObj);
            }
        }

        OpenConnection();
    }
Exemplo n.º 2
0
 public Object[] getParmList()
 {
     return(ParmList.ToArray());
 }