摘要: // Specify the data source. int[] scores = new int[] { 97, 92, 81, 60 }; // Define the query expression. IEnumerable scoreQuery = from score in scores where score > 80 select score; // Execute the query. foreach (int i in scoreQu... 阅读全文
posted @ 2013-09-13 08:50 程序猿网友666 阅读(150) 评论(0) 推荐(0) 编辑
摘要: web.config配置 // 获取连接字符串 string _connectionString = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"];SqlConnection _conn = new SqlConnection(_connectionString); string sql = "Select * from user "; //SqlCommand _cmd = new SqlCommand(sql, _conn); _co... 阅读全文
posted @ 2013-09-13 07:55 程序猿网友666 阅读(316) 评论(0) 推荐(0) 编辑