Linq To Sql 与ADO.NET
摘要:
简单测试1:使用DataContacxt 捞取Customers数据 int iStar = System.Environment.TickCount; DataContext dc = new DataContext("Server = .;uid=sa;pwd=p7zx5dez;database=Northwind"); Table<Customer> _Table = dc.GetTable<Customer>(); this.dataGridView1.DataSource = from c in _Table select new { 客户 阅读全文
posted @ 2011-04-06 13:39 沉默的人 阅读(292) 评论(0) 推荐(0)
浙公网安备 33010602011771号