标签:
1 var customers = db.Customers.Where(c => c.name==‘小明‘); 2 foreach (var customer in customers) 3 { 4 customer.Address = "Guangzhou"; 5 } 6 db.SubmitChanges();
懂者不难。
EF框架批量更新
原文地址:http://www.cnblogs.com/hcfan/p/4613665.html