/// <summary> /// Resolves the dependencies by means of persisting all models that this model is referencing. /// </summary> protected override void ResolveGeneratedDependency() { base.ResolveGeneratedDependency(); if (_vatCode != null) { _vatCode.Save(); this.ModifiedData.Vatcd = _vatCode.Value1; } if (_regionCode != null) { _regionCode.Save(); this.ModifiedData.Region = _regionCode.Value1; } if (_event != null) { _event.Save(); this.ModifiedData.CourseId = _event.Id == null && this.ModifiedData.CourseId != null ? "" : _event.Id; } if (_session != null) { _session.Save(); this.ModifiedData.ActId = _session.Id == null && this.ModifiedData.ActId != null ? "" : _session.Id; } if (_eventProduct != null) { _eventProduct.Save(); this.ModifiedData.EpId = _eventProduct.Id; } }
/// <summary> /// Resolves the dependencies by means of persisting all models that this model is referencing. /// </summary> protected override void ResolveGeneratedDependency() { base.ResolveGeneratedDependency(); if (_prodSelectionGroup != null) { _prodSelectionGroup.Save(); this.ModifiedData.PsgId = _prodSelectionGroup.Id; } if (_event != null) { _event.Save(); this.ModifiedData.EventId = _event.Id == null && this.ModifiedData.EventId != null ? "" : _event.Id; } }
/// <summary> /// Resolves the dependencies by means of persisting all models that this model is referencing. /// </summary> protected override void ResolveGeneratedDependency() { base.ResolveGeneratedDependency(); if (_event != null) { _event.Save(); this.ModifiedData.EventId = _event.Id == null && this.ModifiedData.EventId != null ? "" : _event.Id; } if (_product != null) { _product.Save(); this.ModifiedData.ProdId = _product.Id == null && this.ModifiedData.ProdId != null ? "" : _product.Id; } if (_notes != null) { _notes.Save(); this.ModifiedData.Notes = _notes.Id == null && this.ModifiedData.Notes != null ? "" : _notes.Id; } }