partial void DeleteEducation(Education instance);
private void detach_Educations(Education entity) { this.SendPropertyChanging(); entity.Applicant = null; }
partial void UpdateEducation(Education instance);
partial void InsertEducation(Education instance);
private void detach_Educations(Education entity) { this.SendPropertyChanging(); entity.School = null; }
private void attach_Educations(Education entity) { this.SendPropertyChanging(); entity.School = this; }
public bool CreateEducation(EducationDAO edu) { Education education = new Education { Applicant_ID = edu.ApplicantID, School_ID = edu.SchoolID, YearsAttendedFrom = edu.YearsAttendedFrom, YearsAttendedTo = edu.YearsAttendedTo, Graduated = edu.Graduated, DegreeAndMajor = edu.DegreeAndMajor }; using (AESDatabaseDataContext db = new AESDatabaseDataContext()) { db.Educations.InsertOnSubmit(education); try { db.SubmitChanges(); } catch (Exception e) { throw new FaultException<KaskServiceException>(new KaskServiceException(), new FaultReason(e.Message)); } } return true; }