摘要:
// 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... 阅读全文
摘要:
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... 阅读全文