日期:2014-05-20 浏览次数:20685 次
StaffTable sd = (StaffTable)this.StaffData.SelectedItem; var m = new DostaffContext(); var newSd=m.StaffTable.SingleOrDefault(t=>t.ID==sd.ID); newSd.name = "aa"; newSd.phone = "bb"; m.SubmitChanges();