Ejemplo n.º 1
0
 partial void DeleteEducation(Education instance);
Ejemplo n.º 2
0
		private void detach_Educations(Education entity)
		{
			this.SendPropertyChanging();
			entity.Applicant = null;
		}
Ejemplo n.º 3
0
 partial void UpdateEducation(Education instance);
Ejemplo n.º 4
0
 partial void InsertEducation(Education instance);
Ejemplo n.º 5
0
		private void detach_Educations(Education entity)
		{
			this.SendPropertyChanging();
			entity.School = null;
		}
Ejemplo n.º 6
0
		private void attach_Educations(Education entity)
		{
			this.SendPropertyChanging();
			entity.School = this;
		}
Ejemplo n.º 7
0
        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;
        }