예제 #1
0
		private void attach_Applieds(Applied entity)
		{
			this.SendPropertyChanging();
			entity.Applicant = this;
		}
예제 #2
0
		private void detach_Applieds(Applied entity)
		{
			this.SendPropertyChanging();
			entity.Applicant = null;
		}
예제 #3
0
 partial void DeleteApplied(Applied instance);
예제 #4
0
 partial void UpdateApplied(Applied instance);
예제 #5
0
 partial void InsertApplied(Applied instance);
예제 #6
0
		private void detach_Applieds(Applied entity)
		{
			this.SendPropertyChanging();
			entity.JobOpening = null;
		}
        public bool CreateApplied(AppliedDAO app)
        {
            Applied a = new Applied
            {
                Applied_ID = app.AppliedID,
                Applicant_ID = app.ApplicantID,
                Application_ID = app.ApplicationID,
                JobOpening_ID = app.JobOpeningID,
                DateApplied = app.DateApplied
            };

            using (AESDatabaseDataContext db = new AESDatabaseDataContext())
            {
                db.Applieds.InsertOnSubmit(a);

                try
                {
                    db.SubmitChanges();
                }
                catch (Exception e)
                {
                    throw new FaultException<KaskServiceException>(new KaskServiceException(), new FaultReason(e.Message));
                }
            }

            return true;
        }