SqlCommand cmd = new SqlCommand("select * from WARE where warename='" + TextBox1.Text + "'", conn);
 //SqlCommand cmd = new SqlCommand("jian", conn);       
        //cmd.CommandType = CommandType.StoredProcedure;        //cmd.Parameters.AddWithValue("a", TextBox1.Text);后面注释的三句话是如何做到防止SQL注入的呢?