Exemple #1
0
 /// <summary>
 ///     Resolves the dependencies by means of persisting all models that this model is referencing.
 /// </summary>
 protected override void ResolveGeneratedDependency()
 {
     base.ResolveGeneratedDependency();
     if (_sellingCompany != null)
     {
         _sellingCompany.Save();
         this.ModifiedData.SpId = _sellingCompany.Id == null && this.ModifiedData.SpId != null ? "" : _sellingCompany.Id;
     }
 }
Exemple #2
0
 /// <summary>
 ///     Resolves the dependencies by means of persisting all models that this model is referencing.
 /// </summary>
 protected override void ResolveGeneratedDependency()
 {
     base.ResolveGeneratedDependency();
     if (_iCalMessageType != null)
     {
         _iCalMessageType.Save();
         this.ModifiedData.IcmtId = _iCalMessageType.Id;
     }
     if (_sellingCompany != null)
     {
         _sellingCompany.Save();
         this.ModifiedData.SelcoSpId = _sellingCompany.Id == null && this.ModifiedData.SelcoSpId != null ? "" : _sellingCompany.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;
     }
 }
Exemple #4
0
 /// <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.VatCode = _vatCode.Value1;
     }
     if (_revCode != null)
     {
         _revCode.Save();
         this.ModifiedData.PrdRevCode = _revCode.Value1;
     }
     if (_invoice != null)
     {
         _invoice.Save();
         this.ModifiedData.InvId = _invoice.Id == null && this.ModifiedData.InvId != null ? "" : _invoice.Id;
     }
     if (_productId != null)
     {
         _productId.Save();
         this.ModifiedData.ProductId = _productId.Id == null && this.ModifiedData.ProductId != null ? "" : _productId.Id;
     }
     if (_booking != null)
     {
         _booking.Save();
         this.ModifiedData.BookId = _booking.Id == null && this.ModifiedData.BookId != null ? "" : _booking.Id;
     }
     if (_element != null)
     {
         _element.Save();
         this.ModifiedData.ElemId = _element.Id == null && this.ModifiedData.ElemId != null ? "" : _element.Id;
     }
     if (_courseId != null)
     {
         _courseId.Save();
         this.ModifiedData.CourseId = _courseId.Id == null && this.ModifiedData.CourseId != null ? "" : _courseId.Id;
     }
     if (_melId != null)
     {
         _melId.Save();
         this.ModifiedData.MelId = _melId.Id == null && this.ModifiedData.MelId != null ? "" : _melId.Id;
     }
     if (_sellingCompany != null)
     {
         _sellingCompany.Save();
         this.ModifiedData.SelcoSpId = _sellingCompany.Id == null && this.ModifiedData.SelcoSpId != null ? "" : _sellingCompany.Id;
     }
 }
 /// <summary>
 ///     Resolves the dependencies by means of persisting all models that this model is referencing.
 /// </summary>
 protected override void ResolveGeneratedDependency()
 {
     base.ResolveGeneratedDependency();
     if (_orgId != null)
     {
         _orgId.Save();
         this.ModifiedData.OrgId = _orgId.Id == null && this.ModifiedData.OrgId != null ? "" : _orgId.Id;
     }
     if (_proleId != null)
     {
         _proleId.Save();
         this.ModifiedData.ProleId = _proleId.Id == null && this.ModifiedData.ProleId != null ? "" : _proleId.Id;
     }
     if (_givenToId != null)
     {
         _givenToId.Save();
         this.ModifiedData.GivenToId = _givenToId.Id == null && this.ModifiedData.GivenToId != null ? "" : _givenToId.Id;
     }
     if (_detailsId != null)
     {
         _detailsId.Save();
         this.ModifiedData.DetailsId = _detailsId.Id == null && this.ModifiedData.DetailsId != null ? "" : _detailsId.Id;
     }
     if (_fixId != null)
     {
         _fixId.Save();
         this.ModifiedData.FixId = _fixId.Id == null && this.ModifiedData.FixId != null ? "" : _fixId.Id;
     }
     if (_wipId != null)
     {
         _wipId.Save();
         this.ModifiedData.WipId = _wipId.Id == null && this.ModifiedData.WipId != null ? "" : _wipId.Id;
     }
     if (_selcoSpId != null)
     {
         _selcoSpId.Save();
         this.ModifiedData.SelcoSpId = _selcoSpId.Id == null && this.ModifiedData.SelcoSpId != null ? "" : _selcoSpId.Id;
     }
     if (_pmId != null)
     {
         _pmId.Save();
         this.ModifiedData.PmId = _pmId.Id == null && this.ModifiedData.PmId != null ? "" : _pmId.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.Id == null && this.ModifiedData.Type != null ? "" : _type.Id;
     }
     if (_sellingCompany != null)
     {
         _sellingCompany.Save();
         this.ModifiedData.SelcoSpId = _sellingCompany.Id == null && this.ModifiedData.SelcoSpId != null ? "" : _sellingCompany.Id;
     }
     if (_sendFrom != null)
     {
         _sendFrom.Save();
         this.ModifiedData.SendProleId = _sendFrom.Id == null && this.ModifiedData.SendProleId != null ? "" : _sendFrom.Id;
     }
 }
Exemple #7
0
 /// <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.AinStatus = _status.Value1;
     }
     if (_attribute01 != null)
     {
         _attribute01.Save();
         this.ModifiedData.AinAttrib01 = _attribute01.Value1;
     }
     if (_role != null)
     {
         _role.Save();
         this.ModifiedData.AinProleId = _role.Id == null && this.ModifiedData.AinProleId != null ? "" : _role.Id;
     }
     if (_sellingCompany != null)
     {
         _sellingCompany.Save();
         this.ModifiedData.AinSelcoSpId = _sellingCompany.Id == null && this.ModifiedData.AinSelcoSpId != null ? "" : _sellingCompany.Id;
     }
     if (_feeNotesText != null)
     {
         _feeNotesText.Save();
         this.ModifiedData.AinFeeNotesTextId = _feeNotesText.Id == null && this.ModifiedData.AinFeeNotesTextId != null ? "" : _feeNotesText.Id;
     }
     if (_hotelReqText != null)
     {
         _hotelReqText.Save();
         this.ModifiedData.AinHotelReqTextId = _hotelReqText.Id == null && this.ModifiedData.AinHotelReqTextId != null ? "" : _hotelReqText.Id;
     }
     if (_otherInfoText != null)
     {
         _otherInfoText.Save();
         this.ModifiedData.AinOtherInfoTextId = _otherInfoText.Id == null && this.ModifiedData.AinOtherInfoTextId != null ? "" : _otherInfoText.Id;
     }
 }
 /// <summary>
 ///     Resolves the dependencies by means of persisting all models that this model is referencing.
 /// </summary>
 protected override void ResolveGeneratedDependency()
 {
     base.ResolveGeneratedDependency();
     if (_region != null)
     {
         _region.Save();
         this.ModifiedData.Region = _region.Value1;
     }
     if (_venueType != null)
     {
         _venueType.Save();
         this.ModifiedData.VenueType = _venueType.Value1;
     }
     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 (_sellingCompany != null)
     {
         _sellingCompany.Save();
         this.ModifiedData.SelcoSpId = _sellingCompany.Id == null && this.ModifiedData.SelcoSpId != null ? "" : _sellingCompany.Id;
     }
     if (_locationRole != null)
     {
         _locationRole.Save();
         this.ModifiedData.LocProleId = _locationRole.Id == null && this.ModifiedData.LocProleId != null ? "" : _locationRole.Id;
     }
     if (_linkedLocation != null)
     {
         _linkedLocation.Save();
         this.ModifiedData.LinkedLocId = _linkedLocation.Id == null && this.ModifiedData.LinkedLocId != null ? "" : _linkedLocation.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 (_result != null)
     {
         _result.Save();
         this.ModifiedData.Result = _result.Value1;
     }
     if (_opportunity != null)
     {
         _opportunity.Save();
         this.ModifiedData.OppId = _opportunity.Id == null && this.ModifiedData.OppId != null ? "" : _opportunity.Id;
     }
     if (_sellingCompany != null)
     {
         _sellingCompany.Save();
         this.ModifiedData.SelcoSpId = _sellingCompany.Id == null && this.ModifiedData.SelcoSpId != null ? "" : _sellingCompany.Id;
     }
 }
Exemple #10
0
 /// <summary>
 ///     Resolves the dependencies by means of persisting all models that this model is referencing.
 /// </summary>
 protected override void ResolveGeneratedDependency()
 {
     base.ResolveGeneratedDependency();
     if (_project != null)
     {
         _project.Save();
         this.ModifiedData.ProjId = _project.Id == null && this.ModifiedData.ProjId != null ? "" : _project.Id;
     }
     if (_sellingCompany != null)
     {
         _sellingCompany.Save();
         this.ModifiedData.SelcoSpId = _sellingCompany.Id == null && this.ModifiedData.SelcoSpId != null ? "" : _sellingCompany.Id;
     }
     if (_manager != null)
     {
         _manager.Save();
         this.ModifiedData.ProleId = _manager.Id == null && this.ModifiedData.ProleId != null ? "" : _manager.Id;
     }
     if (_approver != null)
     {
         _approver.Save();
         this.ModifiedData.AppProleId = _approver.Id == null && this.ModifiedData.AppProleId != null ? "" : _approver.Id;
     }
 }
Exemple #11
0
 /// <summary>
 ///     Resolves the dependencies by means of persisting all models that this model is referencing.
 /// </summary>
 protected override void ResolveGeneratedDependency()
 {
     base.ResolveGeneratedDependency();
     if (_packEmailBody != null)
     {
         _packEmailBody.Save();
         this.ModifiedData.EmailBody = _packEmailBody.Id == null && this.ModifiedData.EmailBody != null ? "" : _packEmailBody.Id;
     }
     if (_packSenderId != null)
     {
         _packSenderId.Save();
         this.ModifiedData.SendProleId = _packSenderId.Id == null && this.ModifiedData.SendProleId != null ? "" : _packSenderId.Id;
     }
     if (_packOutputQueueId != null)
     {
         _packOutputQueueId.Save();
         this.ModifiedData.PqId = _packOutputQueueId.Id == null && this.ModifiedData.PqId != null ? "" : _packOutputQueueId.Id;
     }
     if (_packSellingCompanyId != null)
     {
         _packSellingCompanyId.Save();
         this.ModifiedData.SelcoSpId = _packSellingCompanyId.Id == null && this.ModifiedData.SelcoSpId != null ? "" : _packSellingCompanyId.Id;
     }
 }
Exemple #12
0
 /// <summary>
 ///     Resolves the dependencies by means of persisting all models that this model is referencing.
 /// </summary>
 protected override void ResolveGeneratedDependency()
 {
     base.ResolveGeneratedDependency();
     if (_principal != null)
     {
         _principal.Save();
         this.ModifiedData.PrincipalId = _principal.Id;
     }
     if (_person != null)
     {
         _person.Save();
         this.ModifiedData.PersonId = _person.Id == null && this.ModifiedData.PersonId != null ? "" : _person.Id;
     }
     if (_sellingCompany != null)
     {
         _sellingCompany.Save();
         this.ModifiedData.SelcoId = _sellingCompany.Id == null && this.ModifiedData.SelcoId != null ? "" : _sellingCompany.Id;
     }
     if (_reportId != null)
     {
         _reportId.Save();
         this.ModifiedData.RepId = _reportId.Id == null && this.ModifiedData.RepId != null ? "" : _reportId.Id;
     }
 }
Exemple #13
0
 /// <summary>
 ///     Resolves the dependencies by means of persisting all models that this model is referencing.
 /// </summary>
 protected override void ResolveGeneratedDependency()
 {
     base.ResolveGeneratedDependency();
     if (_submitter != null)
     {
         _submitter.Save();
         this.ModifiedData.SubmitterProleId = _submitter.Id == null && this.ModifiedData.SubmitterProleId != null ? "" : _submitter.Id;
     }
     if (_trustee != null)
     {
         _trustee.Save();
         this.ModifiedData.TrusteeProleId = _trustee.Id == null && this.ModifiedData.TrusteeProleId != null ? "" : _trustee.Id;
     }
     if (_organisation != null)
     {
         _organisation.Save();
         this.ModifiedData.OrgId = _organisation.Id == null && this.ModifiedData.OrgId != null ? "" : _organisation.Id;
     }
     if (_sellingCompany != null)
     {
         _sellingCompany.Save();
         this.ModifiedData.SelcoSpId = _sellingCompany.Id == null && this.ModifiedData.SelcoSpId != null ? "" : _sellingCompany.Id;
     }
 }
Exemple #14
0
 /// <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;
     }
 }
Exemple #15
0
 /// <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 (_prodInterest != null)
     {
         _prodInterest.Save();
         this.ModifiedData.ProdInterest = _prodInterest.Value1;
     }
     if (_source != null)
     {
         _source.Save();
         this.ModifiedData.Medium = _source.Value1;
     }
     if (_competitor != null)
     {
         _competitor.Save();
         this.ModifiedData.Competitor = _competitor.Value1;
     }
     if (_salesType != null)
     {
         _salesType.Save();
         this.ModifiedData.SalesType = _salesType.Value1;
     }
     if (_service != null)
     {
         _service.Save();
         this.ModifiedData.Service = _service.Value1;
     }
     if (_searchGroup != null)
     {
         _searchGroup.Save();
         this.ModifiedData.SearchGroup = _searchGroup.Value1;
     }
     if (_promId != null)
     {
         _promId.Save();
         this.ModifiedData.PromId = _promId.Id == null && this.ModifiedData.PromId != null ? "" : _promId.Id;
     }
     if (_activity != null)
     {
         _activity.Save();
         this.ModifiedData.ActId = _activity.Id == null && this.ModifiedData.ActId != null ? "" : _activity.Id;
     }
     if (_sellingCompany != null)
     {
         _sellingCompany.Save();
         this.ModifiedData.SelcoSpId = _sellingCompany.Id == null && this.ModifiedData.SelcoSpId != null ? "" : _sellingCompany.Id;
     }
     if (_courseId != null)
     {
         _courseId.Save();
         this.ModifiedData.CourseId = _courseId.Id == null && this.ModifiedData.CourseId != null ? "" : _courseId.Id;
     }
     if (_product != null)
     {
         _product.Save();
         this.ModifiedData.ProdId = _product.Id == null && this.ModifiedData.ProdId != null ? "" : _product.Id;
     }
 }