摘要: 1.以Northwind数据库为例,以下是一个插入并查询显示的过程!(Customer是其中的一张表,这里实例化一个,并存入数据库!) NorthwindDataContext context = new NorthwindDataContext(); Customer c = new Customer { CustomerID = "Test2", CompanyName = "Test Company2" }; context.Customer.InsertOnSubmit(c); context.SubmitChanges(); Customer 阅读全文
posted @ 2013-08-17 20:28 Joe-xin 阅读(690) 评论(1) 推荐(0) 编辑