摘要: 本示例程序采用Northwind 示例数据库,下面开始编写代码对Customers表进行增、删、改、查等等操作。1.新增Customers记录 using (NorthwindEntities myDb = new NorthwindEntities()) { Customers customer = new Customers(); Random rm = new Random(); customer.CustomerID = "A" + rm.Next(9999).ToString(); customer.CompanyName = "EntLib.com F 阅读全文
posted @ 2011-05-27 16:24 贝加 阅读(873) 评论(0) 推荐(0) 编辑