public void sua(string key, string chucvu) { dmchucvu cv = (from a in dbData.dmchucvus select a).Single(t => t.key == key); cv.chucvu = chucvu; dbData.SubmitChanges(); }
public void xoa(string key) { dmchucvu cv = (from a in dbData.dmchucvus select a).Single(t => t.key == key); dbData.dmchucvus.DeleteOnSubmit(cv); dbData.SubmitChanges(); }
public void them(string key, string id, string chucvu) { dmchucvu cv = new dmchucvu(); cv.key = key; cv.id = id; cv.chucvu = chucvu; dbData.dmchucvus.InsertOnSubmit(cv); dbData.SubmitChanges(); }