/// <summary> /// Resolves the dependencies by means of persisting all models that this model is referencing. /// </summary> protected override void ResolveGeneratedDependency() { base.ResolveGeneratedDependency(); if (_membership != null) { _membership.Save(); this.ModifiedData.MemId = _membership.Id == null && this.ModifiedData.MemId != null ? "" : _membership.Id; } if (_memberPeriod != null) { _memberPeriod.Save(); this.ModifiedData.MepId = _memberPeriod.Id == null && this.ModifiedData.MepId != null ? "" : _memberPeriod.Id; } if (_orgId != null) { _orgId.Save(); this.ModifiedData.OrgId = _orgId.Id == null && this.ModifiedData.OrgId != null ? "" : _orgId.Id; } if (_role != null) { _role.Save(); this.ModifiedData.ProleId = _role.Id == null && this.ModifiedData.ProleId != null ? "" : _role.Id; } if (_mailAddId != null) { _mailAddId.Save(); this.ModifiedData.MailAddId = _mailAddId.Id == null && this.ModifiedData.MailAddId != null ? "" : _mailAddId.Id; } if (_mailInvId != null) { _mailInvId.Save(); this.ModifiedData.MailInvId = _mailInvId.Id == null && this.ModifiedData.MailInvId != null ? "" : _mailInvId.Id; } if (_invlnId != null) { _invlnId.Save(); this.ModifiedData.InvlnId = _invlnId.Id == null && this.ModifiedData.InvlnId != null ? "" : _invlnId.Id; } if (_product != null) { _product.Save(); this.ModifiedData.ProdId = _product.Id == null && this.ModifiedData.ProdId != null ? "" : _product.Id; } if (_plId != null) { _plId.Save(); this.ModifiedData.PlId = _plId.Id == null && this.ModifiedData.PlId != null ? "" : _plId.Id; } }
/// <summary> /// Resolves the dependencies by means of persisting all models that this model is referencing. /// </summary> protected override void ResolveGeneratedDependency() { base.ResolveGeneratedDependency(); if (_status != null) { _status.Save(); this.ModifiedData.Status = _status.Value1; } if (_vatcd != null) { _vatcd.Save(); this.ModifiedData.Vatcd = _vatcd.Value1; } if (_type != null) { _type.Save(); this.ModifiedData.Type = _type.Value1; } if (_docsMethod != null) { _docsMethod.Save(); this.ModifiedData.DocsMethod = _docsMethod.Value1; } if (_organisation != null) { _organisation.Save(); this.ModifiedData.OrgId = _organisation.Id == null && this.ModifiedData.OrgId != null ? "" : _organisation.Id; } if (_role != null) { _role.Save(); this.ModifiedData.ProleId = _role.Id == null && this.ModifiedData.ProleId != null ? "" : _role.Id; } if (_address != null) { _address.Save(); this.ModifiedData.AddId = _address.Id == null && this.ModifiedData.AddId != null ? "" : _address.Id; } if (_sellingComanpy != null) { _sellingComanpy.Save(); this.ModifiedData.SelcoSpId = _sellingComanpy.Id == null && this.ModifiedData.SelcoSpId != null ? "" : _sellingComanpy.Id; } if (_invPackId != null) { _invPackId.Save(); this.ModifiedData.InvPackId = _invPackId.Id == null && this.ModifiedData.InvPackId != null ? "" : _invPackId.Id; } }
/// <summary> /// Resolves the dependencies by means of persisting all models that this model is referencing. /// </summary> protected override void ResolveGeneratedDependency() { base.ResolveGeneratedDependency(); if (_tbaGender != null) { _tbaGender.Save(); this.ModifiedData.TbaGender = _tbaGender.Value1; } if (_tbaNationality != null) { _tbaNationality.Save(); this.ModifiedData.TbaNationality = _tbaNationality.Value1; } if (_booking != null) { _booking.Save(); this.ModifiedData.BookId = _booking.Id == null && this.ModifiedData.BookId != null ? "" : _booking.Id; } if (_delegateOrg != null) { _delegateOrg.Save(); this.ModifiedData.OrgId = _delegateOrg.Id == null && this.ModifiedData.OrgId != null ? "" : _delegateOrg.Id; } if (_delegatePerson != null) { _delegatePerson.Save(); this.ModifiedData.PersonId = _delegatePerson.Id == null && this.ModifiedData.PersonId != null ? "" : _delegatePerson.Id; } if (_delegateRole != null) { _delegateRole.Save(); this.ModifiedData.ProleId = _delegateRole.Id == null && this.ModifiedData.ProleId != null ? "" : _delegateRole.Id; } if (_memberPeriod != null) { _memberPeriod.Save(); this.ModifiedData.MepId = _memberPeriod.Id == null && this.ModifiedData.MepId != null ? "" : _memberPeriod.Id; } if (_delegateAddress != null) { _delegateAddress.Save(); this.ModifiedData.AddId = _delegateAddress.Id == null && this.ModifiedData.AddId != null ? "" : _delegateAddress.Id; } }
/// <summary> /// Resolves the dependencies by means of persisting all models that this model is referencing. /// </summary> protected override void ResolveGeneratedDependency() { base.ResolveGeneratedDependency(); if (_account != null) { _account.Save(); this.ModifiedData.AccId = _account.Id == null && this.ModifiedData.AccId != null ? "" : _account.Id; } if (_organisation != null) { _organisation.Save(); this.ModifiedData.OrgId = _organisation.Id == null && this.ModifiedData.OrgId != null ? "" : _organisation.Id; } if (_address != null) { _address.Save(); this.ModifiedData.AddId = _address.Id == null && this.ModifiedData.AddId != null ? "" : _address.Id; } if (_role != null) { _role.Save(); this.ModifiedData.ProleId = _role.Id == null && this.ModifiedData.ProleId != null ? "" : _role.Id; } }
/// <summary> /// Resolves the dependencies by means of persisting all models that this model is referencing. /// </summary> protected override void ResolveGeneratedDependency() { base.ResolveGeneratedDependency(); if (_type != null) { _type.Save(); this.ModifiedData.Type = _type.Value1; } if (_status != null) { _status.Save(); this.ModifiedData.Status = _status.Value1; } if (_sellingCompany != null) { _sellingCompany.Save(); this.ModifiedData.SelcoSpId = _sellingCompany.Id == null && this.ModifiedData.SelcoSpId != null ? "" : _sellingCompany.Id; } if (_memberPeriod != null) { _memberPeriod.Save(); this.ModifiedData.MepId = _memberPeriod.Id == null && this.ModifiedData.MepId != null ? "" : _memberPeriod.Id; } if (_organisation != null) { _organisation.Save(); this.ModifiedData.OrgId = _organisation.Id == null && this.ModifiedData.OrgId != null ? "" : _organisation.Id; } if (_person != null) { _person.Save(); this.ModifiedData.PnId = _person.Id == null && this.ModifiedData.PnId != null ? "" : _person.Id; } if (_booking != null) { _booking.Save(); this.ModifiedData.BookId = _booking.Id == null && this.ModifiedData.BookId != null ? "" : _booking.Id; } if (_refund != null) { _refund.Save(); this.ModifiedData.RefundPayId = _refund.Id == null && this.ModifiedData.RefundPayId != null ? "" : _refund.Id; } if (_address != null) { _address.Save(); this.ModifiedData.AddId = _address.Id == null && this.ModifiedData.AddId != null ? "" : _address.Id; } if (_account != null) { _account.Save(); this.ModifiedData.AccId = _account.Id == null && this.ModifiedData.AccId != null ? "" : _account.Id; } if (_letterTemplate != null) { _letterTemplate.Save(); this.ModifiedData.LtId = _letterTemplate.Id == null && this.ModifiedData.LtId != null ? "" : _letterTemplate.Id; } if (_cardholderRole != null) { _cardholderRole.Save(); this.ModifiedData.CardholderProleId = _cardholderRole.Id == null && this.ModifiedData.CardholderProleId != null ? "" : _cardholderRole.Id; } }