摘要:
1.以Northwind数据库为例,以下是一个插入并查询显示的过程!(Customer是其中的一张表,这里实例化一个,并存入数据库!) NorthwindDataContext context = new NorthwindDataContext(); Customer c = new Customer { CustomerID = "Test2", CompanyName = "Test Company2" }; context.Customer.InsertOnSubmit(c); context.SubmitChanges(); Customer 阅读全文