private void FixupLeadQuestionsMaster(LeadQuestionsMaster previousValue) { if (previousValue != null && previousValue.LeadQuestionOptions.Contains(this)) { previousValue.LeadQuestionOptions.Remove(this); } if (LeadQuestionsMaster != null) { if (!LeadQuestionsMaster.LeadQuestionOptions.Contains(this)) { LeadQuestionsMaster.LeadQuestionOptions.Add(this); } if (questionId != LeadQuestionsMaster.ID) { questionId = LeadQuestionsMaster.ID; } } }
private void FixupLeadQuestionsMaster2(LeadQuestionsMaster previousValue) { if (previousValue != null && previousValue.LeadQuestionsMaster1.Contains(this)) { previousValue.LeadQuestionsMaster1.Remove(this); } if (LeadQuestionsMaster2 != null) { if (!LeadQuestionsMaster2.LeadQuestionsMaster1.Contains(this)) { LeadQuestionsMaster2.LeadQuestionsMaster1.Add(this); } if (QuestionId != LeadQuestionsMaster2.ID) { QuestionId = LeadQuestionsMaster2.ID; } } else if (!_settingFK) { QuestionId = null; } }