LINQ to SQL语句(11)之Update
LINQ to SQL语句(11)之Update2010-12-11 博客园 李永京更新(Update)说明:更新操作,先获取对象,进行修改操作之后,直接调 用SubmitChanges()方法即可提交。注意,这里是在同一个DataContext中,对于 不同的DataContex看下面的讲解。1.简单形式Customer cust = db.Customers.First(c => c.CustomerID == "ALFKI"...