public bool presist(VacancyKillerQuestionDTO entity) { try { VacancyKillerQuestion obj = new VacancyKillerQuestion(); obj.question = entity.question; obj.vacancyNumber = entity.vacancyNumber; obj.answer = entity.answer; ctx.VacancyKillerQuestions.InsertOnSubmit(obj); ctx.SubmitChanges(); return true; } catch (Exception) { ctx.Dispose(); ctx = new modelDataContext(); return false; } }
partial void DeleteVacancyKillerQuestion(VacancyKillerQuestion instance);
partial void InsertVacancyKillerQuestion(VacancyKillerQuestion instance);
partial void UpdateVacancyKillerQuestion(VacancyKillerQuestion instance);
private void detach_VacancyKillerQuestions(VacancyKillerQuestion entity) { this.SendPropertyChanging(); entity.Vacancy = null; }