title: What is wrong with this class definition?
body: <p>I have a class like this:</p>
  
  <pre><code>class connect:IDisposable
  {
     public void OpenChannel(SqlConnection ch)
     {
       ch.ConnectionString=".....";
       ch.Open();
     }
     public void Dispose()
    {
    }
  }
  </code></pre>
  
  <p>And another class like this:</p>
  
  <pre><code>public Cust
  {
     SqlConnection channel=new SqlConnection();
     SqlCommand command=new SqlCommand();
  
     public void Method()
     {
         using(connect con=new connect())
           {
           con.OpenChannel(channel);
           command.connection=channel;
           .....
           ....
           ....
           command.ExecuteNonQuery();
           }
     }
  </code></pre>
  
  <p>But when I run ExcuteNotQuery() there is an error: "no open connection"
  So what is wrong?</p>