日期:2014-05-20 浏览次数:20784 次
linq_ddglDataContext xg = new linq_ddglDataContext(); var u = xg.GetTable<user>(); var a = from bb in u where bb.usename == "aaa" select bb; foreach (var c in a) { c.password = "123"; } xg.SubmitChanges(); MessageBox.Show("已经更改");