Пример #1
0
 partial void DeleteJobRequirement(JobRequirement instance);
Пример #2
0
 partial void UpdateJobRequirement(JobRequirement instance);
Пример #3
0
 partial void InsertJobRequirement(JobRequirement instance);
Пример #4
0
		private void detach_JobRequirements(JobRequirement entity)
		{
			this.SendPropertyChanging();
			entity.Skill = null;
		}
Пример #5
0
		private void attach_JobRequirements(JobRequirement entity)
		{
			this.SendPropertyChanging();
			entity.JobOpening = this;
		}
        public bool CreateJobRequirement(JobRequirementDAO jbReqt)
        {
            JobRequirement jobRequirement = new JobRequirement
            {
                JobOpening_ID = jbReqt.JobOpeningID,
                Skill_ID = jbReqt.SkillID,
                Notes = jbReqt.Notes
            };

            using (AESDatabaseDataContext db = new AESDatabaseDataContext())
            {
                db.JobRequirements.InsertOnSubmit(jobRequirement);
                try
                {
                    db.SubmitChanges();
                }
                catch (Exception e)
                {
                    throw new FaultException<KaskServiceException>(new KaskServiceException(), new FaultReason(e.Message));
                }
            }

            return true;
        }