2011年10月27日

阅读器关闭时 FieldCount 的尝试无效

摘要: public SqlDataReader GetCategories(){ string connectionString = ConfigurationManager.ConnectionStrings["SQLConnString"].ConnectionString; SqlConnection conn = new SqlConnection(connectionString); conn.Open(); string cmdString = "SELECT Name FROM Category"; SqlCommand cmd = new Sq 阅读全文

posted @ 2011-10-27 00:35 WestGarden 阅读(170) 评论(0) 推荐(0) 编辑

导航