コード例 #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;
		}
コード例 #6
0
        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;
        }