title: cannot implicitly convert type string to char
body: <p>As I know char is different from string. I give datatype char to a column status in a table.
  I am stuck here because i am using char first time. here is my code</p>
  
  <pre><code> cmd.CommandType = CommandType.StoredProcedure;
          if (con.State == ConnectionState.Closed)
              con.Open();
          MySqlDataReader dr = cmd.ExecuteReader();
          List&lt;clssessionprp&gt; obj = new List&lt;clssessionprp&gt;();
          while (dr.Read())
          {
              clssessionprp k = new clssessionprp();
              k.p_sescod = Convert.ToInt32(dr[0]);
              k.p_session = dr[1].ToString();
              k.p_status = dr[2].ToString();
          }
  </code></pre>
  
  <p>here status column is of char datatype. I google this but can't found any desired result.
  any help will be appriciated</p>
  
  <p>my BLL code is</p>
  
  <pre><code>public void save_rec(clsclsprp p)
      {
          MySqlCommand cmd = new MySqlCommand("ins_cls", con);
          cmd.CommandType = CommandType.StoredProcedure;
          if (con.State == ConnectionState.Closed)
              con.Open();
          cmd.Parameters.Add("_clsnam", MySqlDbType.VarChar, 50).Value = p.p_clsnam;
          cmd.Parameters.Add("_clsdes", MySqlDbType.VarChar, 200).Value = p.p_clsdes;
          cmd.Parameters.Add("_clssec", MySqlDbType.Char,1).Value = p.p_clssec;
          cmd.ExecuteNonQuery();
          con.Close();
          cmd.Dispose();
      }
  </code></pre>