From 3e8ed0b466699f434cc2021fcc5d0ef1bbdb3423 Mon Sep 17 00:00:00 2001 From: peggy-quartech Date: Mon, 9 Jun 2025 09:49:31 -0700 Subject: [PATCH 01/11] mdra --- src/Spd.Manager.Licence/BizProfileContract.cs | 9 - .../MDRARegistrationContract.cs | 41 +++++ .../MDRARegistrationManager.cs | 154 ++++++++++++++++++ .../MDRARegistrationValidation.cs | 39 +++++ src/Spd.Manager.Licence/SharedContract.cs | 9 + .../Controllers/MDRAController.cs | 82 ++++++++++ 6 files changed, 325 insertions(+), 9 deletions(-) create mode 100644 src/Spd.Manager.Licence/MDRARegistrationContract.cs create mode 100644 src/Spd.Manager.Licence/MDRARegistrationManager.cs create mode 100644 src/Spd.Manager.Licence/MDRARegistrationValidation.cs create mode 100644 src/Spd.Presentation.Licensing/Controllers/MDRAController.cs diff --git a/src/Spd.Manager.Licence/BizProfileContract.cs b/src/Spd.Manager.Licence/BizProfileContract.cs index 440ffb0001..07fd7a0578 100644 --- a/src/Spd.Manager.Licence/BizProfileContract.cs +++ b/src/Spd.Manager.Licence/BizProfileContract.cs @@ -41,15 +41,6 @@ public record BizInfo } -public record BranchInfo -{ - public Guid? BranchId { get; set; } - public Address? BranchAddress { get; set; } - public string? BranchManager { get; set; } - public string? BranchPhoneNumber { get; set; } - public string? BranchEmailAddr { get; set; } -} - public record BizListResponse { public Guid BizId { get; set; } //which is accountid in account diff --git a/src/Spd.Manager.Licence/MDRARegistrationContract.cs b/src/Spd.Manager.Licence/MDRARegistrationContract.cs new file mode 100644 index 0000000000..2a0653a93d --- /dev/null +++ b/src/Spd.Manager.Licence/MDRARegistrationContract.cs @@ -0,0 +1,41 @@ +using MediatR; +using Spd.Manager.Shared; + +namespace Spd.Manager.Licence; +public interface IMDRARegistrationManager +{ + //anonymous + public Task Handle(MDRARegistrationNewCommand command, CancellationToken ct); + public Task Handle(MDRARegistrationRenewCommand command, CancellationToken ct); + public Task Handle(MDRARegistrationUpdateCommand command, CancellationToken ct); +} + +public record MDRARegistrationNewCommand(MDRARegistrationRequest SubmitRequest, IEnumerable LicAppFileInfos) : IRequest; +public record MDRARegistrationRenewCommand(MDRARegistrationRequest ChangeRequest, IEnumerable LicAppFileInfos) : IRequest; +public record MDRARegistrationUpdateCommand(MDRARegistrationRequest ChangeRequest, IEnumerable LicAppFileInfos) : IRequest; + +public record MDRARegistrationRequest +{ + public ApplicationTypeCode ApplicationTypeCode { get; set; } + public string BizOwnerLastName { get; set; } + public string BizOwnerFirstName { get; set; } + public string BizOwnerMiddleName { get; set; } + public string? BizLegalName { get; set; } + public string? BizTradeName { get; set; } + public Address? BizMailingAddress { get; set; } + public Address? BizAddress { get; set; } + public string BizManagerLastName { get; set; } + public string BizManagerFirstName { get; set; } + public string BizManagerMiddleName { get; set; } + public string? BizPhoneNumber { get; set; } + public string? BizEmailAddress { get; set; } + public IEnumerable? Branches { get; set; } + public IEnumerable DocumentRelatedInfos { get; set; } = Enumerable.Empty(); + public IEnumerable? DocumentKeyCodes { get; set; } +} + +public record MDRARegistrationCommandResponse +{ + public Guid? LicenceAppId { get; set; } +} + diff --git a/src/Spd.Manager.Licence/MDRARegistrationManager.cs b/src/Spd.Manager.Licence/MDRARegistrationManager.cs new file mode 100644 index 0000000000..a8302b443b --- /dev/null +++ b/src/Spd.Manager.Licence/MDRARegistrationManager.cs @@ -0,0 +1,154 @@ +using AutoMapper; +using MediatR; +using Spd.Manager.Shared; +using Spd.Resource.Repository; +using Spd.Resource.Repository.Document; +using Spd.Resource.Repository.DogBase; +using Spd.Resource.Repository.DogTrainerApp; +using Spd.Resource.Repository.LicApp; +using Spd.Resource.Repository.Licence; +using Spd.Utilities.FileStorage; +using Spd.Utilities.Shared.Exceptions; +using Spd.Utilities.Shared.Tools; +using System.Net; + +namespace Spd.Manager.Licence; +internal class MDRARegistrationManager : + LicenceAppManagerBase, + IRequestHandler, + IRequestHandler, + IRequestHandler, + IRequestHandler, + IDogTrainerAppManager +{ + private readonly IDogTrainerAppRepository _dogTrainerAppRepository; + + public DogTrainerAppManager( + ILicenceRepository licenceRepository, + IMapper mapper, + IDocumentRepository documentUrlRepository, + IMainFileStorageService mainFileStorageService, + ITransientFileStorageService transientFileStorageService, + ILicAppRepository licAppRepository, + IDogTrainerAppRepository dogTrainerAppRepository) + : base(mapper, + documentUrlRepository, + null, + licenceRepository, + mainFileStorageService, + transientFileStorageService, + licAppRepository) + { + _dogTrainerAppRepository = dogTrainerAppRepository; + } + + #region anonymous + public async Task Handle(DogTrainerLicenceAppAnonymousSubmitCommand cmd, CancellationToken ct) + { + DogTrainerRequest request = cmd.SubmitRequest; + ValidateFilesForNewApp(cmd); + + //save the application + CreateDogTrainerAppCmd createApp = _mapper.Map(request); + var response = await _dogTrainerAppRepository.CreateDogTrainerAppAsync(createApp, ct); + await UploadNewDocsAsync(request.DocumentRelatedInfos, cmd.LicAppFileInfos, response.LicenceAppId, response.ContactId, null, null, null, null, null, ct); + await _dogTrainerAppRepository.CommitAppAsync(new CommitAppCmd() + { + LicenceAppId = response.LicenceAppId + }, ct); + return new DogTrainerAppCommandResponse { LicenceAppId = response.LicenceAppId }; + } + + public async Task Handle(GetDogTrainerAppQuery request, CancellationToken ct) + { + var response = await _dogTrainerAppRepository.GetDogTrainerAppAsync(request.LicenceApplicationId, ct); + DogTrainerAppResponse result = _mapper.Map(response); + var existingDocs = await _documentRepository.QueryAsync(new DocumentQry(request.LicenceApplicationId), ct); + result.DocumentInfos = _mapper.Map(existingDocs.Items).Where(d => d.LicenceDocumentTypeCode != null).ToList(); + return result; + } + + public async Task Handle(DogTrainerLicenceAppRenewCommand cmd, CancellationToken ct) + { + LicenceResp? originalLic = await _licenceRepository.GetAsync(cmd.ChangeRequest.OriginalLicenceId, ct); + if (originalLic == null || originalLic.ServiceTypeCode != ServiceTypeEnum.DogTrainerCertification) + throw new ArgumentException("cannot find the licence that needs to be renewed."); + + //check Renew your existing certification even though it has been expired for 6 month + DateOnly currentDate = DateOnlyHelper.GetCurrentPSTDate(); + if (currentDate > originalLic.ExpiryDate.AddMonths(Constants.GDSDRenewValidAfterExpirationInMonths)) + throw new ArgumentException($"the certification can only be renewed within {Constants.GDSDRenewValidAfterExpirationInMonths} months after expiry date."); + + CreateDogTrainerAppCmd createApp = _mapper.Map(cmd.ChangeRequest); + var response = await _dogTrainerAppRepository.CreateDogTrainerAppAsync(createApp, ct); + await UploadNewDocsAsync(cmd.ChangeRequest.DocumentRelatedInfos, cmd.LicAppFileInfos, response.LicenceAppId, response.ContactId, null, null, null, null, null, ct); + //copying all old files to new application in PreviousFileIds + if (cmd.ChangeRequest.PreviousDocumentIds != null && cmd.ChangeRequest.PreviousDocumentIds.Any()) + { + foreach (var docUrlId in cmd.ChangeRequest.PreviousDocumentIds) + { + await _documentRepository.ManageAsync( + new CopyDocumentCmd(docUrlId, response.LicenceAppId, response.ContactId), + ct); + } + } + await _dogTrainerAppRepository.CommitAppAsync(new CommitAppCmd() + { + LicenceAppId = response.LicenceAppId + }, ct); + return new DogTrainerAppCommandResponse { LicenceAppId = response.LicenceAppId }; + } + + public async Task Handle(DogTrainerLicenceAppReplaceCommand cmd, CancellationToken ct) + { + LicenceResp? originalLic = await _licenceRepository.GetAsync(cmd.ChangeRequest.OriginalLicenceId, ct); + if (originalLic == null || originalLic.ServiceTypeCode != ServiceTypeEnum.DogTrainerCertification) + throw new ArgumentException("cannot find the licence that needs to be replaced."); + + var existingFiles = await GetExistingFileInfo(cmd.ChangeRequest.PreviousDocumentIds, ct); + CreateDogTrainerAppCmd createApp = _mapper.Map(cmd.ChangeRequest); + var response = await _dogTrainerAppRepository.CreateDogTrainerAppAsync(createApp, ct); + await UploadNewDocsAsync(cmd.ChangeRequest.DocumentRelatedInfos, cmd.LicAppFileInfos, response.LicenceAppId, response.ContactId, null, null, null, null, null, ct); + //copying all old files to new application in PreviousFileIds + if (cmd.ChangeRequest.PreviousDocumentIds != null && cmd.ChangeRequest.PreviousDocumentIds.Any()) + { + foreach (var docUrlId in cmd.ChangeRequest.PreviousDocumentIds) + { + await _documentRepository.ManageAsync( + new CopyDocumentCmd(docUrlId, response.LicenceAppId, response.ContactId), + ct); + } + } + await _dogTrainerAppRepository.CommitAppAsync(new CommitAppCmd() + { + LicenceAppId = response.LicenceAppId + }, ct); + return new DogTrainerAppCommandResponse { LicenceAppId = response.LicenceAppId }; + } + #endregion + + private static void ValidateFilesForNewApp(DogTrainerLicenceAppAnonymousSubmitCommand cmd) + { + DogTrainerRequest request = cmd.SubmitRequest; + IEnumerable fileInfos = cmd.LicAppFileInfos; + + if (request.ServiceTypeCode == ServiceTypeCode.DogTrainerCertification) //both new, renew, replace need photo + { + if (!fileInfos.Any(f => f.LicenceDocumentTypeCode == LicenceDocumentTypeCode.PhotoOfYourself)) + { + throw new ApiException(HttpStatusCode.BadRequest, "A photo that shows the applicant’s face is required."); + } + } + + if (request.ServiceTypeCode == ServiceTypeCode.DogTrainerCertification && request.ApplicationTypeCode == ApplicationTypeCode.New) + { + if (!fileInfos.Any(f => LicenceAppDocumentManager.ValidGovIssuedPhotoIdCodes.Contains(f.LicenceDocumentTypeCode))) + { + throw new ApiException(HttpStatusCode.BadRequest, "A valid government issued photo identification is required."); + } + + } + + } + +} diff --git a/src/Spd.Manager.Licence/MDRARegistrationValidation.cs b/src/Spd.Manager.Licence/MDRARegistrationValidation.cs new file mode 100644 index 0000000000..72715a833d --- /dev/null +++ b/src/Spd.Manager.Licence/MDRARegistrationValidation.cs @@ -0,0 +1,39 @@ +using FluentValidation; +using Spd.Manager.Shared; + +namespace Spd.Manager.Licence; + +public class MDRARegistrationManagerValidator : AbstractValidator +{ + public DogTrainerRequestValidator() + { + RuleFor(r => r.AccreditedSchoolId).NotEmpty().NotEqual(Guid.Empty); + RuleFor(r => r.ServiceTypeCode).Must(t => t == ServiceTypeCode.DogTrainerCertification); //must be team, dog trainer or retired dog + RuleFor(r => r.ApplicationTypeCode).NotEmpty(); + RuleFor(x => x.AccreditedSchoolName).NotEmpty().MaximumLength(250); + RuleFor(r => r.SchoolContactEmailAddress).MaximumLength(75) + .EmailAddress() + .When(r => r.SchoolContactEmailAddress != null); + RuleFor(r => r.SchoolContactPhoneNumber).MaximumLength(30); + RuleFor(r => r.SchoolDirectorGivenName).MaximumLength(40); + RuleFor(r => r.SchoolDirectorSurname).MaximumLength(40).NotEmpty(); + RuleFor(r => r.SchoolDirectorMiddleName).MaximumLength(40); + RuleFor(r => r.TrainerGivenName).MaximumLength(40); + RuleFor(r => r.TrainerSurname).MaximumLength(40).NotEmpty(); + RuleFor(r => r.TrainerMiddleName).MaximumLength(40); + RuleFor(r => r.TrainerMailingAddress).SetValidator(new MailingAddressValidator()) + .When(r => r.TrainerMailingAddress != null); + RuleFor(r => r.TrainerDateOfBirth).NotNull().NotEmpty().Must(d => d > new DateOnly(1800, 1, 1)); + RuleFor(r => r.TrainerPhoneNumber).MaximumLength(30); + RuleFor(r => r.TrainerEmailAddress).EmailAddress().MaximumLength(75).When(r => r.TrainerEmailAddress != null); + } +} + +public class DogTrainerChangeRequestValidator : AbstractValidator +{ + public DogTrainerChangeRequestValidator() + { + Include(new DogTrainerRequestValidator()); + RuleFor(r => r.OriginalLicenceId).NotEmpty(); + } +} \ No newline at end of file diff --git a/src/Spd.Manager.Licence/SharedContract.cs b/src/Spd.Manager.Licence/SharedContract.cs index a24a937cfa..29e3ecd1f9 100644 --- a/src/Spd.Manager.Licence/SharedContract.cs +++ b/src/Spd.Manager.Licence/SharedContract.cs @@ -199,4 +199,13 @@ public record ContactInfo public string? MiddleName1 { get; set; } public string? MiddleName2 { get; set; } public string? Surname { get; set; } +} + +public record BranchInfo +{ + public Guid? BranchId { get; set; } + public Address? BranchAddress { get; set; } + public string? BranchManager { get; set; } + public string? BranchPhoneNumber { get; set; } + public string? BranchEmailAddr { get; set; } } \ No newline at end of file diff --git a/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs b/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs new file mode 100644 index 0000000000..471e549951 --- /dev/null +++ b/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs @@ -0,0 +1,82 @@ +using FluentValidation; +using MediatR; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Caching.Distributed; +using Spd.Manager.Licence; +using Spd.Utilities.Recaptcha; +using System.Security.Principal; + +namespace Spd.Presentation.Licensing.Controllers +{ + [ApiController] + public class MDRAController : SpdLicenceControllerBase + { + private readonly IPrincipal _currentUser; + private readonly IMediator _mediator; + private readonly IConfiguration _configuration; + private readonly IValidator _permitAppAnonymousSubmitRequestValidator; + private readonly IValidator _permitAppUpsertValidator; + + public MDRAController(IPrincipal currentUser, + IMediator mediator, + IConfiguration configuration, + IValidator permitAppAnonymousSubmitRequestValidator, + IValidator permitAppUpsertValidator, + IRecaptchaVerificationService recaptchaVerificationService, + IDistributedCache cache) : base(cache, recaptchaVerificationService, configuration) + { + _currentUser = currentUser; + _mediator = mediator; + _configuration = configuration; + _permitAppAnonymousSubmitRequestValidator = permitAppAnonymousSubmitRequestValidator; + _permitAppUpsertValidator = permitAppUpsertValidator; + } + + #region anonymous + + /// + /// Submit Body Armour or Armour Vehicle permit application Anonymously + /// After fe done with the uploading files, then fe do post with json payload, inside payload, it needs to contain an array of keycode for the files. + /// The session keycode is stored in the cookies. + /// + /// PermitAppAnonymousSubmitRequest data + /// + /// + [Route("api/mdra-registrations")] + [HttpPost] + public async Task SubmitMDRARegistrationAnonymous(MDRARegistrationRequest jsonRequest, CancellationToken ct) + { + await VerifyKeyCode(); + + //IEnumerable newDocInfos = await GetAllNewDocsInfoAsync(jsonRequest.DocumentKeyCodes, ct); + //var validateResult = await _permitAppAnonymousSubmitRequestValidator.ValidateAsync(jsonRequest, ct); + //if (!validateResult.IsValid) + // throw new ApiException(HttpStatusCode.BadRequest, JsonSerializer.Serialize(validateResult.Errors)); + //jsonRequest.ApplicationOriginTypeCode = ApplicationOriginTypeCode.WebForm; + + PermitAppCommandResponse? response = null; + if (jsonRequest.ApplicationTypeCode == ApplicationTypeCode.New) + { + PermitAppNewCommand command = new(jsonRequest, newDocInfos); + response = await _mediator.Send(command, ct); + } + + if (jsonRequest.ApplicationTypeCode == ApplicationTypeCode.Renewal) + { + PermitAppRenewCommand command = new(jsonRequest, newDocInfos); + response = await _mediator.Send(command, ct); + } + + if (jsonRequest.ApplicationTypeCode == ApplicationTypeCode.Update) + { + PermitAppUpdateCommand command = new(jsonRequest, newDocInfos); + response = await _mediator.Send(command, ct); + } + //SetValueToResponseCookie(SessionConstants.AnonymousApplicationSubmitKeyCode, String.Empty); + //SetValueToResponseCookie(SessionConstants.AnonymousApplicationContext, String.Empty); + return null; + } + + #endregion anonymous + } +} \ No newline at end of file From 1c17c0fad5910162f60de039109f3ad15b142b8d Mon Sep 17 00:00:00 2001 From: peggy-quartech Date: Mon, 9 Jun 2025 11:16:15 -0700 Subject: [PATCH 02/11] temp --- .../MDRARegistrationContract.cs | 5 +- .../MDRARegistrationManager.cs | 145 ++---------------- .../MDRARegistrationValidation.cs | 51 +++--- .../Controllers/MDRAController.cs | 45 +++--- 4 files changed, 59 insertions(+), 187 deletions(-) diff --git a/src/Spd.Manager.Licence/MDRARegistrationContract.cs b/src/Spd.Manager.Licence/MDRARegistrationContract.cs index 2a0653a93d..76e241a01a 100644 --- a/src/Spd.Manager.Licence/MDRARegistrationContract.cs +++ b/src/Spd.Manager.Licence/MDRARegistrationContract.cs @@ -17,6 +17,7 @@ public record MDRARegistrationUpdateCommand(MDRARegistrationRequest ChangeReques public record MDRARegistrationRequest { public ApplicationTypeCode ApplicationTypeCode { get; set; } + public ApplicationOriginTypeCode ApplicationOriginTypeCode { get; set; } = ApplicationOriginTypeCode.WebForm; public string BizOwnerLastName { get; set; } public string BizOwnerFirstName { get; set; } public string BizOwnerMiddleName { get; set; } @@ -30,12 +31,12 @@ public record MDRARegistrationRequest public string? BizPhoneNumber { get; set; } public string? BizEmailAddress { get; set; } public IEnumerable? Branches { get; set; } - public IEnumerable DocumentRelatedInfos { get; set; } = Enumerable.Empty(); public IEnumerable? DocumentKeyCodes { get; set; } } public record MDRARegistrationCommandResponse { - public Guid? LicenceAppId { get; set; } + public Guid? OrgRegistrationId { get; set; } + public string? OrgRegistrationNumber { get; set; } } diff --git a/src/Spd.Manager.Licence/MDRARegistrationManager.cs b/src/Spd.Manager.Licence/MDRARegistrationManager.cs index a8302b443b..f29e707bfc 100644 --- a/src/Spd.Manager.Licence/MDRARegistrationManager.cs +++ b/src/Spd.Manager.Licence/MDRARegistrationManager.cs @@ -1,154 +1,31 @@ -using AutoMapper; using MediatR; -using Spd.Manager.Shared; -using Spd.Resource.Repository; -using Spd.Resource.Repository.Document; -using Spd.Resource.Repository.DogBase; -using Spd.Resource.Repository.DogTrainerApp; -using Spd.Resource.Repository.LicApp; -using Spd.Resource.Repository.Licence; -using Spd.Utilities.FileStorage; -using Spd.Utilities.Shared.Exceptions; -using Spd.Utilities.Shared.Tools; -using System.Net; namespace Spd.Manager.Licence; internal class MDRARegistrationManager : - LicenceAppManagerBase, - IRequestHandler, - IRequestHandler, - IRequestHandler, - IRequestHandler, - IDogTrainerAppManager + IRequestHandler, + IRequestHandler, + IRequestHandler, + IMDRARegistrationManager { - private readonly IDogTrainerAppRepository _dogTrainerAppRepository; - - public DogTrainerAppManager( - ILicenceRepository licenceRepository, - IMapper mapper, - IDocumentRepository documentUrlRepository, - IMainFileStorageService mainFileStorageService, - ITransientFileStorageService transientFileStorageService, - ILicAppRepository licAppRepository, - IDogTrainerAppRepository dogTrainerAppRepository) - : base(mapper, - documentUrlRepository, - null, - licenceRepository, - mainFileStorageService, - transientFileStorageService, - licAppRepository) + public MDRARegistrationManager() { - _dogTrainerAppRepository = dogTrainerAppRepository; } #region anonymous - public async Task Handle(DogTrainerLicenceAppAnonymousSubmitCommand cmd, CancellationToken ct) - { - DogTrainerRequest request = cmd.SubmitRequest; - ValidateFilesForNewApp(cmd); - - //save the application - CreateDogTrainerAppCmd createApp = _mapper.Map(request); - var response = await _dogTrainerAppRepository.CreateDogTrainerAppAsync(createApp, ct); - await UploadNewDocsAsync(request.DocumentRelatedInfos, cmd.LicAppFileInfos, response.LicenceAppId, response.ContactId, null, null, null, null, null, ct); - await _dogTrainerAppRepository.CommitAppAsync(new CommitAppCmd() - { - LicenceAppId = response.LicenceAppId - }, ct); - return new DogTrainerAppCommandResponse { LicenceAppId = response.LicenceAppId }; - } - - public async Task Handle(GetDogTrainerAppQuery request, CancellationToken ct) + public async Task Handle(MDRARegistrationNewCommand cmd, CancellationToken ct) { - var response = await _dogTrainerAppRepository.GetDogTrainerAppAsync(request.LicenceApplicationId, ct); - DogTrainerAppResponse result = _mapper.Map(response); - var existingDocs = await _documentRepository.QueryAsync(new DocumentQry(request.LicenceApplicationId), ct); - result.DocumentInfos = _mapper.Map(existingDocs.Items).Where(d => d.LicenceDocumentTypeCode != null).ToList(); - return result; + return new MDRARegistrationCommandResponse { OrgRegistrationId = Guid.Empty }; } - public async Task Handle(DogTrainerLicenceAppRenewCommand cmd, CancellationToken ct) + public async Task Handle(MDRARegistrationRenewCommand cmd, CancellationToken ct) { - LicenceResp? originalLic = await _licenceRepository.GetAsync(cmd.ChangeRequest.OriginalLicenceId, ct); - if (originalLic == null || originalLic.ServiceTypeCode != ServiceTypeEnum.DogTrainerCertification) - throw new ArgumentException("cannot find the licence that needs to be renewed."); - - //check Renew your existing certification even though it has been expired for 6 month - DateOnly currentDate = DateOnlyHelper.GetCurrentPSTDate(); - if (currentDate > originalLic.ExpiryDate.AddMonths(Constants.GDSDRenewValidAfterExpirationInMonths)) - throw new ArgumentException($"the certification can only be renewed within {Constants.GDSDRenewValidAfterExpirationInMonths} months after expiry date."); - - CreateDogTrainerAppCmd createApp = _mapper.Map(cmd.ChangeRequest); - var response = await _dogTrainerAppRepository.CreateDogTrainerAppAsync(createApp, ct); - await UploadNewDocsAsync(cmd.ChangeRequest.DocumentRelatedInfos, cmd.LicAppFileInfos, response.LicenceAppId, response.ContactId, null, null, null, null, null, ct); - //copying all old files to new application in PreviousFileIds - if (cmd.ChangeRequest.PreviousDocumentIds != null && cmd.ChangeRequest.PreviousDocumentIds.Any()) - { - foreach (var docUrlId in cmd.ChangeRequest.PreviousDocumentIds) - { - await _documentRepository.ManageAsync( - new CopyDocumentCmd(docUrlId, response.LicenceAppId, response.ContactId), - ct); - } - } - await _dogTrainerAppRepository.CommitAppAsync(new CommitAppCmd() - { - LicenceAppId = response.LicenceAppId - }, ct); - return new DogTrainerAppCommandResponse { LicenceAppId = response.LicenceAppId }; + return new MDRARegistrationCommandResponse { OrgRegistrationId = Guid.Empty }; } - public async Task Handle(DogTrainerLicenceAppReplaceCommand cmd, CancellationToken ct) + public async Task Handle(MDRARegistrationUpdateCommand cmd, CancellationToken ct) { - LicenceResp? originalLic = await _licenceRepository.GetAsync(cmd.ChangeRequest.OriginalLicenceId, ct); - if (originalLic == null || originalLic.ServiceTypeCode != ServiceTypeEnum.DogTrainerCertification) - throw new ArgumentException("cannot find the licence that needs to be replaced."); - - var existingFiles = await GetExistingFileInfo(cmd.ChangeRequest.PreviousDocumentIds, ct); - CreateDogTrainerAppCmd createApp = _mapper.Map(cmd.ChangeRequest); - var response = await _dogTrainerAppRepository.CreateDogTrainerAppAsync(createApp, ct); - await UploadNewDocsAsync(cmd.ChangeRequest.DocumentRelatedInfos, cmd.LicAppFileInfos, response.LicenceAppId, response.ContactId, null, null, null, null, null, ct); - //copying all old files to new application in PreviousFileIds - if (cmd.ChangeRequest.PreviousDocumentIds != null && cmd.ChangeRequest.PreviousDocumentIds.Any()) - { - foreach (var docUrlId in cmd.ChangeRequest.PreviousDocumentIds) - { - await _documentRepository.ManageAsync( - new CopyDocumentCmd(docUrlId, response.LicenceAppId, response.ContactId), - ct); - } - } - await _dogTrainerAppRepository.CommitAppAsync(new CommitAppCmd() - { - LicenceAppId = response.LicenceAppId - }, ct); - return new DogTrainerAppCommandResponse { LicenceAppId = response.LicenceAppId }; + return new MDRARegistrationCommandResponse { OrgRegistrationId = Guid.Empty }; } #endregion - private static void ValidateFilesForNewApp(DogTrainerLicenceAppAnonymousSubmitCommand cmd) - { - DogTrainerRequest request = cmd.SubmitRequest; - IEnumerable fileInfos = cmd.LicAppFileInfos; - - if (request.ServiceTypeCode == ServiceTypeCode.DogTrainerCertification) //both new, renew, replace need photo - { - if (!fileInfos.Any(f => f.LicenceDocumentTypeCode == LicenceDocumentTypeCode.PhotoOfYourself)) - { - throw new ApiException(HttpStatusCode.BadRequest, "A photo that shows the applicant’s face is required."); - } - } - - if (request.ServiceTypeCode == ServiceTypeCode.DogTrainerCertification && request.ApplicationTypeCode == ApplicationTypeCode.New) - { - if (!fileInfos.Any(f => LicenceAppDocumentManager.ValidGovIssuedPhotoIdCodes.Contains(f.LicenceDocumentTypeCode))) - { - throw new ApiException(HttpStatusCode.BadRequest, "A valid government issued photo identification is required."); - } - - } - - } - } diff --git a/src/Spd.Manager.Licence/MDRARegistrationValidation.cs b/src/Spd.Manager.Licence/MDRARegistrationValidation.cs index 72715a833d..6e4f097cc3 100644 --- a/src/Spd.Manager.Licence/MDRARegistrationValidation.cs +++ b/src/Spd.Manager.Licence/MDRARegistrationValidation.cs @@ -1,39 +1,30 @@ using FluentValidation; -using Spd.Manager.Shared; namespace Spd.Manager.Licence; -public class MDRARegistrationManagerValidator : AbstractValidator +public class MDRARegistrationManagerValidator : AbstractValidator { - public DogTrainerRequestValidator() + public MDRARegistrationManagerValidator() { - RuleFor(r => r.AccreditedSchoolId).NotEmpty().NotEqual(Guid.Empty); - RuleFor(r => r.ServiceTypeCode).Must(t => t == ServiceTypeCode.DogTrainerCertification); //must be team, dog trainer or retired dog - RuleFor(r => r.ApplicationTypeCode).NotEmpty(); - RuleFor(x => x.AccreditedSchoolName).NotEmpty().MaximumLength(250); - RuleFor(r => r.SchoolContactEmailAddress).MaximumLength(75) - .EmailAddress() - .When(r => r.SchoolContactEmailAddress != null); - RuleFor(r => r.SchoolContactPhoneNumber).MaximumLength(30); - RuleFor(r => r.SchoolDirectorGivenName).MaximumLength(40); - RuleFor(r => r.SchoolDirectorSurname).MaximumLength(40).NotEmpty(); - RuleFor(r => r.SchoolDirectorMiddleName).MaximumLength(40); - RuleFor(r => r.TrainerGivenName).MaximumLength(40); - RuleFor(r => r.TrainerSurname).MaximumLength(40).NotEmpty(); - RuleFor(r => r.TrainerMiddleName).MaximumLength(40); - RuleFor(r => r.TrainerMailingAddress).SetValidator(new MailingAddressValidator()) - .When(r => r.TrainerMailingAddress != null); - RuleFor(r => r.TrainerDateOfBirth).NotNull().NotEmpty().Must(d => d > new DateOnly(1800, 1, 1)); - RuleFor(r => r.TrainerPhoneNumber).MaximumLength(30); - RuleFor(r => r.TrainerEmailAddress).EmailAddress().MaximumLength(75).When(r => r.TrainerEmailAddress != null); + //RuleFor(r => r.AccreditedSchoolId).NotEmpty().NotEqual(Guid.Empty); + //RuleFor(r => r.ServiceTypeCode).Must(t => t == ServiceTypeCode.DogTrainerCertification); //must be team, dog trainer or retired dog + //RuleFor(r => r.ApplicationTypeCode).NotEmpty(); + //RuleFor(x => x.AccreditedSchoolName).NotEmpty().MaximumLength(250); + //RuleFor(r => r.SchoolContactEmailAddress).MaximumLength(75) + // .EmailAddress() + // .When(r => r.SchoolContactEmailAddress != null); + //RuleFor(r => r.SchoolContactPhoneNumber).MaximumLength(30); + //RuleFor(r => r.SchoolDirectorGivenName).MaximumLength(40); + //RuleFor(r => r.SchoolDirectorSurname).MaximumLength(40).NotEmpty(); + //RuleFor(r => r.SchoolDirectorMiddleName).MaximumLength(40); + //RuleFor(r => r.TrainerGivenName).MaximumLength(40); + //RuleFor(r => r.TrainerSurname).MaximumLength(40).NotEmpty(); + //RuleFor(r => r.TrainerMiddleName).MaximumLength(40); + //RuleFor(r => r.TrainerMailingAddress).SetValidator(new MailingAddressValidator()) + // .When(r => r.TrainerMailingAddress != null); + //RuleFor(r => r.TrainerDateOfBirth).NotNull().NotEmpty().Must(d => d > new DateOnly(1800, 1, 1)); + //RuleFor(r => r.TrainerPhoneNumber).MaximumLength(30); + //RuleFor(r => r.TrainerEmailAddress).EmailAddress().MaximumLength(75).When(r => r.TrainerEmailAddress != null); } } -public class DogTrainerChangeRequestValidator : AbstractValidator -{ - public DogTrainerChangeRequestValidator() - { - Include(new DogTrainerRequestValidator()); - RuleFor(r => r.OriginalLicenceId).NotEmpty(); - } -} \ No newline at end of file diff --git a/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs b/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs index 471e549951..a7d92bfafe 100644 --- a/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs +++ b/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs @@ -1,10 +1,15 @@ using FluentValidation; using MediatR; +using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Caching.Distributed; using Spd.Manager.Licence; +using Spd.Manager.Shared; using Spd.Utilities.Recaptcha; +using Spd.Utilities.Shared.Exceptions; +using System.Net; using System.Security.Principal; +using System.Text.Json; namespace Spd.Presentation.Licensing.Controllers { @@ -14,66 +19,64 @@ public class MDRAController : SpdLicenceControllerBase private readonly IPrincipal _currentUser; private readonly IMediator _mediator; private readonly IConfiguration _configuration; - private readonly IValidator _permitAppAnonymousSubmitRequestValidator; - private readonly IValidator _permitAppUpsertValidator; + private readonly IValidator _mdraRequestValidator; public MDRAController(IPrincipal currentUser, IMediator mediator, IConfiguration configuration, - IValidator permitAppAnonymousSubmitRequestValidator, - IValidator permitAppUpsertValidator, + IDataProtectionProvider dataProtector, IRecaptchaVerificationService recaptchaVerificationService, - IDistributedCache cache) : base(cache, recaptchaVerificationService, configuration) + IDistributedCache cache, + IValidator mdraRequestValidator) : base(cache, dataProtector, recaptchaVerificationService, configuration) { _currentUser = currentUser; _mediator = mediator; _configuration = configuration; - _permitAppAnonymousSubmitRequestValidator = permitAppAnonymousSubmitRequestValidator; - _permitAppUpsertValidator = permitAppUpsertValidator; + _mdraRequestValidator = mdraRequestValidator; } #region anonymous /// - /// Submit Body Armour or Armour Vehicle permit application Anonymously + /// Submit MDRA registration Anonymously /// After fe done with the uploading files, then fe do post with json payload, inside payload, it needs to contain an array of keycode for the files. /// The session keycode is stored in the cookies. /// - /// PermitAppAnonymousSubmitRequest data + /// MDRARegistrationRequest data /// /// [Route("api/mdra-registrations")] [HttpPost] - public async Task SubmitMDRARegistrationAnonymous(MDRARegistrationRequest jsonRequest, CancellationToken ct) + public async Task SubmitMDRARegistrationAnonymous(MDRARegistrationRequest jsonRequest, CancellationToken ct) { await VerifyKeyCode(); - //IEnumerable newDocInfos = await GetAllNewDocsInfoAsync(jsonRequest.DocumentKeyCodes, ct); - //var validateResult = await _permitAppAnonymousSubmitRequestValidator.ValidateAsync(jsonRequest, ct); - //if (!validateResult.IsValid) - // throw new ApiException(HttpStatusCode.BadRequest, JsonSerializer.Serialize(validateResult.Errors)); - //jsonRequest.ApplicationOriginTypeCode = ApplicationOriginTypeCode.WebForm; + IEnumerable newDocInfos = await GetAllNewDocsInfoAsync(jsonRequest.DocumentKeyCodes, ct); + var validateResult = await _mdraRequestValidator.ValidateAsync(jsonRequest, ct); + if (!validateResult.IsValid) + throw new ApiException(HttpStatusCode.BadRequest, JsonSerializer.Serialize(validateResult.Errors)); + jsonRequest.ApplicationOriginTypeCode = ApplicationOriginTypeCode.WebForm; - PermitAppCommandResponse? response = null; + MDRARegistrationCommandResponse? response = null; if (jsonRequest.ApplicationTypeCode == ApplicationTypeCode.New) { - PermitAppNewCommand command = new(jsonRequest, newDocInfos); + MDRARegistrationNewCommand command = new(jsonRequest, newDocInfos); response = await _mediator.Send(command, ct); } if (jsonRequest.ApplicationTypeCode == ApplicationTypeCode.Renewal) { - PermitAppRenewCommand command = new(jsonRequest, newDocInfos); + MDRARegistrationNewCommand command = new(jsonRequest, newDocInfos); response = await _mediator.Send(command, ct); } if (jsonRequest.ApplicationTypeCode == ApplicationTypeCode.Update) { - PermitAppUpdateCommand command = new(jsonRequest, newDocInfos); + MDRARegistrationNewCommand command = new(jsonRequest, newDocInfos); response = await _mediator.Send(command, ct); } - //SetValueToResponseCookie(SessionConstants.AnonymousApplicationSubmitKeyCode, String.Empty); - //SetValueToResponseCookie(SessionConstants.AnonymousApplicationContext, String.Empty); + SetValueToResponseCookie(SessionConstants.AnonymousApplicationSubmitKeyCode, String.Empty); + SetValueToResponseCookie(SessionConstants.AnonymousApplicationContext, String.Empty); return null; } From 3909ce5310f51d48013dec86e1a4e29b6373dcf4 Mon Sep 17 00:00:00 2001 From: peggy-quartech Date: Mon, 9 Jun 2025 11:57:02 -0700 Subject: [PATCH 03/11] add repository --- src/Spd.Manager.Licence/SharedContract.cs | 1 - .../MDRARegistration/Contract.cs | 30 +++++++++++++ .../MDRARegistrationRepository.cs | 19 ++++++++ .../MDRARegistration/Mappings.cs | 44 +++++++++++++++++++ src/Spd.Resource.Repository/SharedContract.cs | 9 ++++ 5 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 src/Spd.Resource.Repository/MDRARegistration/Contract.cs create mode 100644 src/Spd.Resource.Repository/MDRARegistration/MDRARegistrationRepository.cs create mode 100644 src/Spd.Resource.Repository/MDRARegistration/Mappings.cs diff --git a/src/Spd.Manager.Licence/SharedContract.cs b/src/Spd.Manager.Licence/SharedContract.cs index 29e3ecd1f9..1bd0d7f3e5 100644 --- a/src/Spd.Manager.Licence/SharedContract.cs +++ b/src/Spd.Manager.Licence/SharedContract.cs @@ -1,5 +1,4 @@ namespace Spd.Manager.Licence; - public class UploadFileRequest { public LicenceDocumentTypeCode FileTypeCode { get; set; } diff --git a/src/Spd.Resource.Repository/MDRARegistration/Contract.cs b/src/Spd.Resource.Repository/MDRARegistration/Contract.cs new file mode 100644 index 0000000000..667a19ec89 --- /dev/null +++ b/src/Spd.Resource.Repository/MDRARegistration/Contract.cs @@ -0,0 +1,30 @@ + +namespace Spd.Resource.Repository.MDRARegistration; +public interface IMDRARegistrationRepository +{ + public Task CreateMDRARegistrationAsync(CreateMDRARegistrationCmd cmd, CancellationToken ct); +} + +public record MDRARegistrationResp(Guid RegistrationId); + +public record CreateMDRARegistrationCmd +{ + public ApplicationTypeEnum ApplicationTypeCode { get; set; } + public ApplicationOriginTypeEnum ApplicationOriginTypeCode { get; set; } = ApplicationOriginTypeEnum.WebForm; + public string BizOwnerLastName { get; set; } + public string BizOwnerFirstName { get; set; } + public string BizOwnerMiddleName { get; set; } + public string? BizLegalName { get; set; } + public string? BizTradeName { get; set; } + public Addr? BizMailingAddress { get; set; } + public Addr? BizAddress { get; set; } + public string BizManagerLastName { get; set; } + public string BizManagerFirstName { get; set; } + public string BizManagerMiddleName { get; set; } + public string? BizPhoneNumber { get; set; } + public string? BizEmailAddress { get; set; } + public IEnumerable? Branches { get; set; } + public IEnumerable? DocumentKeyCodes { get; set; } + +} + diff --git a/src/Spd.Resource.Repository/MDRARegistration/MDRARegistrationRepository.cs b/src/Spd.Resource.Repository/MDRARegistration/MDRARegistrationRepository.cs new file mode 100644 index 0000000000..d96bdcc537 --- /dev/null +++ b/src/Spd.Resource.Repository/MDRARegistration/MDRARegistrationRepository.cs @@ -0,0 +1,19 @@ +using AutoMapper; +using Spd.Utilities.Dynamics; + +namespace Spd.Resource.Repository.MDRARegistration; +internal class MDRARegistrationRepository : IMDRARegistrationRepository +{ + public MDRARegistrationRepository(IDynamicsContextFactory ctx, IMapper mapper) + { } + + public async Task CreateMDRARegistrationAsync(CreateMDRARegistrationCmd cmd, CancellationToken ct) + { + + //await _context.SaveChangesAsync(ct); + //if (app == null || contact == null) + // throw new ApiException(HttpStatusCode.InternalServerError); + return new MDRARegistrationResp(Guid.Empty); + } + +} diff --git a/src/Spd.Resource.Repository/MDRARegistration/Mappings.cs b/src/Spd.Resource.Repository/MDRARegistration/Mappings.cs new file mode 100644 index 0000000000..9bc3fdd149 --- /dev/null +++ b/src/Spd.Resource.Repository/MDRARegistration/Mappings.cs @@ -0,0 +1,44 @@ +using AutoMapper; +using Microsoft.Dynamics.CRM; + +namespace Spd.Resource.Repository.MDRARegistration; +internal class Mappings : Profile +{ + public Mappings() + { + _ = CreateMap() + //.ForMember(d => d.spd_applicationid, opt => opt.MapFrom(s => Guid.NewGuid())) + //.ForMember(d => d.spd_licenceapplicationtype, opt => opt.MapFrom(s => SharedMappingFuncs.GetLicenceApplicationTypeOptionSet(s.ApplicationTypeCode))) + //.ForMember(d => d.spd_firstname, opt => opt.MapFrom(s => s.TrainerGivenName)) + //.ForMember(d => d.spd_lastname, opt => opt.MapFrom(s => s.TrainerSurname)) + //.ForMember(d => d.spd_middlename1, opt => opt.MapFrom(s => s.TrainerMiddleName)) + //.ForMember(d => d.spd_dateofbirth, opt => opt.MapFrom(s => SharedMappingFuncs.GetDateFromDateOnly(s.TrainerDateOfBirth))) + //.ForMember(d => d.spd_emailaddress1, opt => opt.MapFrom(s => s.TrainerEmailAddress)) + //.ForMember(d => d.spd_phonenumber, opt => opt.MapFrom(s => s.TrainerPhoneNumber)) + //.ForMember(d => d.spd_origin, opt => opt.MapFrom(s => SharedMappingFuncs.GetOptionset(s.ApplicationOriginTypeCode))) + //.ForMember(d => d.statecode, opt => opt.MapFrom(s => DynamicsConstants.StateCode_Active)) + //.ForMember(d => d.spd_addressline1, opt => opt.MapFrom(s => s.TrainerMailingAddress == null ? null : StringHelper.SanitizeEmpty(s.TrainerMailingAddress.AddressLine1))) + //.ForMember(d => d.spd_addressline2, opt => opt.MapFrom(s => s.TrainerMailingAddress == null ? null : StringHelper.SanitizeEmpty(s.TrainerMailingAddress.AddressLine2))) + //.ForMember(d => d.spd_city, opt => opt.MapFrom(s => s.TrainerMailingAddress == null ? null : StringHelper.SanitizeEmpty(s.TrainerMailingAddress.City))) + //.ForMember(d => d.spd_postalcode, opt => opt.MapFrom(s => s.TrainerMailingAddress == null ? null : StringHelper.SanitizeEmpty(s.TrainerMailingAddress.PostalCode))) + //.ForMember(d => d.spd_province, opt => opt.MapFrom(s => s.TrainerMailingAddress == null ? null : StringHelper.SanitizeEmpty(s.TrainerMailingAddress.Province))) + //.ForMember(d => d.spd_country, opt => opt.MapFrom(s => s.TrainerMailingAddress == null ? null : StringHelper.SanitizeEmpty(s.TrainerMailingAddress.Country))) + //.ForMember(d => d.spd_submittedon, opt => opt.Ignore()) + //.ForMember(d => d.spd_portalmodifiedon, opt => opt.MapFrom(s => DateTimeOffset.UtcNow)) + //.ForMember(d => d.spd_licenceterm, opt => opt.MapFrom(s => SharedMappingFuncs.GetOptionset(s.LicenceTermCode))) + //.ForMember(d => d.spd_declaration, opt => opt.MapFrom(s => s.AgreeToCompleteAndAccurate)) + //.ForMember(d => d.spd_consent, opt => opt.MapFrom(s => s.AgreeToCompleteAndAccurate)) + //.ForMember(d => d.spd_declarationdate, opt => opt.MapFrom(s => SharedMappingFuncs.GetDeclarationDate(s.AgreeToCompleteAndAccurate))) + //.ReverseMap() + //.ForMember(d => d.ServiceTypeCode, opt => opt.MapFrom(s => SharedMappingFuncs.GetServiceType(s._spd_servicetypeid_value))) + //.ForMember(d => d.ApplicationOriginTypeCode, opt => opt.MapFrom(s => SharedMappingFuncs.GetEnum(s.spd_origin))) + //.ForMember(d => d.ApplicationTypeCode, opt => opt.MapFrom(s => SharedMappingFuncs.GetLicenceApplicationTypeEnum(s.spd_licenceapplicationtype))) + //.ForMember(d => d.LicenceTermCode, opt => opt.MapFrom(s => SharedMappingFuncs.GetLicenceTermEnum(s.spd_licenceterm))) + //.ForMember(d => d.TrainerDateOfBirth, opt => opt.MapFrom(s => SharedMappingFuncs.GetDateOnly(s.spd_dateofbirth))) + //.ForMember(d => d.TrainerMailingAddress, opt => opt.MapFrom(s => SharedMappingFuncs.GetMailingAddressData(s))) + ; + + + + } +} diff --git a/src/Spd.Resource.Repository/SharedContract.cs b/src/Spd.Resource.Repository/SharedContract.cs index 3f6fa0c80e..f463355c56 100644 --- a/src/Spd.Resource.Repository/SharedContract.cs +++ b/src/Spd.Resource.Repository/SharedContract.cs @@ -207,4 +207,13 @@ public enum ApplicationOriginTypeEnum Fax, GenericUpload, OrganizationSubmitted +} + +public record BranchInfo +{ + public Guid? BranchId { get; set; } + public Addr? BranchAddress { get; set; } + public string? BranchManager { get; set; } + public string? BranchPhoneNumber { get; set; } + public string? BranchEmailAddr { get; set; } } \ No newline at end of file From 5613a7f647556ff5692388549b1c863fb3cd6ab1 Mon Sep 17 00:00:00 2001 From: peggy-quartech Date: Mon, 9 Jun 2025 15:19:46 -0700 Subject: [PATCH 04/11] add validation --- src/Directory.Packages.props | 4 +- .../MDRARegistrationValidation.cs | 54 +++++++++++-------- .../Controllers/MDRAController.cs | 13 ++--- 3 files changed, 39 insertions(+), 32 deletions(-) diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index d8cda19d22..6191272ac1 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -13,8 +13,8 @@ - - + + diff --git a/src/Spd.Manager.Licence/MDRARegistrationValidation.cs b/src/Spd.Manager.Licence/MDRARegistrationValidation.cs index 6e4f097cc3..4b6dccc4cd 100644 --- a/src/Spd.Manager.Licence/MDRARegistrationValidation.cs +++ b/src/Spd.Manager.Licence/MDRARegistrationValidation.cs @@ -2,29 +2,41 @@ namespace Spd.Manager.Licence; -public class MDRARegistrationManagerValidator : AbstractValidator +public class MDRARegistrationValidator : AbstractValidator { - public MDRARegistrationManagerValidator() + public MDRARegistrationValidator() { - //RuleFor(r => r.AccreditedSchoolId).NotEmpty().NotEqual(Guid.Empty); - //RuleFor(r => r.ServiceTypeCode).Must(t => t == ServiceTypeCode.DogTrainerCertification); //must be team, dog trainer or retired dog - //RuleFor(r => r.ApplicationTypeCode).NotEmpty(); - //RuleFor(x => x.AccreditedSchoolName).NotEmpty().MaximumLength(250); - //RuleFor(r => r.SchoolContactEmailAddress).MaximumLength(75) - // .EmailAddress() - // .When(r => r.SchoolContactEmailAddress != null); - //RuleFor(r => r.SchoolContactPhoneNumber).MaximumLength(30); - //RuleFor(r => r.SchoolDirectorGivenName).MaximumLength(40); - //RuleFor(r => r.SchoolDirectorSurname).MaximumLength(40).NotEmpty(); - //RuleFor(r => r.SchoolDirectorMiddleName).MaximumLength(40); - //RuleFor(r => r.TrainerGivenName).MaximumLength(40); - //RuleFor(r => r.TrainerSurname).MaximumLength(40).NotEmpty(); - //RuleFor(r => r.TrainerMiddleName).MaximumLength(40); - //RuleFor(r => r.TrainerMailingAddress).SetValidator(new MailingAddressValidator()) - // .When(r => r.TrainerMailingAddress != null); - //RuleFor(r => r.TrainerDateOfBirth).NotNull().NotEmpty().Must(d => d > new DateOnly(1800, 1, 1)); - //RuleFor(r => r.TrainerPhoneNumber).MaximumLength(30); - //RuleFor(r => r.TrainerEmailAddress).EmailAddress().MaximumLength(75).When(r => r.TrainerEmailAddress != null); + RuleFor(x => x.BizOwnerLastName).NotEmpty().MaximumLength(40); + RuleFor(r => r.BizLegalName).MaximumLength(200); + RuleFor(r => r.BizEmailAddress).EmailAddress(); + RuleFor(x => x.BizManagerLastName).NotEmpty().MaximumLength(40); + RuleFor(r => r.BizAddress).SetValidator(new AddressValidator()); + RuleFor(r => r.BizMailingAddress).SetValidator(new AddressValidator()); + RuleFor(r => r.Branches) + .ForEach(r => r + .Must(r => !string.IsNullOrEmpty(r.BranchAddress?.AddressLine1)) + .Must(r => !string.IsNullOrEmpty(r.BranchAddress?.City)) + .Must(r => !string.IsNullOrEmpty(r.BranchAddress?.Country)) + .Must(r => !string.IsNullOrEmpty(r.BranchAddress?.Province)) + .Must(r => !string.IsNullOrEmpty(r.BranchAddress?.PostalCode)) + .Must(r => !string.IsNullOrEmpty(r.BranchManager)) + .Must(r => r.BranchPhoneNumber == null || r.BranchPhoneNumber?.Length <= 15)) + .WithMessage("Missing branch address information.") + .When(r => r.Branches != null); } } +public class AddressValidator : AbstractValidator
+{ + public AddressValidator() + { + RuleFor(r => r.Province).NotEmpty().MaximumLength(100); + RuleFor(r => r.City).NotEmpty().MaximumLength(100); + RuleFor(r => r.AddressLine1).NotEmpty().MaximumLength(100); + RuleFor(r => r.Country).NotEmpty().MaximumLength(100); + RuleFor(r => r.PostalCode).NotEmpty().MaximumLength(20); + } +} + + + diff --git a/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs b/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs index a7d92bfafe..5ca255c3c6 100644 --- a/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs +++ b/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs @@ -7,8 +7,8 @@ using Spd.Manager.Shared; using Spd.Utilities.Recaptcha; using Spd.Utilities.Shared.Exceptions; +using System.ComponentModel.DataAnnotations; using System.Net; -using System.Security.Principal; using System.Text.Json; namespace Spd.Presentation.Licensing.Controllers @@ -16,22 +16,17 @@ namespace Spd.Presentation.Licensing.Controllers [ApiController] public class MDRAController : SpdLicenceControllerBase { - private readonly IPrincipal _currentUser; private readonly IMediator _mediator; - private readonly IConfiguration _configuration; private readonly IValidator _mdraRequestValidator; - public MDRAController(IPrincipal currentUser, - IMediator mediator, + public MDRAController(IMediator mediator, IConfiguration configuration, IDataProtectionProvider dataProtector, IRecaptchaVerificationService recaptchaVerificationService, IDistributedCache cache, IValidator mdraRequestValidator) : base(cache, dataProtector, recaptchaVerificationService, configuration) { - _currentUser = currentUser; _mediator = mediator; - _configuration = configuration; _mdraRequestValidator = mdraRequestValidator; } @@ -47,9 +42,9 @@ public MDRAController(IPrincipal currentUser, /// [Route("api/mdra-registrations")] [HttpPost] - public async Task SubmitMDRARegistrationAnonymous(MDRARegistrationRequest jsonRequest, CancellationToken ct) + public async Task SubmitMDRARegistrationAnonymous([FromBody][Required] MDRARegistrationRequest jsonRequest, CancellationToken ct) { - await VerifyKeyCode(); + //await VerifyKeyCode(); IEnumerable newDocInfos = await GetAllNewDocsInfoAsync(jsonRequest.DocumentKeyCodes, ct); var validateResult = await _mdraRequestValidator.ValidateAsync(jsonRequest, ct); From 68e1cbc94e3b870765efcad0154801831f94cdde Mon Sep 17 00:00:00 2001 From: peggy-quartech Date: Mon, 9 Jun 2025 16:46:46 -0700 Subject: [PATCH 05/11] fix dog trainer replace --- src/Spd.Manager.Licence/DogTrainerAppValidation.cs | 1 + .../DogTrainerApp/DogTrainerAppRepository.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Spd.Manager.Licence/DogTrainerAppValidation.cs b/src/Spd.Manager.Licence/DogTrainerAppValidation.cs index 2bb3ad5487..e3d39fa1f4 100644 --- a/src/Spd.Manager.Licence/DogTrainerAppValidation.cs +++ b/src/Spd.Manager.Licence/DogTrainerAppValidation.cs @@ -35,5 +35,6 @@ public DogTrainerChangeRequestValidator() { Include(new DogTrainerRequestValidator()); RuleFor(r => r.OriginalLicenceId).NotEmpty(); + RuleFor(r => r.ContactId).NotEqual(Guid.Empty).NotEmpty(); } } \ No newline at end of file diff --git a/src/Spd.Resource.Repository/DogTrainerApp/DogTrainerAppRepository.cs b/src/Spd.Resource.Repository/DogTrainerApp/DogTrainerAppRepository.cs index 2ba45e1f1f..9da7ed614f 100644 --- a/src/Spd.Resource.Repository/DogTrainerApp/DogTrainerAppRepository.cs +++ b/src/Spd.Resource.Repository/DogTrainerApp/DogTrainerAppRepository.cs @@ -25,8 +25,8 @@ public async Task CreateDogTrainerAppAsync(CreateDogTraine } else if (cmd.ApplicationTypeCode == ApplicationTypeEnum.Renewal || cmd.ApplicationTypeCode == ApplicationTypeEnum.Replacement) { - app = PrepareNewAppDataInDbContext(cmd, contact); contact = UpdateContact(cmd, (Guid)cmd.ContactId); + app = PrepareNewAppDataInDbContext(cmd, contact); if (contact != null) { _context.SetLink(app, nameof(spd_application.spd_ApplicantId_contact), contact); From af721dddac5580d11c72d0eac35b59e31a55a990 Mon Sep 17 00:00:00 2001 From: peggy-quartech Date: Mon, 9 Jun 2025 17:51:34 -0700 Subject: [PATCH 06/11] document and manager layer done --- .../MDRARegistrationManager.cs | 55 +- src/Spd.Manager.Licence/Mappings.cs | 2 + .../Controllers/MDRAController.cs | 20 +- .../Document/Contract.cs | 1 + .../Document/DocumentRepository.cs | 7 + .../MDRARegistration/Contract.cs | 8 +- .../OData Service/OData ServiceCsdl.xml | 188 +- .../OData Service/Reference.cs | 3730 +++++++++++++---- .../DynamicsContextLookupHelpers.cs | 18 + 9 files changed, 3091 insertions(+), 938 deletions(-) diff --git a/src/Spd.Manager.Licence/MDRARegistrationManager.cs b/src/Spd.Manager.Licence/MDRARegistrationManager.cs index f29e707bfc..9ab593373d 100644 --- a/src/Spd.Manager.Licence/MDRARegistrationManager.cs +++ b/src/Spd.Manager.Licence/MDRARegistrationManager.cs @@ -1,4 +1,11 @@ +using AutoMapper; using MediatR; +using Spd.Manager.Shared; +using Spd.Resource.Repository.Application; +using Spd.Resource.Repository.Document; +using Spd.Resource.Repository.MDRARegistration; +using Spd.Utilities.Shared.Exceptions; +using System.Net; namespace Spd.Manager.Licence; internal class MDRARegistrationManager : @@ -7,14 +14,27 @@ internal class MDRARegistrationManager : IRequestHandler, IMDRARegistrationManager { - public MDRARegistrationManager() + private readonly IMapper _mapper; + private readonly IMDRARegistrationRepository _repository; + private readonly IDocumentRepository _documentRepository; + + public MDRARegistrationManager(IMapper mapper, + IMDRARegistrationRepository repository, + IDocumentRepository documentRepository) { + this._mapper = mapper; + this._repository = repository; + this._documentRepository = documentRepository; } #region anonymous public async Task Handle(MDRARegistrationNewCommand cmd, CancellationToken ct) { - return new MDRARegistrationCommandResponse { OrgRegistrationId = Guid.Empty }; + ValidateFilesForNewApp(cmd); + CreateMDRARegistrationCmd createCmd = _mapper.Map(cmd.SubmitRequest); + MDRARegistrationResp respone = await _repository.CreateMDRARegistrationAsync(createCmd, ct); + await UploadNewDocsAsync(cmd.LicAppFileInfos, respone.RegistrationId, ct); + return new MDRARegistrationCommandResponse { OrgRegistrationId = respone.RegistrationId }; } public async Task Handle(MDRARegistrationRenewCommand cmd, CancellationToken ct) @@ -28,4 +48,35 @@ public async Task Handle(MDRARegistrationUpdate } #endregion + private static void ValidateFilesForNewApp(MDRARegistrationNewCommand cmd) + { + MDRARegistrationRequest request = cmd.SubmitRequest; + IEnumerable fileInfos = cmd.LicAppFileInfos; + + if (request.ApplicationTypeCode == ApplicationTypeCode.New) //both new and renew need biz licence Registry Document + { + if (!fileInfos.Any(f => f.LicenceDocumentTypeCode == LicenceDocumentTypeCode.CorporateRegistryDocument)) + { + throw new ApiException(HttpStatusCode.BadRequest, "Must provide copies of business licence registration documents."); + } + } + } + + //upload file from cache to main bucket + protected async Task UploadNewDocsAsync( + IEnumerable newFileInfos, + Guid? orgRegistrationId, + CancellationToken ct) + { + if (newFileInfos != null && newFileInfos.Any()) + { + foreach (LicAppFileInfo licAppFile in newFileInfos) + { + SpdTempFile? tempFile = _mapper.Map(licAppFile); + CreateDocumentCmd? fileCmd = _mapper.Map(licAppFile); + fileCmd.OrgRegistrationId = orgRegistrationId; + await _documentRepository.ManageAsync(fileCmd, ct); + } + } + } } diff --git a/src/Spd.Manager.Licence/Mappings.cs b/src/Spd.Manager.Licence/Mappings.cs index 9b51704637..5ea22ad149 100644 --- a/src/Spd.Manager.Licence/Mappings.cs +++ b/src/Spd.Manager.Licence/Mappings.cs @@ -17,6 +17,7 @@ using Spd.Resource.Repository.LicApp; using Spd.Resource.Repository.Licence; using Spd.Resource.Repository.LicenceFee; +using Spd.Resource.Repository.MDRARegistration; using Spd.Resource.Repository.PersonLicApplication; using Spd.Resource.Repository.PortalUser; using Spd.Resource.Repository.RetiredDogApp; @@ -507,6 +508,7 @@ public Mappings() CreateMap(); CreateMap(); CreateMap(); + CreateMap(); } private static WorkerCategoryTypeEnum[] GetCategories(IEnumerable codes) diff --git a/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs b/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs index 5ca255c3c6..ee9449e6f7 100644 --- a/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs +++ b/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs @@ -59,17 +59,17 @@ public MDRAController(IMediator mediator, response = await _mediator.Send(command, ct); } - if (jsonRequest.ApplicationTypeCode == ApplicationTypeCode.Renewal) - { - MDRARegistrationNewCommand command = new(jsonRequest, newDocInfos); - response = await _mediator.Send(command, ct); - } + //if (jsonRequest.ApplicationTypeCode == ApplicationTypeCode.Renewal) + //{ + // MDRARegistrationNewCommand command = new(jsonRequest, newDocInfos); + // response = await _mediator.Send(command, ct); + //} - if (jsonRequest.ApplicationTypeCode == ApplicationTypeCode.Update) - { - MDRARegistrationNewCommand command = new(jsonRequest, newDocInfos); - response = await _mediator.Send(command, ct); - } + //if (jsonRequest.ApplicationTypeCode == ApplicationTypeCode.Update) + //{ + // MDRARegistrationNewCommand command = new(jsonRequest, newDocInfos); + // response = await _mediator.Send(command, ct); + //} SetValueToResponseCookie(SessionConstants.AnonymousApplicationSubmitKeyCode, String.Empty); SetValueToResponseCookie(SessionConstants.AnonymousApplicationContext, String.Empty); return null; diff --git a/src/Spd.Resource.Repository/Document/Contract.cs b/src/Spd.Resource.Repository/Document/Contract.cs index f304b36f63..b4bdae15c3 100644 --- a/src/Spd.Resource.Repository/Document/Contract.cs +++ b/src/Spd.Resource.Repository/Document/Contract.cs @@ -56,6 +56,7 @@ public record CreateDocumentCmd : DocumentCmd public Guid? SubmittedByApplicantId { get; set; } public Guid? LicenceId { get; set; } public Guid? AccountId { get; set; } + public Guid? OrgRegistrationId { get; set; } public DocumentTypeEnum? DocumentType { get; set; } //tag1 public DocumentTypeEnum? DocumentType2 { get; set; } //tag2 public DateOnly? ExpiryDate { get; set; } diff --git a/src/Spd.Resource.Repository/Document/DocumentRepository.cs b/src/Spd.Resource.Repository/Document/DocumentRepository.cs index cb4c6cbbb3..afd82f41fd 100644 --- a/src/Spd.Resource.Repository/Document/DocumentRepository.cs +++ b/src/Spd.Resource.Repository/Document/DocumentRepository.cs @@ -151,6 +151,13 @@ private async Task DocumentCreateAsync(CreateDocumentCmd cmd, Canc throw new ArgumentException("invalid contact id"); _context.SetLink(documenturl, nameof(documenturl.bcgov_Customer_contact), contact); } + if (cmd.OrgRegistrationId != null) + { + spd_orgregistration? registration = await _context.GetOrgRegistrationById((Guid)cmd.OrgRegistrationId, ct); + if (registration == null) + throw new ArgumentException("invalid org registration id"); + _context.SetLink(documenturl, nameof(documenturl.spd_OrgRegistrationId), registration); + } if (cmd.TaskId != null) { task? task = await _context.GetTaskById((Guid)cmd.TaskId, ct); diff --git a/src/Spd.Resource.Repository/MDRARegistration/Contract.cs b/src/Spd.Resource.Repository/MDRARegistration/Contract.cs index 667a19ec89..68a33f2985 100644 --- a/src/Spd.Resource.Repository/MDRARegistration/Contract.cs +++ b/src/Spd.Resource.Repository/MDRARegistration/Contract.cs @@ -12,15 +12,15 @@ public record CreateMDRARegistrationCmd public ApplicationTypeEnum ApplicationTypeCode { get; set; } public ApplicationOriginTypeEnum ApplicationOriginTypeCode { get; set; } = ApplicationOriginTypeEnum.WebForm; public string BizOwnerLastName { get; set; } - public string BizOwnerFirstName { get; set; } - public string BizOwnerMiddleName { get; set; } + public string? BizOwnerFirstName { get; set; } + public string? BizOwnerMiddleName { get; set; } public string? BizLegalName { get; set; } public string? BizTradeName { get; set; } public Addr? BizMailingAddress { get; set; } public Addr? BizAddress { get; set; } public string BizManagerLastName { get; set; } - public string BizManagerFirstName { get; set; } - public string BizManagerMiddleName { get; set; } + public string? BizManagerFirstName { get; set; } + public string? BizManagerMiddleName { get; set; } public string? BizPhoneNumber { get; set; } public string? BizEmailAddress { get; set; } public IEnumerable? Branches { get; set; } diff --git a/src/Spd.Utilities.Dynamics/Connected Services/OData Service/OData ServiceCsdl.xml b/src/Spd.Utilities.Dynamics/Connected Services/OData Service/OData ServiceCsdl.xml index d82ad51f02..f12df9e2d2 100644 --- a/src/Spd.Utilities.Dynamics/Connected Services/OData Service/OData ServiceCsdl.xml +++ b/src/Spd.Utilities.Dynamics/Connected Services/OData Service/OData ServiceCsdl.xml @@ -385,7 +385,6 @@ - @@ -393,9 +392,10 @@ - + + @@ -2580,6 +2580,9 @@ + + + @@ -2812,11 +2815,11 @@ - + @@ -2869,15 +2872,6 @@ - - - - - - - - - @@ -2888,6 +2882,9 @@ + + + @@ -2902,10 +2899,16 @@ - - - + + + + + + + + + @@ -5097,6 +5100,9 @@ + + + @@ -7857,17 +7863,17 @@ - - + + @@ -13281,7 +13287,6 @@ - @@ -13309,12 +13314,13 @@ - + + @@ -15937,6 +15943,9 @@ + + + @@ -21460,6 +21469,7 @@ + @@ -23361,6 +23371,9 @@ + + + @@ -24222,6 +24235,9 @@ + + + @@ -29848,30 +29864,31 @@ - - - + + - + + - - - - - - - - - + - - + + + + + + + + - + + + + @@ -29908,6 +29925,9 @@ + + + @@ -32715,6 +32735,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -32782,6 +32855,7 @@ + @@ -34162,6 +34236,9 @@ + + + @@ -36085,6 +36162,10 @@ + + + + @@ -40959,6 +41040,14 @@ + + + + + + + + @@ -46452,6 +46541,7 @@ + @@ -47236,6 +47326,7 @@ + @@ -50584,6 +50675,7 @@ + @@ -52113,6 +52205,7 @@ + @@ -52663,6 +52756,7 @@ + @@ -52949,6 +53043,7 @@ + @@ -54616,6 +54711,7 @@ + @@ -55500,6 +55596,22 @@ + + + + + + + + + + + + + + + + @@ -55521,6 +55633,7 @@ + @@ -55929,6 +56042,7 @@ + @@ -57255,6 +57369,10 @@ + + + + diff --git a/src/Spd.Utilities.Dynamics/Connected Services/OData Service/Reference.cs b/src/Spd.Utilities.Dynamics/Connected Services/OData Service/Reference.cs index 1ac715c356..7c829cbd69 100644 --- a/src/Spd.Utilities.Dynamics/Connected Services/OData Service/Reference.cs +++ b/src/Spd.Utilities.Dynamics/Connected Services/OData Service/Reference.cs @@ -8,7 +8,7 @@ // //------------------------------------------------------------------------------ -// Generation date: 6/2/2025 3:33:17 PM +// Generation date: 6/9/2025 5:40:49 PM namespace Microsoft.Dynamics.CRM { /// @@ -7308,6 +7308,40 @@ protected string ResolveNameFromType(global::System.Type clientType) [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.OData.Client.DataServiceQuery _spd_securityservicescreenings; /// + /// There are no comments for spd_servicetypegroup_spd_servicetypeset in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery spd_servicetypegroup_spd_servicetypeset + { + get + { + if ((this._spd_servicetypegroup_spd_servicetypeset == null)) + { + this._spd_servicetypegroup_spd_servicetypeset = base.CreateQuery("spd_servicetypegroup_spd_servicetypeset"); + } + return this._spd_servicetypegroup_spd_servicetypeset; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _spd_servicetypegroup_spd_servicetypeset; + /// + /// There are no comments for spd_servicetypegroups in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery spd_servicetypegroups + { + get + { + if ((this._spd_servicetypegroups == null)) + { + this._spd_servicetypegroups = base.CreateQuery("spd_servicetypegroups"); + } + return this._spd_servicetypegroups; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _spd_servicetypegroups; + /// /// There are no comments for spd_servicetypes in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -11693,6 +11727,22 @@ public virtual void AddTospd_securityservicescreenings(spd_securityservicescreen base.AddObject("spd_securityservicescreenings", spd_securityservicescreening); } /// + /// There are no comments for spd_servicetypegroup_spd_servicetypeset in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual void AddTospd_servicetypegroup_spd_servicetypeset(spd_servicetypegroup_spd_servicetype spd_servicetypegroup_spd_servicetype) + { + base.AddObject("spd_servicetypegroup_spd_servicetypeset", spd_servicetypegroup_spd_servicetype); + } + /// + /// There are no comments for spd_servicetypegroups in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual void AddTospd_servicetypegroups(spd_servicetypegroup spd_servicetypegroup) + { + base.AddObject("spd_servicetypegroups", spd_servicetypegroup); + } + /// /// There are no comments for spd_servicetypes in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -17744,27 +17794,6 @@ public accountSingle(global::Microsoft.OData.Client.DataServiceQuerySingle _msdyn_playbookinstance_account; /// - /// There are no comments for bcgov_account_bcgov_templatesession in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceQuery bcgov_account_bcgov_templatesession - { - get - { - if (!this.IsComposable) - { - throw new global::System.NotSupportedException("The previous function is not composable."); - } - if ((this._bcgov_account_bcgov_templatesession == null)) - { - this._bcgov_account_bcgov_templatesession = Context.CreateQuery(GetPath("bcgov_account_bcgov_templatesession")); - } - return this._bcgov_account_bcgov_templatesession; - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceQuery _bcgov_account_bcgov_templatesession; - /// /// There are no comments for spd_organization_spd_licence_soleproprietor in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -17912,10 +17941,10 @@ public accountSingle(global::Microsoft.OData.Client.DataServiceQuerySingle _spd_account_spd_application_soleproprietororganization; /// - /// There are no comments for bcgov_account_bcgov_documenturl in the schema. + /// There are no comments for spd_account_spd_dogtrainingschool_OrganizationId in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceQuery bcgov_account_bcgov_documenturl + public virtual global::Microsoft.OData.Client.DataServiceQuery spd_account_spd_dogtrainingschool_OrganizationId { get { @@ -17923,20 +17952,20 @@ public accountSingle(global::Microsoft.OData.Client.DataServiceQuerySingle(GetPath("bcgov_account_bcgov_documenturl")); + this._spd_account_spd_dogtrainingschool_OrganizationId = Context.CreateQuery(GetPath("spd_account_spd_dogtrainingschool_OrganizationId")); } - return this._bcgov_account_bcgov_documenturl; + return this._spd_account_spd_dogtrainingschool_OrganizationId; } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceQuery _bcgov_account_bcgov_documenturl; + private global::Microsoft.OData.Client.DataServiceQuery _spd_account_spd_dogtrainingschool_OrganizationId; /// - /// There are no comments for spd_account_spd_dogtrainingschool_OrganizationId in the schema. + /// There are no comments for spd_account_spd_ranote_Applicant in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceQuery spd_account_spd_dogtrainingschool_OrganizationId + public virtual global::Microsoft.OData.Client.DataServiceQuery spd_account_spd_ranote_Applicant { get { @@ -17944,20 +17973,20 @@ public accountSingle(global::Microsoft.OData.Client.DataServiceQuerySingle(GetPath("spd_account_spd_dogtrainingschool_OrganizationId")); + this._spd_account_spd_ranote_Applicant = Context.CreateQuery(GetPath("spd_account_spd_ranote_Applicant")); } - return this._spd_account_spd_dogtrainingschool_OrganizationId; + return this._spd_account_spd_ranote_Applicant; } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceQuery _spd_account_spd_dogtrainingschool_OrganizationId; + private global::Microsoft.OData.Client.DataServiceQuery _spd_account_spd_ranote_Applicant; /// - /// There are no comments for spd_account_spd_ranote_Applicant in the schema. + /// There are no comments for bcgov_account_bcgov_documenturl in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceQuery spd_account_spd_ranote_Applicant + public virtual global::Microsoft.OData.Client.DataServiceQuery bcgov_account_bcgov_documenturl { get { @@ -17965,15 +17994,36 @@ public accountSingle(global::Microsoft.OData.Client.DataServiceQuerySingle(GetPath("spd_account_spd_ranote_Applicant")); + this._bcgov_account_bcgov_documenturl = Context.CreateQuery(GetPath("bcgov_account_bcgov_documenturl")); } - return this._spd_account_spd_ranote_Applicant; + return this._bcgov_account_bcgov_documenturl; } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceQuery _spd_account_spd_ranote_Applicant; + private global::Microsoft.OData.Client.DataServiceQuery _bcgov_account_bcgov_documenturl; + /// + /// There are no comments for bcgov_account_bcgov_templatesession in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery bcgov_account_bcgov_templatesession + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._bcgov_account_bcgov_templatesession == null)) + { + this._bcgov_account_bcgov_templatesession = Context.CreateQuery(GetPath("bcgov_account_bcgov_templatesession")); + } + return this._bcgov_account_bcgov_templatesession; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _bcgov_account_bcgov_templatesession; } /// /// There are no comments for account in the schema. @@ -24910,28 +24960,6 @@ public virtual string spd_cassitenumber partial void Onmsdyn_playbookinstance_accountChanging(global::Microsoft.OData.Client.DataServiceCollection value); partial void Onmsdyn_playbookinstance_accountChanged(); /// - /// There are no comments for Property bcgov_account_bcgov_templatesession in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceCollection bcgov_account_bcgov_templatesession - { - get - { - return this._bcgov_account_bcgov_templatesession; - } - set - { - this.Onbcgov_account_bcgov_templatesessionChanging(value); - this._bcgov_account_bcgov_templatesession = value; - this.Onbcgov_account_bcgov_templatesessionChanged(); - this.OnPropertyChanged("bcgov_account_bcgov_templatesession"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceCollection _bcgov_account_bcgov_templatesession = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); - partial void Onbcgov_account_bcgov_templatesessionChanging(global::Microsoft.OData.Client.DataServiceCollection value); - partial void Onbcgov_account_bcgov_templatesessionChanged(); - /// /// There are no comments for Property spd_organization_spd_licence_soleproprietor in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -25086,28 +25114,6 @@ public virtual string spd_cassitenumber partial void Onspd_account_spd_application_soleproprietororganizationChanging(global::Microsoft.OData.Client.DataServiceCollection value); partial void Onspd_account_spd_application_soleproprietororganizationChanged(); /// - /// There are no comments for Property bcgov_account_bcgov_documenturl in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceCollection bcgov_account_bcgov_documenturl - { - get - { - return this._bcgov_account_bcgov_documenturl; - } - set - { - this.Onbcgov_account_bcgov_documenturlChanging(value); - this._bcgov_account_bcgov_documenturl = value; - this.Onbcgov_account_bcgov_documenturlChanged(); - this.OnPropertyChanged("bcgov_account_bcgov_documenturl"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceCollection _bcgov_account_bcgov_documenturl = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); - partial void Onbcgov_account_bcgov_documenturlChanging(global::Microsoft.OData.Client.DataServiceCollection value); - partial void Onbcgov_account_bcgov_documenturlChanged(); - /// /// There are no comments for Property spd_account_spd_dogtrainingschool_OrganizationId in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -25152,6 +25158,50 @@ public virtual string spd_cassitenumber partial void Onspd_account_spd_ranote_ApplicantChanging(global::Microsoft.OData.Client.DataServiceCollection value); partial void Onspd_account_spd_ranote_ApplicantChanged(); /// + /// There are no comments for Property bcgov_account_bcgov_documenturl in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection bcgov_account_bcgov_documenturl + { + get + { + return this._bcgov_account_bcgov_documenturl; + } + set + { + this.Onbcgov_account_bcgov_documenturlChanging(value); + this._bcgov_account_bcgov_documenturl = value; + this.Onbcgov_account_bcgov_documenturlChanged(); + this.OnPropertyChanged("bcgov_account_bcgov_documenturl"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _bcgov_account_bcgov_documenturl = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onbcgov_account_bcgov_documenturlChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onbcgov_account_bcgov_documenturlChanged(); + /// + /// There are no comments for Property bcgov_account_bcgov_templatesession in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection bcgov_account_bcgov_templatesession + { + get + { + return this._bcgov_account_bcgov_templatesession; + } + set + { + this.Onbcgov_account_bcgov_templatesessionChanging(value); + this._bcgov_account_bcgov_templatesession = value; + this.Onbcgov_account_bcgov_templatesessionChanged(); + this.OnPropertyChanged("bcgov_account_bcgov_templatesession"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _bcgov_account_bcgov_templatesession = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onbcgov_account_bcgov_templatesessionChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onbcgov_account_bcgov_templatesessionChanged(); + /// /// There are no comments for spd_ClearanceSummary in the schema. /// public virtual global::Microsoft.OData.Client.DataServiceActionQuerySingle spd_ClearanceSummary() @@ -59494,6 +59544,27 @@ public asyncoperationSingle(global::Microsoft.OData.Client.DataServiceQuerySingl } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.Dynamics.CRM.spd_ranoteSingle _regardingobjectid_spd_ranote; + /// + /// There are no comments for regardingobjectid_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle regardingobjectid_spd_servicetypegroup + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._regardingobjectid_spd_servicetypegroup == null)) + { + this._regardingobjectid_spd_servicetypegroup = new global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle(this.Context, GetPath("regardingobjectid_spd_servicetypegroup")); + } + return this._regardingobjectid_spd_servicetypegroup; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle _regardingobjectid_spd_servicetypegroup; } /// /// There are no comments for asyncoperation in the schema. @@ -59837,6 +59908,7 @@ public partial class asyncoperation : crmbaseentity /// Initial value of regardingobjectid_spd_dogtrainingschool. /// Initial value of regardingobjectid_spd_guidedogsservicedogs. /// Initial value of regardingobjectid_spd_ranote. + /// Initial value of regardingobjectid_spd_servicetypegroup. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public static asyncoperation Createasyncoperation(global::Microsoft.Dynamics.CRM.theme regardingobjectid_theme, global::Microsoft.Dynamics.CRM.usermapping regardingobjectid_usermapping, @@ -60166,7 +60238,8 @@ public static asyncoperation Createasyncoperation(global::Microsoft.Dynamics.CRM global::Microsoft.Dynamics.CRM.spd_dogteam regardingobjectid_spd_dogteam, global::Microsoft.Dynamics.CRM.spd_dogtrainingschool regardingobjectid_spd_dogtrainingschool, global::Microsoft.Dynamics.CRM.spd_guidedogsservicedogs regardingobjectid_spd_guidedogsservicedogs, - global::Microsoft.Dynamics.CRM.spd_ranote regardingobjectid_spd_ranote) + global::Microsoft.Dynamics.CRM.spd_ranote regardingobjectid_spd_ranote, + global::Microsoft.Dynamics.CRM.spd_servicetypegroup regardingobjectid_spd_servicetypegroup) { asyncoperation asyncoperation = new asyncoperation(); if ((regardingobjectid_theme == null)) @@ -61814,6 +61887,11 @@ public static asyncoperation Createasyncoperation(global::Microsoft.Dynamics.CRM throw new global::System.ArgumentNullException("regardingobjectid_spd_ranote"); } asyncoperation.regardingobjectid_spd_ranote = regardingobjectid_spd_ranote; + if ((regardingobjectid_spd_servicetypegroup == null)) + { + throw new global::System.ArgumentNullException("regardingobjectid_spd_servicetypegroup"); + } + asyncoperation.regardingobjectid_spd_servicetypegroup = regardingobjectid_spd_servicetypegroup; return asyncoperation; } /// @@ -70703,6 +70781,29 @@ public virtual string workload private global::Microsoft.Dynamics.CRM.spd_ranote _regardingobjectid_spd_ranote; partial void Onregardingobjectid_spd_ranoteChanging(global::Microsoft.Dynamics.CRM.spd_ranote value); partial void Onregardingobjectid_spd_ranoteChanged(); + /// + /// There are no comments for Property regardingobjectid_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "regardingobjectid_spd_servicetypegroup is required.")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroup regardingobjectid_spd_servicetypegroup + { + get + { + return this._regardingobjectid_spd_servicetypegroup; + } + set + { + this.Onregardingobjectid_spd_servicetypegroupChanging(value); + this._regardingobjectid_spd_servicetypegroup = value; + this.Onregardingobjectid_spd_servicetypegroupChanged(); + this.OnPropertyChanged("regardingobjectid_spd_servicetypegroup"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroup _regardingobjectid_spd_servicetypegroup; + partial void Onregardingobjectid_spd_servicetypegroupChanging(global::Microsoft.Dynamics.CRM.spd_servicetypegroup value); + partial void Onregardingobjectid_spd_servicetypegroupChanged(); } /// /// There are no comments for attachmentSingle in the schema. @@ -75118,69 +75219,6 @@ public bcgov_documenturlSingle(global::Microsoft.OData.Client.DataServiceQuerySi [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.Dynamics.CRM.contactSingle _spd_SubmittedById; /// - /// There are no comments for bcgov_Tag1Id in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.Dynamics.CRM.bcgov_tagSingle bcgov_Tag1Id - { - get - { - if (!this.IsComposable) - { - throw new global::System.NotSupportedException("The previous function is not composable."); - } - if ((this._bcgov_Tag1Id == null)) - { - this._bcgov_Tag1Id = new global::Microsoft.Dynamics.CRM.bcgov_tagSingle(this.Context, GetPath("bcgov_Tag1Id")); - } - return this._bcgov_Tag1Id; - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.Dynamics.CRM.bcgov_tagSingle _bcgov_Tag1Id; - /// - /// There are no comments for bcgov_Tag2Id in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.Dynamics.CRM.bcgov_tagSingle bcgov_Tag2Id - { - get - { - if (!this.IsComposable) - { - throw new global::System.NotSupportedException("The previous function is not composable."); - } - if ((this._bcgov_Tag2Id == null)) - { - this._bcgov_Tag2Id = new global::Microsoft.Dynamics.CRM.bcgov_tagSingle(this.Context, GetPath("bcgov_Tag2Id")); - } - return this._bcgov_Tag2Id; - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.Dynamics.CRM.bcgov_tagSingle _bcgov_Tag2Id; - /// - /// There are no comments for bcgov_Tag3Id in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.Dynamics.CRM.bcgov_tagSingle bcgov_Tag3Id - { - get - { - if (!this.IsComposable) - { - throw new global::System.NotSupportedException("The previous function is not composable."); - } - if ((this._bcgov_Tag3Id == null)) - { - this._bcgov_Tag3Id = new global::Microsoft.Dynamics.CRM.bcgov_tagSingle(this.Context, GetPath("bcgov_Tag3Id")); - } - return this._bcgov_Tag3Id; - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.Dynamics.CRM.bcgov_tagSingle _bcgov_Tag3Id; - /// /// There are no comments for spd_LicenceId in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -75265,6 +75303,27 @@ public bcgov_documenturlSingle(global::Microsoft.OData.Client.DataServiceQuerySi [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.Dynamics.CRM.spd_cpicbatchSingle _spd_CPICBatchId; /// + /// There are no comments for spd_OrgRegistrationId in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.spd_orgregistrationSingle spd_OrgRegistrationId + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._spd_OrgRegistrationId == null)) + { + this._spd_OrgRegistrationId = new global::Microsoft.Dynamics.CRM.spd_orgregistrationSingle(this.Context, GetPath("spd_OrgRegistrationId")); + } + return this._spd_OrgRegistrationId; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_orgregistrationSingle _spd_OrgRegistrationId; + /// /// There are no comments for bcgov_Customer_account in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -75433,10 +75492,10 @@ public bcgov_documenturlSingle(global::Microsoft.OData.Client.DataServiceQuerySi [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.Dynamics.CRM.phonecallSingle _bcgov_PhoneCallId; /// - /// There are no comments for bcgov_TaskId in the schema. + /// There are no comments for bcgov_Tag1Id in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.Dynamics.CRM.taskSingle bcgov_TaskId + public virtual global::Microsoft.Dynamics.CRM.bcgov_tagSingle bcgov_Tag1Id { get { @@ -75444,20 +75503,20 @@ public bcgov_documenturlSingle(global::Microsoft.OData.Client.DataServiceQuerySi { throw new global::System.NotSupportedException("The previous function is not composable."); } - if ((this._bcgov_TaskId == null)) + if ((this._bcgov_Tag1Id == null)) { - this._bcgov_TaskId = new global::Microsoft.Dynamics.CRM.taskSingle(this.Context, GetPath("bcgov_TaskId")); + this._bcgov_Tag1Id = new global::Microsoft.Dynamics.CRM.bcgov_tagSingle(this.Context, GetPath("bcgov_Tag1Id")); } - return this._bcgov_TaskId; + return this._bcgov_Tag1Id; } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.Dynamics.CRM.taskSingle _bcgov_TaskId; + private global::Microsoft.Dynamics.CRM.bcgov_tagSingle _bcgov_Tag1Id; /// - /// There are no comments for spd_OrgRegistrationId in the schema. + /// There are no comments for bcgov_Tag2Id in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.Dynamics.CRM.spd_orgregistrationSingle spd_OrgRegistrationId + public virtual global::Microsoft.Dynamics.CRM.bcgov_tagSingle bcgov_Tag2Id { get { @@ -75465,15 +75524,57 @@ public bcgov_documenturlSingle(global::Microsoft.OData.Client.DataServiceQuerySi { throw new global::System.NotSupportedException("The previous function is not composable."); } - if ((this._spd_OrgRegistrationId == null)) + if ((this._bcgov_Tag2Id == null)) { - this._spd_OrgRegistrationId = new global::Microsoft.Dynamics.CRM.spd_orgregistrationSingle(this.Context, GetPath("spd_OrgRegistrationId")); + this._bcgov_Tag2Id = new global::Microsoft.Dynamics.CRM.bcgov_tagSingle(this.Context, GetPath("bcgov_Tag2Id")); } - return this._spd_OrgRegistrationId; + return this._bcgov_Tag2Id; } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.Dynamics.CRM.spd_orgregistrationSingle _spd_OrgRegistrationId; + private global::Microsoft.Dynamics.CRM.bcgov_tagSingle _bcgov_Tag2Id; + /// + /// There are no comments for bcgov_Tag3Id in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.bcgov_tagSingle bcgov_Tag3Id + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._bcgov_Tag3Id == null)) + { + this._bcgov_Tag3Id = new global::Microsoft.Dynamics.CRM.bcgov_tagSingle(this.Context, GetPath("bcgov_Tag3Id")); + } + return this._bcgov_Tag3Id; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.bcgov_tagSingle _bcgov_Tag3Id; + /// + /// There are no comments for bcgov_TaskId in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.taskSingle bcgov_TaskId + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._bcgov_TaskId == null)) + { + this._bcgov_TaskId = new global::Microsoft.Dynamics.CRM.taskSingle(this.Context, GetPath("bcgov_TaskId")); + } + return this._bcgov_TaskId; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.taskSingle _bcgov_TaskId; } /// /// There are no comments for bcgov_documenturl in the schema. @@ -75500,12 +75601,10 @@ public partial class bcgov_documenturl : crmbaseentity /// Initial value of spd_ClearanceId. /// Initial value of spd_PDFReportId. /// Initial value of spd_SubmittedById. - /// Initial value of bcgov_Tag1Id. - /// Initial value of bcgov_Tag2Id. - /// Initial value of bcgov_Tag3Id. /// Initial value of spd_LicenceId. /// Initial value of spd_ComplaintId. /// Initial value of spd_CPICBatchId. + /// Initial value of spd_OrgRegistrationId. /// Initial value of bcgov_Customer_account. /// Initial value of bcgov_AppointmentId. /// Initial value of bcgov_Customer_contact. @@ -75514,8 +75613,10 @@ public partial class bcgov_documenturl : crmbaseentity /// Initial value of bcgov_CaseId. /// Initial value of bcgov_LetterId. /// Initial value of bcgov_PhoneCallId. + /// Initial value of bcgov_Tag1Id. + /// Initial value of bcgov_Tag2Id. + /// Initial value of bcgov_Tag3Id. /// Initial value of bcgov_TaskId. - /// Initial value of spd_OrgRegistrationId. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public static bcgov_documenturl Createbcgov_documenturl(global::Microsoft.Dynamics.CRM.systemuser createdby, global::Microsoft.Dynamics.CRM.systemuser createdonbehalfby, @@ -75529,12 +75630,10 @@ public static bcgov_documenturl Createbcgov_documenturl(global::Microsoft.Dynami global::Microsoft.Dynamics.CRM.spd_clearance spd_ClearanceId, global::Microsoft.Dynamics.CRM.spd_pdfreport spd_PDFReportId, global::Microsoft.Dynamics.CRM.contact spd_SubmittedById, - global::Microsoft.Dynamics.CRM.bcgov_tag bcgov_Tag1Id, - global::Microsoft.Dynamics.CRM.bcgov_tag bcgov_Tag2Id, - global::Microsoft.Dynamics.CRM.bcgov_tag bcgov_Tag3Id, global::Microsoft.Dynamics.CRM.spd_licence spd_LicenceId, global::Microsoft.Dynamics.CRM.spd_complaint spd_ComplaintId, global::Microsoft.Dynamics.CRM.spd_cpicbatch spd_CPICBatchId, + global::Microsoft.Dynamics.CRM.spd_orgregistration spd_OrgRegistrationId, global::Microsoft.Dynamics.CRM.account bcgov_Customer_account, global::Microsoft.Dynamics.CRM.appointment bcgov_AppointmentId, global::Microsoft.Dynamics.CRM.contact bcgov_Customer_contact, @@ -75543,8 +75642,10 @@ public static bcgov_documenturl Createbcgov_documenturl(global::Microsoft.Dynami global::Microsoft.Dynamics.CRM.incident bcgov_CaseId, global::Microsoft.Dynamics.CRM.letter bcgov_LetterId, global::Microsoft.Dynamics.CRM.phonecall bcgov_PhoneCallId, - global::Microsoft.Dynamics.CRM.task bcgov_TaskId, - global::Microsoft.Dynamics.CRM.spd_orgregistration spd_OrgRegistrationId) + global::Microsoft.Dynamics.CRM.bcgov_tag bcgov_Tag1Id, + global::Microsoft.Dynamics.CRM.bcgov_tag bcgov_Tag2Id, + global::Microsoft.Dynamics.CRM.bcgov_tag bcgov_Tag3Id, + global::Microsoft.Dynamics.CRM.task bcgov_TaskId) { bcgov_documenturl bcgov_documenturl = new bcgov_documenturl(); if ((createdby == null)) @@ -75607,21 +75708,6 @@ public static bcgov_documenturl Createbcgov_documenturl(global::Microsoft.Dynami throw new global::System.ArgumentNullException("spd_SubmittedById"); } bcgov_documenturl.spd_SubmittedById = spd_SubmittedById; - if ((bcgov_Tag1Id == null)) - { - throw new global::System.ArgumentNullException("bcgov_Tag1Id"); - } - bcgov_documenturl.bcgov_Tag1Id = bcgov_Tag1Id; - if ((bcgov_Tag2Id == null)) - { - throw new global::System.ArgumentNullException("bcgov_Tag2Id"); - } - bcgov_documenturl.bcgov_Tag2Id = bcgov_Tag2Id; - if ((bcgov_Tag3Id == null)) - { - throw new global::System.ArgumentNullException("bcgov_Tag3Id"); - } - bcgov_documenturl.bcgov_Tag3Id = bcgov_Tag3Id; if ((spd_LicenceId == null)) { throw new global::System.ArgumentNullException("spd_LicenceId"); @@ -75637,6 +75723,11 @@ public static bcgov_documenturl Createbcgov_documenturl(global::Microsoft.Dynami throw new global::System.ArgumentNullException("spd_CPICBatchId"); } bcgov_documenturl.spd_CPICBatchId = spd_CPICBatchId; + if ((spd_OrgRegistrationId == null)) + { + throw new global::System.ArgumentNullException("spd_OrgRegistrationId"); + } + bcgov_documenturl.spd_OrgRegistrationId = spd_OrgRegistrationId; if ((bcgov_Customer_account == null)) { throw new global::System.ArgumentNullException("bcgov_Customer_account"); @@ -75677,16 +75768,26 @@ public static bcgov_documenturl Createbcgov_documenturl(global::Microsoft.Dynami throw new global::System.ArgumentNullException("bcgov_PhoneCallId"); } bcgov_documenturl.bcgov_PhoneCallId = bcgov_PhoneCallId; + if ((bcgov_Tag1Id == null)) + { + throw new global::System.ArgumentNullException("bcgov_Tag1Id"); + } + bcgov_documenturl.bcgov_Tag1Id = bcgov_Tag1Id; + if ((bcgov_Tag2Id == null)) + { + throw new global::System.ArgumentNullException("bcgov_Tag2Id"); + } + bcgov_documenturl.bcgov_Tag2Id = bcgov_Tag2Id; + if ((bcgov_Tag3Id == null)) + { + throw new global::System.ArgumentNullException("bcgov_Tag3Id"); + } + bcgov_documenturl.bcgov_Tag3Id = bcgov_Tag3Id; if ((bcgov_TaskId == null)) { throw new global::System.ArgumentNullException("bcgov_TaskId"); } bcgov_documenturl.bcgov_TaskId = bcgov_TaskId; - if ((spd_OrgRegistrationId == null)) - { - throw new global::System.ArgumentNullException("spd_OrgRegistrationId"); - } - bcgov_documenturl.spd_OrgRegistrationId = spd_OrgRegistrationId; return bcgov_documenturl; } /// @@ -76394,28 +76495,6 @@ public virtual string bcgov_filesize partial void On_spd_complaintid_valueChanging(global::System.Nullable value); partial void On_spd_complaintid_valueChanged(); /// - /// There are no comments for Property _owninguser_value in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable _owninguser_value - { - get - { - return this.__owninguser_value; - } - set - { - this.On_owninguser_valueChanging(value); - this.__owninguser_value = value; - this.On_owninguser_valueChanged(); - this.OnPropertyChanged("_owninguser_value"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable __owninguser_value; - partial void On_owninguser_valueChanging(global::System.Nullable value); - partial void On_owninguser_valueChanged(); - /// /// There are no comments for Property _bcgov_faxid_value in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -76504,6 +76583,28 @@ public virtual string bcgov_fileextension partial void On_bcgov_appointmentid_valueChanging(global::System.Nullable value); partial void On_bcgov_appointmentid_valueChanged(); /// + /// There are no comments for Property _owninguser_value in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable _owninguser_value + { + get + { + return this.__owninguser_value; + } + set + { + this.On_owninguser_valueChanging(value); + this.__owninguser_value = value; + this.On_owninguser_valueChanged(); + this.OnPropertyChanged("_owninguser_value"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable __owninguser_value; + partial void On_owninguser_valueChanging(global::System.Nullable value); + partial void On_owninguser_valueChanged(); + /// /// There are no comments for Property _spd_clearanceid_value in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -77132,75 +77233,6 @@ public virtual string spd_documentid partial void Onspd_SubmittedByIdChanging(global::Microsoft.Dynamics.CRM.contact value); partial void Onspd_SubmittedByIdChanged(); /// - /// There are no comments for Property bcgov_Tag1Id in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "bcgov_Tag1Id is required.")] - public virtual global::Microsoft.Dynamics.CRM.bcgov_tag bcgov_Tag1Id - { - get - { - return this._bcgov_Tag1Id; - } - set - { - this.Onbcgov_Tag1IdChanging(value); - this._bcgov_Tag1Id = value; - this.Onbcgov_Tag1IdChanged(); - this.OnPropertyChanged("bcgov_Tag1Id"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.Dynamics.CRM.bcgov_tag _bcgov_Tag1Id; - partial void Onbcgov_Tag1IdChanging(global::Microsoft.Dynamics.CRM.bcgov_tag value); - partial void Onbcgov_Tag1IdChanged(); - /// - /// There are no comments for Property bcgov_Tag2Id in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "bcgov_Tag2Id is required.")] - public virtual global::Microsoft.Dynamics.CRM.bcgov_tag bcgov_Tag2Id - { - get - { - return this._bcgov_Tag2Id; - } - set - { - this.Onbcgov_Tag2IdChanging(value); - this._bcgov_Tag2Id = value; - this.Onbcgov_Tag2IdChanged(); - this.OnPropertyChanged("bcgov_Tag2Id"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.Dynamics.CRM.bcgov_tag _bcgov_Tag2Id; - partial void Onbcgov_Tag2IdChanging(global::Microsoft.Dynamics.CRM.bcgov_tag value); - partial void Onbcgov_Tag2IdChanged(); - /// - /// There are no comments for Property bcgov_Tag3Id in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "bcgov_Tag3Id is required.")] - public virtual global::Microsoft.Dynamics.CRM.bcgov_tag bcgov_Tag3Id - { - get - { - return this._bcgov_Tag3Id; - } - set - { - this.Onbcgov_Tag3IdChanging(value); - this._bcgov_Tag3Id = value; - this.Onbcgov_Tag3IdChanged(); - this.OnPropertyChanged("bcgov_Tag3Id"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.Dynamics.CRM.bcgov_tag _bcgov_Tag3Id; - partial void Onbcgov_Tag3IdChanging(global::Microsoft.Dynamics.CRM.bcgov_tag value); - partial void Onbcgov_Tag3IdChanged(); - /// /// There are no comments for Property spd_LicenceId in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -77292,6 +77324,29 @@ public virtual string spd_documentid partial void Onspd_CPICBatchIdChanging(global::Microsoft.Dynamics.CRM.spd_cpicbatch value); partial void Onspd_CPICBatchIdChanged(); /// + /// There are no comments for Property spd_OrgRegistrationId in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "spd_OrgRegistrationId is required.")] + public virtual global::Microsoft.Dynamics.CRM.spd_orgregistration spd_OrgRegistrationId + { + get + { + return this._spd_OrgRegistrationId; + } + set + { + this.Onspd_OrgRegistrationIdChanging(value); + this._spd_OrgRegistrationId = value; + this.Onspd_OrgRegistrationIdChanged(); + this.OnPropertyChanged("spd_OrgRegistrationId"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_orgregistration _spd_OrgRegistrationId; + partial void Onspd_OrgRegistrationIdChanging(global::Microsoft.Dynamics.CRM.spd_orgregistration value); + partial void Onspd_OrgRegistrationIdChanged(); + /// /// There are no comments for Property bcgov_Customer_account in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -77476,51 +77531,97 @@ public virtual string spd_documentid partial void Onbcgov_PhoneCallIdChanging(global::Microsoft.Dynamics.CRM.phonecall value); partial void Onbcgov_PhoneCallIdChanged(); /// - /// There are no comments for Property bcgov_TaskId in the schema. + /// There are no comments for Property bcgov_Tag1Id in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "bcgov_TaskId is required.")] - public virtual global::Microsoft.Dynamics.CRM.task bcgov_TaskId + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "bcgov_Tag1Id is required.")] + public virtual global::Microsoft.Dynamics.CRM.bcgov_tag bcgov_Tag1Id { get { - return this._bcgov_TaskId; + return this._bcgov_Tag1Id; } set { - this.Onbcgov_TaskIdChanging(value); - this._bcgov_TaskId = value; - this.Onbcgov_TaskIdChanged(); - this.OnPropertyChanged("bcgov_TaskId"); + this.Onbcgov_Tag1IdChanging(value); + this._bcgov_Tag1Id = value; + this.Onbcgov_Tag1IdChanged(); + this.OnPropertyChanged("bcgov_Tag1Id"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.Dynamics.CRM.task _bcgov_TaskId; - partial void Onbcgov_TaskIdChanging(global::Microsoft.Dynamics.CRM.task value); - partial void Onbcgov_TaskIdChanged(); + private global::Microsoft.Dynamics.CRM.bcgov_tag _bcgov_Tag1Id; + partial void Onbcgov_Tag1IdChanging(global::Microsoft.Dynamics.CRM.bcgov_tag value); + partial void Onbcgov_Tag1IdChanged(); /// - /// There are no comments for Property spd_OrgRegistrationId in the schema. + /// There are no comments for Property bcgov_Tag2Id in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "spd_OrgRegistrationId is required.")] - public virtual global::Microsoft.Dynamics.CRM.spd_orgregistration spd_OrgRegistrationId + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "bcgov_Tag2Id is required.")] + public virtual global::Microsoft.Dynamics.CRM.bcgov_tag bcgov_Tag2Id { get { - return this._spd_OrgRegistrationId; + return this._bcgov_Tag2Id; } set { - this.Onspd_OrgRegistrationIdChanging(value); - this._spd_OrgRegistrationId = value; - this.Onspd_OrgRegistrationIdChanged(); - this.OnPropertyChanged("spd_OrgRegistrationId"); + this.Onbcgov_Tag2IdChanging(value); + this._bcgov_Tag2Id = value; + this.Onbcgov_Tag2IdChanged(); + this.OnPropertyChanged("bcgov_Tag2Id"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.Dynamics.CRM.spd_orgregistration _spd_OrgRegistrationId; - partial void Onspd_OrgRegistrationIdChanging(global::Microsoft.Dynamics.CRM.spd_orgregistration value); - partial void Onspd_OrgRegistrationIdChanged(); + private global::Microsoft.Dynamics.CRM.bcgov_tag _bcgov_Tag2Id; + partial void Onbcgov_Tag2IdChanging(global::Microsoft.Dynamics.CRM.bcgov_tag value); + partial void Onbcgov_Tag2IdChanged(); + /// + /// There are no comments for Property bcgov_Tag3Id in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "bcgov_Tag3Id is required.")] + public virtual global::Microsoft.Dynamics.CRM.bcgov_tag bcgov_Tag3Id + { + get + { + return this._bcgov_Tag3Id; + } + set + { + this.Onbcgov_Tag3IdChanging(value); + this._bcgov_Tag3Id = value; + this.Onbcgov_Tag3IdChanged(); + this.OnPropertyChanged("bcgov_Tag3Id"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.bcgov_tag _bcgov_Tag3Id; + partial void Onbcgov_Tag3IdChanging(global::Microsoft.Dynamics.CRM.bcgov_tag value); + partial void Onbcgov_Tag3IdChanged(); + /// + /// There are no comments for Property bcgov_TaskId in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "bcgov_TaskId is required.")] + public virtual global::Microsoft.Dynamics.CRM.task bcgov_TaskId + { + get + { + return this._bcgov_TaskId; + } + set + { + this.Onbcgov_TaskIdChanging(value); + this._bcgov_TaskId = value; + this.Onbcgov_TaskIdChanged(); + this.OnPropertyChanged("bcgov_TaskId"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.task _bcgov_TaskId; + partial void Onbcgov_TaskIdChanging(global::Microsoft.Dynamics.CRM.task value); + partial void Onbcgov_TaskIdChanged(); /// /// There are no comments for bcgov_CloneDocumentInSharePoint in the schema. /// @@ -111905,6 +112006,27 @@ public bulkdeletefailureSingle(global::Microsoft.OData.Client.DataServiceQuerySi } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.Dynamics.CRM.spd_ranoteSingle _regardingobjectid_spd_ranote; + /// + /// There are no comments for regardingobjectid_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle regardingobjectid_spd_servicetypegroup + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._regardingobjectid_spd_servicetypegroup == null)) + { + this._regardingobjectid_spd_servicetypegroup = new global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle(this.Context, GetPath("regardingobjectid_spd_servicetypegroup")); + } + return this._regardingobjectid_spd_servicetypegroup; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle _regardingobjectid_spd_servicetypegroup; } /// /// There are no comments for bulkdeletefailure in the schema. @@ -112222,6 +112344,7 @@ public partial class bulkdeletefailure : crmbaseentity /// Initial value of regardingobjectid_spd_dogtrainingschool. /// Initial value of regardingobjectid_spd_guidedogsservicedogs. /// Initial value of regardingobjectid_spd_ranote. + /// Initial value of regardingobjectid_spd_servicetypegroup. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public static bulkdeletefailure Createbulkdeletefailure(global::Microsoft.Dynamics.CRM.theme regardingobjectid_theme, global::Microsoft.Dynamics.CRM.usermapping regardingobjectid_usermapping, @@ -112525,7 +112648,8 @@ public static bulkdeletefailure Createbulkdeletefailure(global::Microsoft.Dynami global::Microsoft.Dynamics.CRM.spd_dogteam regardingobjectid_spd_dogteam, global::Microsoft.Dynamics.CRM.spd_dogtrainingschool regardingobjectid_spd_dogtrainingschool, global::Microsoft.Dynamics.CRM.spd_guidedogsservicedogs regardingobjectid_spd_guidedogsservicedogs, - global::Microsoft.Dynamics.CRM.spd_ranote regardingobjectid_spd_ranote) + global::Microsoft.Dynamics.CRM.spd_ranote regardingobjectid_spd_ranote, + global::Microsoft.Dynamics.CRM.spd_servicetypegroup regardingobjectid_spd_servicetypegroup) { bulkdeletefailure bulkdeletefailure = new bulkdeletefailure(); if ((regardingobjectid_theme == null)) @@ -114043,6 +114167,11 @@ public static bulkdeletefailure Createbulkdeletefailure(global::Microsoft.Dynami throw new global::System.ArgumentNullException("regardingobjectid_spd_ranote"); } bulkdeletefailure.regardingobjectid_spd_ranote = regardingobjectid_spd_ranote; + if ((regardingobjectid_spd_servicetypegroup == null)) + { + throw new global::System.ArgumentNullException("regardingobjectid_spd_servicetypegroup"); + } + bulkdeletefailure.regardingobjectid_spd_servicetypegroup = regardingobjectid_spd_servicetypegroup; return bulkdeletefailure; } /// @@ -121234,6 +121363,29 @@ public virtual string errordescription private global::Microsoft.Dynamics.CRM.spd_ranote _regardingobjectid_spd_ranote; partial void Onregardingobjectid_spd_ranoteChanging(global::Microsoft.Dynamics.CRM.spd_ranote value); partial void Onregardingobjectid_spd_ranoteChanged(); + /// + /// There are no comments for Property regardingobjectid_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "regardingobjectid_spd_servicetypegroup is required.")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroup regardingobjectid_spd_servicetypegroup + { + get + { + return this._regardingobjectid_spd_servicetypegroup; + } + set + { + this.Onregardingobjectid_spd_servicetypegroupChanging(value); + this._regardingobjectid_spd_servicetypegroup = value; + this.Onregardingobjectid_spd_servicetypegroupChanged(); + this.OnPropertyChanged("regardingobjectid_spd_servicetypegroup"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroup _regardingobjectid_spd_servicetypegroup; + partial void Onregardingobjectid_spd_servicetypegroupChanging(global::Microsoft.Dynamics.CRM.spd_servicetypegroup value); + partial void Onregardingobjectid_spd_servicetypegroupChanged(); } /// /// There are no comments for bulkdeleteoperationSingle in the schema. @@ -186990,27 +187142,6 @@ public contactSingle(global::Microsoft.OData.Client.DataServiceQuerySingle _msdyn_playbookinstance_contact; /// - /// There are no comments for bcgov_contact_bcgov_templatesession in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceQuery bcgov_contact_bcgov_templatesession - { - get - { - if (!this.IsComposable) - { - throw new global::System.NotSupportedException("The previous function is not composable."); - } - if ((this._bcgov_contact_bcgov_templatesession == null)) - { - this._bcgov_contact_bcgov_templatesession = Context.CreateQuery(GetPath("bcgov_contact_bcgov_templatesession")); - } - return this._bcgov_contact_bcgov_templatesession; - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceQuery _bcgov_contact_bcgov_templatesession; - /// /// There are no comments for spd_contact_spd_complaint_offenderid in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -187137,27 +187268,6 @@ public contactSingle(global::Microsoft.OData.Client.DataServiceQuerySingle _spd_contact_spd_fine_Party; /// - /// There are no comments for bcgov_contact_bcgov_documenturl in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceQuery bcgov_contact_bcgov_documenturl - { - get - { - if (!this.IsComposable) - { - throw new global::System.NotSupportedException("The previous function is not composable."); - } - if ((this._bcgov_contact_bcgov_documenturl == null)) - { - this._bcgov_contact_bcgov_documenturl = Context.CreateQuery(GetPath("bcgov_contact_bcgov_documenturl")); - } - return this._bcgov_contact_bcgov_documenturl; - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceQuery _bcgov_contact_bcgov_documenturl; - /// /// There are no comments for spd_contact_spd_dogteam_ContactId in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -187220,6 +187330,48 @@ public contactSingle(global::Microsoft.OData.Client.DataServiceQuerySingle _spd_contact_spd_ranote_Applicant; + /// + /// There are no comments for bcgov_contact_bcgov_documenturl in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery bcgov_contact_bcgov_documenturl + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._bcgov_contact_bcgov_documenturl == null)) + { + this._bcgov_contact_bcgov_documenturl = Context.CreateQuery(GetPath("bcgov_contact_bcgov_documenturl")); + } + return this._bcgov_contact_bcgov_documenturl; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _bcgov_contact_bcgov_documenturl; + /// + /// There are no comments for bcgov_contact_bcgov_templatesession in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery bcgov_contact_bcgov_templatesession + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._bcgov_contact_bcgov_templatesession == null)) + { + this._bcgov_contact_bcgov_templatesession = Context.CreateQuery(GetPath("bcgov_contact_bcgov_templatesession")); + } + return this._bcgov_contact_bcgov_templatesession; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _bcgov_contact_bcgov_templatesession; } /// /// There are no comments for contact in the schema. @@ -194528,28 +194680,6 @@ public virtual string spd_weight partial void Onmsdyn_playbookinstance_contactChanging(global::Microsoft.OData.Client.DataServiceCollection value); partial void Onmsdyn_playbookinstance_contactChanged(); /// - /// There are no comments for Property bcgov_contact_bcgov_templatesession in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceCollection bcgov_contact_bcgov_templatesession - { - get - { - return this._bcgov_contact_bcgov_templatesession; - } - set - { - this.Onbcgov_contact_bcgov_templatesessionChanging(value); - this._bcgov_contact_bcgov_templatesession = value; - this.Onbcgov_contact_bcgov_templatesessionChanged(); - this.OnPropertyChanged("bcgov_contact_bcgov_templatesession"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceCollection _bcgov_contact_bcgov_templatesession = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); - partial void Onbcgov_contact_bcgov_templatesessionChanging(global::Microsoft.OData.Client.DataServiceCollection value); - partial void Onbcgov_contact_bcgov_templatesessionChanged(); - /// /// There are no comments for Property spd_contact_spd_complaint_offenderid in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -194682,28 +194812,6 @@ public virtual string spd_weight partial void Onspd_contact_spd_fine_PartyChanging(global::Microsoft.OData.Client.DataServiceCollection value); partial void Onspd_contact_spd_fine_PartyChanged(); /// - /// There are no comments for Property bcgov_contact_bcgov_documenturl in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceCollection bcgov_contact_bcgov_documenturl - { - get - { - return this._bcgov_contact_bcgov_documenturl; - } - set - { - this.Onbcgov_contact_bcgov_documenturlChanging(value); - this._bcgov_contact_bcgov_documenturl = value; - this.Onbcgov_contact_bcgov_documenturlChanged(); - this.OnPropertyChanged("bcgov_contact_bcgov_documenturl"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceCollection _bcgov_contact_bcgov_documenturl = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); - partial void Onbcgov_contact_bcgov_documenturlChanging(global::Microsoft.OData.Client.DataServiceCollection value); - partial void Onbcgov_contact_bcgov_documenturlChanged(); - /// /// There are no comments for Property spd_contact_spd_dogteam_ContactId in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -194770,6 +194878,50 @@ public virtual string spd_weight partial void Onspd_contact_spd_ranote_ApplicantChanging(global::Microsoft.OData.Client.DataServiceCollection value); partial void Onspd_contact_spd_ranote_ApplicantChanged(); /// + /// There are no comments for Property bcgov_contact_bcgov_documenturl in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection bcgov_contact_bcgov_documenturl + { + get + { + return this._bcgov_contact_bcgov_documenturl; + } + set + { + this.Onbcgov_contact_bcgov_documenturlChanging(value); + this._bcgov_contact_bcgov_documenturl = value; + this.Onbcgov_contact_bcgov_documenturlChanged(); + this.OnPropertyChanged("bcgov_contact_bcgov_documenturl"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _bcgov_contact_bcgov_documenturl = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onbcgov_contact_bcgov_documenturlChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onbcgov_contact_bcgov_documenturlChanged(); + /// + /// There are no comments for Property bcgov_contact_bcgov_templatesession in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection bcgov_contact_bcgov_templatesession + { + get + { + return this._bcgov_contact_bcgov_templatesession; + } + set + { + this.Onbcgov_contact_bcgov_templatesessionChanging(value); + this._bcgov_contact_bcgov_templatesession = value; + this.Onbcgov_contact_bcgov_templatesessionChanged(); + this.OnPropertyChanged("bcgov_contact_bcgov_templatesession"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _bcgov_contact_bcgov_templatesession = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onbcgov_contact_bcgov_templatesessionChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onbcgov_contact_bcgov_templatesessionChanged(); + /// /// There are no comments for msdyn_GDPROptoutContact in the schema. /// public virtual global::Microsoft.OData.Client.DataServiceActionQuery msdyn_GDPROptoutContact(bool optout) @@ -305810,27 +305962,6 @@ public incidentSingle(global::Microsoft.OData.Client.DataServiceQuerySingle _Incident_IncidentResolutions; /// - /// There are no comments for bcgov_incident_bcgov_templatesession in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceQuery bcgov_incident_bcgov_templatesession - { - get - { - if (!this.IsComposable) - { - throw new global::System.NotSupportedException("The previous function is not composable."); - } - if ((this._bcgov_incident_bcgov_templatesession == null)) - { - this._bcgov_incident_bcgov_templatesession = Context.CreateQuery(GetPath("bcgov_incident_bcgov_templatesession")); - } - return this._bcgov_incident_bcgov_templatesession; - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceQuery _bcgov_incident_bcgov_templatesession; - /// /// There are no comments for spd_incident_spd_licencecondition in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -306188,27 +306319,6 @@ public incidentSingle(global::Microsoft.OData.Client.DataServiceQuerySingle _incident_spd_generaladministrativetasks; /// - /// There are no comments for bcgov_incident_bcgov_documenturl in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceQuery bcgov_incident_bcgov_documenturl - { - get - { - if (!this.IsComposable) - { - throw new global::System.NotSupportedException("The previous function is not composable."); - } - if ((this._bcgov_incident_bcgov_documenturl == null)) - { - this._bcgov_incident_bcgov_documenturl = Context.CreateQuery(GetPath("bcgov_incident_bcgov_documenturl")); - } - return this._bcgov_incident_bcgov_documenturl; - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceQuery _bcgov_incident_bcgov_documenturl; - /// /// There are no comments for spd_DogId in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -306271,6 +306381,48 @@ public incidentSingle(global::Microsoft.OData.Client.DataServiceQuerySingle _spd_incident_spd_ranote; + /// + /// There are no comments for bcgov_incident_bcgov_documenturl in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery bcgov_incident_bcgov_documenturl + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._bcgov_incident_bcgov_documenturl == null)) + { + this._bcgov_incident_bcgov_documenturl = Context.CreateQuery(GetPath("bcgov_incident_bcgov_documenturl")); + } + return this._bcgov_incident_bcgov_documenturl; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _bcgov_incident_bcgov_documenturl; + /// + /// There are no comments for bcgov_incident_bcgov_templatesession in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery bcgov_incident_bcgov_templatesession + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._bcgov_incident_bcgov_templatesession == null)) + { + this._bcgov_incident_bcgov_templatesession = Context.CreateQuery(GetPath("bcgov_incident_bcgov_templatesession")); + } + return this._bcgov_incident_bcgov_templatesession; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _bcgov_incident_bcgov_templatesession; } /// /// There are no comments for incident in the schema. @@ -312287,28 +312439,6 @@ public virtual string spd_licensingfigaroid partial void OnIncident_IncidentResolutionsChanging(global::Microsoft.OData.Client.DataServiceCollection value); partial void OnIncident_IncidentResolutionsChanged(); /// - /// There are no comments for Property bcgov_incident_bcgov_templatesession in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceCollection bcgov_incident_bcgov_templatesession - { - get - { - return this._bcgov_incident_bcgov_templatesession; - } - set - { - this.Onbcgov_incident_bcgov_templatesessionChanging(value); - this._bcgov_incident_bcgov_templatesession = value; - this.Onbcgov_incident_bcgov_templatesessionChanged(); - this.OnPropertyChanged("bcgov_incident_bcgov_templatesession"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceCollection _bcgov_incident_bcgov_templatesession = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); - partial void Onbcgov_incident_bcgov_templatesessionChanging(global::Microsoft.OData.Client.DataServiceCollection value); - partial void Onbcgov_incident_bcgov_templatesessionChanged(); - /// /// There are no comments for Property spd_incident_spd_licencecondition in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -312688,28 +312818,6 @@ public virtual string spd_licensingfigaroid partial void Onincident_spd_generaladministrativetasksChanging(global::Microsoft.OData.Client.DataServiceCollection value); partial void Onincident_spd_generaladministrativetasksChanged(); /// - /// There are no comments for Property bcgov_incident_bcgov_documenturl in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceCollection bcgov_incident_bcgov_documenturl - { - get - { - return this._bcgov_incident_bcgov_documenturl; - } - set - { - this.Onbcgov_incident_bcgov_documenturlChanging(value); - this._bcgov_incident_bcgov_documenturl = value; - this.Onbcgov_incident_bcgov_documenturlChanged(); - this.OnPropertyChanged("bcgov_incident_bcgov_documenturl"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceCollection _bcgov_incident_bcgov_documenturl = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); - partial void Onbcgov_incident_bcgov_documenturlChanging(global::Microsoft.OData.Client.DataServiceCollection value); - partial void Onbcgov_incident_bcgov_documenturlChanged(); - /// /// There are no comments for Property spd_DogId in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -312777,6 +312885,50 @@ public virtual string spd_licensingfigaroid partial void Onspd_incident_spd_ranoteChanging(global::Microsoft.OData.Client.DataServiceCollection value); partial void Onspd_incident_spd_ranoteChanged(); /// + /// There are no comments for Property bcgov_incident_bcgov_documenturl in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection bcgov_incident_bcgov_documenturl + { + get + { + return this._bcgov_incident_bcgov_documenturl; + } + set + { + this.Onbcgov_incident_bcgov_documenturlChanging(value); + this._bcgov_incident_bcgov_documenturl = value; + this.Onbcgov_incident_bcgov_documenturlChanged(); + this.OnPropertyChanged("bcgov_incident_bcgov_documenturl"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _bcgov_incident_bcgov_documenturl = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onbcgov_incident_bcgov_documenturlChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onbcgov_incident_bcgov_documenturlChanged(); + /// + /// There are no comments for Property bcgov_incident_bcgov_templatesession in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection bcgov_incident_bcgov_templatesession + { + get + { + return this._bcgov_incident_bcgov_templatesession; + } + set + { + this.Onbcgov_incident_bcgov_templatesessionChanging(value); + this._bcgov_incident_bcgov_templatesession = value; + this.Onbcgov_incident_bcgov_templatesessionChanged(); + this.OnPropertyChanged("bcgov_incident_bcgov_templatesession"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _bcgov_incident_bcgov_templatesession = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onbcgov_incident_bcgov_templatesessionChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onbcgov_incident_bcgov_templatesessionChanged(); + /// /// There are no comments for CalculateTotalTimeIncident in the schema. /// public virtual global::Microsoft.OData.Client.DataServiceQuerySingle CalculateTotalTimeIncident() @@ -312930,6 +313082,19 @@ public virtual string spd_licensingfigaroid return new global::Microsoft.OData.Client.DataServiceActionQuerySingle(this.Context, resource.EditLink.OriginalString.Trim('/') + "/Microsoft.Dynamics.CRM.spd_IsCaseAuthenticated"); } /// + /// There are no comments for spd_MoveNextStage in the schema. + /// + public virtual global::Microsoft.OData.Client.DataServiceActionQuerySingle spd_MoveNextStage() + { + global::Microsoft.OData.Client.EntityDescriptor resource = Context.EntityTracker.TryGetEntityDescriptor(this); + if (resource == null) + { + throw new global::System.Exception("cannot find entity"); + } + + return new global::Microsoft.OData.Client.DataServiceActionQuerySingle(this.Context, resource.EditLink.OriginalString.Trim('/') + "/Microsoft.Dynamics.CRM.spd_MoveNextStage"); + } + /// /// There are no comments for spd_Reactivate in the schema. /// public virtual global::Microsoft.OData.Client.DataServiceActionQuerySingle spd_Reactivate() @@ -363405,6 +363570,27 @@ public mailboxtrackingfolderSingle(global::Microsoft.OData.Client.DataServiceQue } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.Dynamics.CRM.spd_ranoteSingle _regardingobjectid_spd_ranote; + /// + /// There are no comments for regardingobjectid_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle regardingobjectid_spd_servicetypegroup + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._regardingobjectid_spd_servicetypegroup == null)) + { + this._regardingobjectid_spd_servicetypegroup = new global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle(this.Context, GetPath("regardingobjectid_spd_servicetypegroup")); + } + return this._regardingobjectid_spd_servicetypegroup; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle _regardingobjectid_spd_servicetypegroup; } /// /// There are no comments for mailboxtrackingfolder in the schema. @@ -363682,6 +363868,7 @@ public partial class mailboxtrackingfolder : crmbaseentity /// Initial value of regardingobjectid_spd_dogtrainingschool. /// Initial value of regardingobjectid_spd_guidedogsservicedogs. /// Initial value of regardingobjectid_spd_ranote. + /// Initial value of regardingobjectid_spd_servicetypegroup. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public static mailboxtrackingfolder Createmailboxtrackingfolder(global::Microsoft.Dynamics.CRM.systemuser modifiedonbehalfby, global::Microsoft.Dynamics.CRM.principal ownerid, @@ -363945,7 +364132,8 @@ public static mailboxtrackingfolder Createmailboxtrackingfolder(global::Microsof global::Microsoft.Dynamics.CRM.spd_dogteam regardingobjectid_spd_dogteam, global::Microsoft.Dynamics.CRM.spd_dogtrainingschool regardingobjectid_spd_dogtrainingschool, global::Microsoft.Dynamics.CRM.spd_guidedogsservicedogs regardingobjectid_spd_guidedogsservicedogs, - global::Microsoft.Dynamics.CRM.spd_ranote regardingobjectid_spd_ranote) + global::Microsoft.Dynamics.CRM.spd_ranote regardingobjectid_spd_ranote, + global::Microsoft.Dynamics.CRM.spd_servicetypegroup regardingobjectid_spd_servicetypegroup) { mailboxtrackingfolder mailboxtrackingfolder = new mailboxtrackingfolder(); if ((modifiedonbehalfby == null)) @@ -365263,6 +365451,11 @@ public static mailboxtrackingfolder Createmailboxtrackingfolder(global::Microsof throw new global::System.ArgumentNullException("regardingobjectid_spd_ranote"); } mailboxtrackingfolder.regardingobjectid_spd_ranote = regardingobjectid_spd_ranote; + if ((regardingobjectid_spd_servicetypegroup == null)) + { + throw new global::System.ArgumentNullException("regardingobjectid_spd_servicetypegroup"); + } + mailboxtrackingfolder.regardingobjectid_spd_servicetypegroup = regardingobjectid_spd_servicetypegroup; return mailboxtrackingfolder; } /// @@ -371710,6 +371903,29 @@ public virtual string exchangefoldername private global::Microsoft.Dynamics.CRM.spd_ranote _regardingobjectid_spd_ranote; partial void Onregardingobjectid_spd_ranoteChanging(global::Microsoft.Dynamics.CRM.spd_ranote value); partial void Onregardingobjectid_spd_ranoteChanged(); + /// + /// There are no comments for Property regardingobjectid_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "regardingobjectid_spd_servicetypegroup is required.")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroup regardingobjectid_spd_servicetypegroup + { + get + { + return this._regardingobjectid_spd_servicetypegroup; + } + set + { + this.Onregardingobjectid_spd_servicetypegroupChanging(value); + this._regardingobjectid_spd_servicetypegroup = value; + this.Onregardingobjectid_spd_servicetypegroupChanged(); + this.OnPropertyChanged("regardingobjectid_spd_servicetypegroup"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroup _regardingobjectid_spd_servicetypegroup; + partial void Onregardingobjectid_spd_servicetypegroupChanging(global::Microsoft.Dynamics.CRM.spd_servicetypegroup value); + partial void Onregardingobjectid_spd_servicetypegroupChanged(); } /// /// There are no comments for mailmergetemplateSingle in the schema. @@ -485383,6 +485599,27 @@ public organizationSingle(global::Microsoft.OData.Client.DataServiceQuerySingle< } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.OData.Client.DataServiceQuery _organization_spd_guidedogsservicedogs; + /// + /// There are no comments for organization_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery organization_spd_servicetypegroup + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._organization_spd_servicetypegroup == null)) + { + this._organization_spd_servicetypegroup = Context.CreateQuery(GetPath("organization_spd_servicetypegroup")); + } + return this._organization_spd_servicetypegroup; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _organization_spd_servicetypegroup; } /// /// There are no comments for organization in the schema. @@ -496497,6 +496734,28 @@ public virtual string dateformatstring partial void Onorganization_spd_guidedogsservicedogsChanging(global::Microsoft.OData.Client.DataServiceCollection value); partial void Onorganization_spd_guidedogsservicedogsChanged(); /// + /// There are no comments for Property organization_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection organization_spd_servicetypegroup + { + get + { + return this._organization_spd_servicetypegroup; + } + set + { + this.Onorganization_spd_servicetypegroupChanging(value); + this._organization_spd_servicetypegroup = value; + this.Onorganization_spd_servicetypegroupChanged(); + this.OnPropertyChanged("organization_spd_servicetypegroup"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _organization_spd_servicetypegroup = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onorganization_spd_servicetypegroupChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onorganization_spd_servicetypegroupChanged(); + /// /// There are no comments for RetrievePrincipalAccess in the schema. /// public virtual global::Microsoft.OData.Client.DataServiceQuerySingle RetrievePrincipalAccess(global::Microsoft.Dynamics.CRM.crmbaseentity Target, bool useEntityReference = false) @@ -531663,6 +531922,27 @@ public principalobjectattributeaccessSingle(global::Microsoft.OData.Client.DataS } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.Dynamics.CRM.spd_ranoteSingle _objectid_spd_ranote; + /// + /// There are no comments for objectid_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle objectid_spd_servicetypegroup + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._objectid_spd_servicetypegroup == null)) + { + this._objectid_spd_servicetypegroup = new global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle(this.Context, GetPath("objectid_spd_servicetypegroup")); + } + return this._objectid_spd_servicetypegroup; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle _objectid_spd_servicetypegroup; } /// /// There are no comments for principalobjectattributeaccess in the schema. @@ -531960,6 +532240,7 @@ public partial class principalobjectattributeaccess : crmbaseentity /// Initial value of objectid_spd_dogtrainingschool. /// Initial value of objectid_spd_guidedogsservicedogs. /// Initial value of objectid_spd_ranote. + /// Initial value of objectid_spd_servicetypegroup. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public static principalobjectattributeaccess Createprincipalobjectattributeaccess(global::Microsoft.Dynamics.CRM.contact objectid_contact, global::Microsoft.Dynamics.CRM.account objectid_account, @@ -532243,7 +532524,8 @@ public static principalobjectattributeaccess Createprincipalobjectattributeacces global::Microsoft.Dynamics.CRM.spd_dogteam objectid_spd_dogteam, global::Microsoft.Dynamics.CRM.spd_dogtrainingschool objectid_spd_dogtrainingschool, global::Microsoft.Dynamics.CRM.spd_guidedogsservicedogs objectid_spd_guidedogsservicedogs, - global::Microsoft.Dynamics.CRM.spd_ranote objectid_spd_ranote) + global::Microsoft.Dynamics.CRM.spd_ranote objectid_spd_ranote, + global::Microsoft.Dynamics.CRM.spd_servicetypegroup objectid_spd_servicetypegroup) { principalobjectattributeaccess principalobjectattributeaccess = new principalobjectattributeaccess(); if ((objectid_contact == null)) @@ -533661,6 +533943,11 @@ public static principalobjectattributeaccess Createprincipalobjectattributeacces throw new global::System.ArgumentNullException("objectid_spd_ranote"); } principalobjectattributeaccess.objectid_spd_ranote = objectid_spd_ranote; + if ((objectid_spd_servicetypegroup == null)) + { + throw new global::System.ArgumentNullException("objectid_spd_servicetypegroup"); + } + principalobjectattributeaccess.objectid_spd_servicetypegroup = objectid_spd_servicetypegroup; return principalobjectattributeaccess; } /// @@ -540348,6 +540635,29 @@ public static principalobjectattributeaccess Createprincipalobjectattributeacces private global::Microsoft.Dynamics.CRM.spd_ranote _objectid_spd_ranote; partial void Onobjectid_spd_ranoteChanging(global::Microsoft.Dynamics.CRM.spd_ranote value); partial void Onobjectid_spd_ranoteChanged(); + /// + /// There are no comments for Property objectid_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "objectid_spd_servicetypegroup is required.")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroup objectid_spd_servicetypegroup + { + get + { + return this._objectid_spd_servicetypegroup; + } + set + { + this.Onobjectid_spd_servicetypegroupChanging(value); + this._objectid_spd_servicetypegroup = value; + this.Onobjectid_spd_servicetypegroupChanged(); + this.OnPropertyChanged("objectid_spd_servicetypegroup"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroup _objectid_spd_servicetypegroup; + partial void Onobjectid_spd_servicetypegroupChanging(global::Microsoft.Dynamics.CRM.spd_servicetypegroup value); + partial void Onobjectid_spd_servicetypegroupChanged(); } /// /// There are no comments for privilegeSingle in the schema. @@ -546849,6 +547159,27 @@ public processsessionSingle(global::Microsoft.OData.Client.DataServiceQuerySingl } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.Dynamics.CRM.spd_ranoteSingle _regardingobjectid_spd_ranote; + /// + /// There are no comments for regardingobjectid_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle regardingobjectid_spd_servicetypegroup + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._regardingobjectid_spd_servicetypegroup == null)) + { + this._regardingobjectid_spd_servicetypegroup = new global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle(this.Context, GetPath("regardingobjectid_spd_servicetypegroup")); + } + return this._regardingobjectid_spd_servicetypegroup; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle _regardingobjectid_spd_servicetypegroup; } /// /// There are no comments for processsession in the schema. @@ -547132,6 +547463,7 @@ public partial class processsession : crmbaseentity /// Initial value of regardingobjectid_spd_dogtrainingschool. /// Initial value of regardingobjectid_spd_guidedogsservicedogs. /// Initial value of regardingobjectid_spd_ranote. + /// Initial value of regardingobjectid_spd_servicetypegroup. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public static processsession Createprocesssession(global::Microsoft.Dynamics.CRM.theme regardingobjectid_theme, global::Microsoft.Dynamics.CRM.usermapping regardingobjectid_usermapping, @@ -547401,7 +547733,8 @@ public static processsession Createprocesssession(global::Microsoft.Dynamics.CRM global::Microsoft.Dynamics.CRM.spd_dogteam regardingobjectid_spd_dogteam, global::Microsoft.Dynamics.CRM.spd_dogtrainingschool regardingobjectid_spd_dogtrainingschool, global::Microsoft.Dynamics.CRM.spd_guidedogsservicedogs regardingobjectid_spd_guidedogsservicedogs, - global::Microsoft.Dynamics.CRM.spd_ranote regardingobjectid_spd_ranote) + global::Microsoft.Dynamics.CRM.spd_ranote regardingobjectid_spd_ranote, + global::Microsoft.Dynamics.CRM.spd_servicetypegroup regardingobjectid_spd_servicetypegroup) { processsession processsession = new processsession(); if ((regardingobjectid_theme == null)) @@ -548749,6 +549082,11 @@ public static processsession Createprocesssession(global::Microsoft.Dynamics.CRM throw new global::System.ArgumentNullException("regardingobjectid_spd_ranote"); } processsession.regardingobjectid_spd_ranote = regardingobjectid_spd_ranote; + if ((regardingobjectid_spd_servicetypegroup == null)) + { + throw new global::System.ArgumentNullException("regardingobjectid_spd_servicetypegroup"); + } + processsession.regardingobjectid_spd_servicetypegroup = regardingobjectid_spd_servicetypegroup; return processsession; } /// @@ -555928,6 +556266,29 @@ public virtual string stepname private global::Microsoft.Dynamics.CRM.spd_ranote _regardingobjectid_spd_ranote; partial void Onregardingobjectid_spd_ranoteChanging(global::Microsoft.Dynamics.CRM.spd_ranote value); partial void Onregardingobjectid_spd_ranoteChanged(); + /// + /// There are no comments for Property regardingobjectid_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "regardingobjectid_spd_servicetypegroup is required.")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroup regardingobjectid_spd_servicetypegroup + { + get + { + return this._regardingobjectid_spd_servicetypegroup; + } + set + { + this.Onregardingobjectid_spd_servicetypegroupChanging(value); + this._regardingobjectid_spd_servicetypegroup = value; + this.Onregardingobjectid_spd_servicetypegroupChanged(); + this.OnPropertyChanged("regardingobjectid_spd_servicetypegroup"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroup _regardingobjectid_spd_servicetypegroup; + partial void Onregardingobjectid_spd_servicetypegroupChanging(global::Microsoft.Dynamics.CRM.spd_servicetypegroup value); + partial void Onregardingobjectid_spd_servicetypegroupChanged(); } /// /// There are no comments for processstageparameterSingle in the schema. @@ -690643,6 +691004,27 @@ public spd_cpicbatchSingle(global::Microsoft.OData.Client.DataServiceQuerySingle } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.OData.Client.DataServiceQuery _spd_cpicbatch_bcgov_documenturl; + /// + /// There are no comments for spd_ServiceTypeGroupId in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle spd_ServiceTypeGroupId + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._spd_ServiceTypeGroupId == null)) + { + this._spd_ServiceTypeGroupId = new global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle(this.Context, GetPath("spd_ServiceTypeGroupId")); + } + return this._spd_ServiceTypeGroupId; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle _spd_ServiceTypeGroupId; } /// /// There are no comments for spd_cpicbatch in the schema. @@ -690666,6 +691048,7 @@ public partial class spd_cpicbatch : crmbaseentity /// Initial value of ownerid. /// Initial value of owningbusinessunit. /// Initial value of spd_ServiceTypeId. + /// Initial value of spd_ServiceTypeGroupId. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public static spd_cpicbatch Createspd_cpicbatch(global::Microsoft.Dynamics.CRM.systemuser createdby, global::Microsoft.Dynamics.CRM.systemuser createdonbehalfby, @@ -690675,7 +691058,8 @@ public static spd_cpicbatch Createspd_cpicbatch(global::Microsoft.Dynamics.CRM.s global::Microsoft.Dynamics.CRM.team owningteam, global::Microsoft.Dynamics.CRM.principal ownerid, global::Microsoft.Dynamics.CRM.businessunit owningbusinessunit, - global::Microsoft.Dynamics.CRM.spd_servicetype spd_ServiceTypeId) + global::Microsoft.Dynamics.CRM.spd_servicetype spd_ServiceTypeId, + global::Microsoft.Dynamics.CRM.spd_servicetypegroup spd_ServiceTypeGroupId) { spd_cpicbatch spd_cpicbatch = new spd_cpicbatch(); if ((createdby == null)) @@ -690723,96 +691107,233 @@ public static spd_cpicbatch Createspd_cpicbatch(global::Microsoft.Dynamics.CRM.s throw new global::System.ArgumentNullException("spd_ServiceTypeId"); } spd_cpicbatch.spd_ServiceTypeId = spd_ServiceTypeId; + if ((spd_ServiceTypeGroupId == null)) + { + throw new global::System.ArgumentNullException("spd_ServiceTypeGroupId"); + } + spd_cpicbatch.spd_ServiceTypeGroupId = spd_ServiceTypeGroupId; return spd_cpicbatch; } /// - /// There are no comments for Property createdon in the schema. + /// There are no comments for Property modifiedon in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable createdon + public virtual global::System.Nullable modifiedon { get { - return this._createdon; + return this._modifiedon; } set { - this.OncreatedonChanging(value); - this._createdon = value; - this.OncreatedonChanged(); - this.OnPropertyChanged("createdon"); + this.OnmodifiedonChanging(value); + this._modifiedon = value; + this.OnmodifiedonChanged(); + this.OnPropertyChanged("modifiedon"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable _createdon; - partial void OncreatedonChanging(global::System.Nullable value); - partial void OncreatedonChanged(); + private global::System.Nullable _modifiedon; + partial void OnmodifiedonChanging(global::System.Nullable value); + partial void OnmodifiedonChanged(); /// - /// There are no comments for Property importsequencenumber in the schema. + /// There are no comments for Property spd_error in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable importsequencenumber + public virtual string spd_error { get { - return this._importsequencenumber; + return this._spd_error; } set { - this.OnimportsequencenumberChanging(value); - this._importsequencenumber = value; - this.OnimportsequencenumberChanged(); - this.OnPropertyChanged("importsequencenumber"); + this.Onspd_errorChanging(value); + this._spd_error = value; + this.Onspd_errorChanged(); + this.OnPropertyChanged("spd_error"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable _importsequencenumber; - partial void OnimportsequencenumberChanging(global::System.Nullable value); - partial void OnimportsequencenumberChanged(); + private string _spd_error; + partial void Onspd_errorChanging(string value); + partial void Onspd_errorChanged(); /// - /// There are no comments for Property timezoneruleversionnumber in the schema. + /// There are no comments for Property _owningbusinessunit_value in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable timezoneruleversionnumber + public virtual global::System.Nullable _owningbusinessunit_value { get { - return this._timezoneruleversionnumber; + return this.__owningbusinessunit_value; } set { - this.OntimezoneruleversionnumberChanging(value); - this._timezoneruleversionnumber = value; - this.OntimezoneruleversionnumberChanged(); - this.OnPropertyChanged("timezoneruleversionnumber"); + this.On_owningbusinessunit_valueChanging(value); + this.__owningbusinessunit_value = value; + this.On_owningbusinessunit_valueChanged(); + this.OnPropertyChanged("_owningbusinessunit_value"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable _timezoneruleversionnumber; - partial void OntimezoneruleversionnumberChanging(global::System.Nullable value); - partial void OntimezoneruleversionnumberChanged(); + private global::System.Nullable __owningbusinessunit_value; + partial void On_owningbusinessunit_valueChanging(global::System.Nullable value); + partial void On_owningbusinessunit_valueChanged(); /// - /// There are no comments for Property _owningbusinessunit_value in the schema. + /// There are no comments for Property spd_name in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable _owningbusinessunit_value + public virtual string spd_name { get { - return this.__owningbusinessunit_value; + return this._spd_name; } set { - this.On_owningbusinessunit_valueChanging(value); - this.__owningbusinessunit_value = value; - this.On_owningbusinessunit_valueChanged(); - this.OnPropertyChanged("_owningbusinessunit_value"); + this.Onspd_nameChanging(value); + this._spd_name = value; + this.Onspd_nameChanged(); + this.OnPropertyChanged("spd_name"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable __owningbusinessunit_value; - partial void On_owningbusinessunit_valueChanging(global::System.Nullable value); - partial void On_owningbusinessunit_valueChanged(); + private string _spd_name; + partial void Onspd_nameChanging(string value); + partial void Onspd_nameChanged(); + /// + /// There are no comments for Property versionnumber in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable versionnumber + { + get + { + return this._versionnumber; + } + set + { + this.OnversionnumberChanging(value); + this._versionnumber = value; + this.OnversionnumberChanged(); + this.OnPropertyChanged("versionnumber"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _versionnumber; + partial void OnversionnumberChanging(global::System.Nullable value); + partial void OnversionnumberChanged(); + /// + /// There are no comments for Property _owninguser_value in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable _owninguser_value + { + get + { + return this.__owninguser_value; + } + set + { + this.On_owninguser_valueChanging(value); + this.__owninguser_value = value; + this.On_owninguser_valueChanged(); + this.OnPropertyChanged("_owninguser_value"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable __owninguser_value; + partial void On_owninguser_valueChanging(global::System.Nullable value); + partial void On_owninguser_valueChanged(); + /// + /// There are no comments for Property utcconversiontimezonecode in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable utcconversiontimezonecode + { + get + { + return this._utcconversiontimezonecode; + } + set + { + this.OnutcconversiontimezonecodeChanging(value); + this._utcconversiontimezonecode = value; + this.OnutcconversiontimezonecodeChanged(); + this.OnPropertyChanged("utcconversiontimezonecode"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _utcconversiontimezonecode; + partial void OnutcconversiontimezonecodeChanging(global::System.Nullable value); + partial void OnutcconversiontimezonecodeChanged(); + /// + /// There are no comments for Property _spd_servicetypeid_value in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable _spd_servicetypeid_value + { + get + { + return this.__spd_servicetypeid_value; + } + set + { + this.On_spd_servicetypeid_valueChanging(value); + this.__spd_servicetypeid_value = value; + this.On_spd_servicetypeid_valueChanged(); + this.OnPropertyChanged("_spd_servicetypeid_value"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable __spd_servicetypeid_value; + partial void On_spd_servicetypeid_valueChanging(global::System.Nullable value); + partial void On_spd_servicetypeid_valueChanged(); + /// + /// There are no comments for Property spd_count in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable spd_count + { + get + { + return this._spd_count; + } + set + { + this.Onspd_countChanging(value); + this._spd_count = value; + this.Onspd_countChanged(); + this.OnPropertyChanged("spd_count"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _spd_count; + partial void Onspd_countChanging(global::System.Nullable value); + partial void Onspd_countChanged(); + /// + /// There are no comments for Property statecode in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable statecode + { + get + { + return this._statecode; + } + set + { + this.OnstatecodeChanging(value); + this._statecode = value; + this.OnstatecodeChanged(); + this.OnPropertyChanged("statecode"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _statecode; + partial void OnstatecodeChanging(global::System.Nullable value); + partial void OnstatecodeChanged(); /// /// There are no comments for Property _modifiedonbehalfby_value in the schema. /// @@ -690836,137 +691357,115 @@ public static spd_cpicbatch Createspd_cpicbatch(global::Microsoft.Dynamics.CRM.s partial void On_modifiedonbehalfby_valueChanging(global::System.Nullable value); partial void On_modifiedonbehalfby_valueChanged(); /// - /// There are no comments for Property _owninguser_value in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable _owninguser_value - { - get - { - return this.__owninguser_value; - } - set - { - this.On_owninguser_valueChanging(value); - this.__owninguser_value = value; - this.On_owninguser_valueChanged(); - this.OnPropertyChanged("_owninguser_value"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable __owninguser_value; - partial void On_owninguser_valueChanging(global::System.Nullable value); - partial void On_owninguser_valueChanged(); - /// - /// There are no comments for Property statuscode in the schema. + /// There are no comments for Property _createdonbehalfby_value in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable statuscode + public virtual global::System.Nullable _createdonbehalfby_value { get { - return this._statuscode; + return this.__createdonbehalfby_value; } set { - this.OnstatuscodeChanging(value); - this._statuscode = value; - this.OnstatuscodeChanged(); - this.OnPropertyChanged("statuscode"); + this.On_createdonbehalfby_valueChanging(value); + this.__createdonbehalfby_value = value; + this.On_createdonbehalfby_valueChanged(); + this.OnPropertyChanged("_createdonbehalfby_value"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable _statuscode; - partial void OnstatuscodeChanging(global::System.Nullable value); - partial void OnstatuscodeChanged(); + private global::System.Nullable __createdonbehalfby_value; + partial void On_createdonbehalfby_valueChanging(global::System.Nullable value); + partial void On_createdonbehalfby_valueChanged(); /// - /// There are no comments for Property _modifiedby_value in the schema. + /// There are no comments for Property _createdby_value in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable _modifiedby_value + public virtual global::System.Nullable _createdby_value { get { - return this.__modifiedby_value; + return this.__createdby_value; } set { - this.On_modifiedby_valueChanging(value); - this.__modifiedby_value = value; - this.On_modifiedby_valueChanged(); - this.OnPropertyChanged("_modifiedby_value"); + this.On_createdby_valueChanging(value); + this.__createdby_value = value; + this.On_createdby_valueChanged(); + this.OnPropertyChanged("_createdby_value"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable __modifiedby_value; - partial void On_modifiedby_valueChanging(global::System.Nullable value); - partial void On_modifiedby_valueChanged(); + private global::System.Nullable __createdby_value; + partial void On_createdby_valueChanging(global::System.Nullable value); + partial void On_createdby_valueChanged(); /// - /// There are no comments for Property utcconversiontimezonecode in the schema. + /// There are no comments for Property _owningteam_value in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable utcconversiontimezonecode + public virtual global::System.Nullable _owningteam_value { get { - return this._utcconversiontimezonecode; + return this.__owningteam_value; } set { - this.OnutcconversiontimezonecodeChanging(value); - this._utcconversiontimezonecode = value; - this.OnutcconversiontimezonecodeChanged(); - this.OnPropertyChanged("utcconversiontimezonecode"); + this.On_owningteam_valueChanging(value); + this.__owningteam_value = value; + this.On_owningteam_valueChanged(); + this.OnPropertyChanged("_owningteam_value"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable _utcconversiontimezonecode; - partial void OnutcconversiontimezonecodeChanging(global::System.Nullable value); - partial void OnutcconversiontimezonecodeChanged(); + private global::System.Nullable __owningteam_value; + partial void On_owningteam_valueChanging(global::System.Nullable value); + partial void On_owningteam_valueChanged(); /// - /// There are no comments for Property spd_cpicbatchid in the schema. + /// There are no comments for Property statuscode in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable spd_cpicbatchid + public virtual global::System.Nullable statuscode { get { - return this._spd_cpicbatchid; + return this._statuscode; } set { - this.Onspd_cpicbatchidChanging(value); - this._spd_cpicbatchid = value; - this.Onspd_cpicbatchidChanged(); - this.OnPropertyChanged("spd_cpicbatchid"); + this.OnstatuscodeChanging(value); + this._statuscode = value; + this.OnstatuscodeChanged(); + this.OnPropertyChanged("statuscode"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable _spd_cpicbatchid; - partial void Onspd_cpicbatchidChanging(global::System.Nullable value); - partial void Onspd_cpicbatchidChanged(); + private global::System.Nullable _statuscode; + partial void OnstatuscodeChanging(global::System.Nullable value); + partial void OnstatuscodeChanged(); /// - /// There are no comments for Property overriddencreatedon in the schema. + /// There are no comments for Property createdon in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable overriddencreatedon + public virtual global::System.Nullable createdon { get { - return this._overriddencreatedon; + return this._createdon; } set { - this.OnoverriddencreatedonChanging(value); - this._overriddencreatedon = value; - this.OnoverriddencreatedonChanged(); - this.OnPropertyChanged("overriddencreatedon"); + this.OncreatedonChanging(value); + this._createdon = value; + this.OncreatedonChanged(); + this.OnPropertyChanged("createdon"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable _overriddencreatedon; - partial void OnoverriddencreatedonChanging(global::System.Nullable value); - partial void OnoverriddencreatedonChanged(); + private global::System.Nullable _createdon; + partial void OncreatedonChanging(global::System.Nullable value); + partial void OncreatedonChanged(); /// /// There are no comments for Property _ownerid_value in the schema. /// @@ -690990,181 +691489,137 @@ public static spd_cpicbatch Createspd_cpicbatch(global::Microsoft.Dynamics.CRM.s partial void On_ownerid_valueChanging(global::System.Nullable value); partial void On_ownerid_valueChanged(); /// - /// There are no comments for Property _createdby_value in the schema. + /// There are no comments for Property _spd_servicetypegroupid_value in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable _createdby_value + public virtual global::System.Nullable _spd_servicetypegroupid_value { get { - return this.__createdby_value; + return this.__spd_servicetypegroupid_value; } set { - this.On_createdby_valueChanging(value); - this.__createdby_value = value; - this.On_createdby_valueChanged(); - this.OnPropertyChanged("_createdby_value"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable __createdby_value; - partial void On_createdby_valueChanging(global::System.Nullable value); - partial void On_createdby_valueChanged(); - /// - /// There are no comments for Property _spd_servicetypeid_value in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable _spd_servicetypeid_value - { - get - { - return this.__spd_servicetypeid_value; - } - set - { - this.On_spd_servicetypeid_valueChanging(value); - this.__spd_servicetypeid_value = value; - this.On_spd_servicetypeid_valueChanged(); - this.OnPropertyChanged("_spd_servicetypeid_value"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable __spd_servicetypeid_value; - partial void On_spd_servicetypeid_valueChanging(global::System.Nullable value); - partial void On_spd_servicetypeid_valueChanged(); - /// - /// There are no comments for Property spd_count in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable spd_count - { - get - { - return this._spd_count; - } - set - { - this.Onspd_countChanging(value); - this._spd_count = value; - this.Onspd_countChanged(); - this.OnPropertyChanged("spd_count"); + this.On_spd_servicetypegroupid_valueChanging(value); + this.__spd_servicetypegroupid_value = value; + this.On_spd_servicetypegroupid_valueChanged(); + this.OnPropertyChanged("_spd_servicetypegroupid_value"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable _spd_count; - partial void Onspd_countChanging(global::System.Nullable value); - partial void Onspd_countChanged(); + private global::System.Nullable __spd_servicetypegroupid_value; + partial void On_spd_servicetypegroupid_valueChanging(global::System.Nullable value); + partial void On_spd_servicetypegroupid_valueChanged(); /// - /// There are no comments for Property spd_name in the schema. + /// There are no comments for Property timezoneruleversionnumber in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual string spd_name + public virtual global::System.Nullable timezoneruleversionnumber { get { - return this._spd_name; + return this._timezoneruleversionnumber; } set { - this.Onspd_nameChanging(value); - this._spd_name = value; - this.Onspd_nameChanged(); - this.OnPropertyChanged("spd_name"); + this.OntimezoneruleversionnumberChanging(value); + this._timezoneruleversionnumber = value; + this.OntimezoneruleversionnumberChanged(); + this.OnPropertyChanged("timezoneruleversionnumber"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private string _spd_name; - partial void Onspd_nameChanging(string value); - partial void Onspd_nameChanged(); + private global::System.Nullable _timezoneruleversionnumber; + partial void OntimezoneruleversionnumberChanging(global::System.Nullable value); + partial void OntimezoneruleversionnumberChanged(); /// - /// There are no comments for Property statecode in the schema. + /// There are no comments for Property overriddencreatedon in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable statecode + public virtual global::System.Nullable overriddencreatedon { get { - return this._statecode; + return this._overriddencreatedon; } set { - this.OnstatecodeChanging(value); - this._statecode = value; - this.OnstatecodeChanged(); - this.OnPropertyChanged("statecode"); + this.OnoverriddencreatedonChanging(value); + this._overriddencreatedon = value; + this.OnoverriddencreatedonChanged(); + this.OnPropertyChanged("overriddencreatedon"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable _statecode; - partial void OnstatecodeChanging(global::System.Nullable value); - partial void OnstatecodeChanged(); + private global::System.Nullable _overriddencreatedon; + partial void OnoverriddencreatedonChanging(global::System.Nullable value); + partial void OnoverriddencreatedonChanged(); /// - /// There are no comments for Property _owningteam_value in the schema. + /// There are no comments for Property spd_cpiccaseid in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable _owningteam_value + public virtual string spd_cpiccaseid { get { - return this.__owningteam_value; + return this._spd_cpiccaseid; } set { - this.On_owningteam_valueChanging(value); - this.__owningteam_value = value; - this.On_owningteam_valueChanged(); - this.OnPropertyChanged("_owningteam_value"); + this.Onspd_cpiccaseidChanging(value); + this._spd_cpiccaseid = value; + this.Onspd_cpiccaseidChanged(); + this.OnPropertyChanged("spd_cpiccaseid"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable __owningteam_value; - partial void On_owningteam_valueChanging(global::System.Nullable value); - partial void On_owningteam_valueChanged(); + private string _spd_cpiccaseid; + partial void Onspd_cpiccaseidChanging(string value); + partial void Onspd_cpiccaseidChanged(); /// - /// There are no comments for Property versionnumber in the schema. + /// There are no comments for Property importsequencenumber in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable versionnumber + public virtual global::System.Nullable importsequencenumber { get { - return this._versionnumber; + return this._importsequencenumber; } set { - this.OnversionnumberChanging(value); - this._versionnumber = value; - this.OnversionnumberChanged(); - this.OnPropertyChanged("versionnumber"); + this.OnimportsequencenumberChanging(value); + this._importsequencenumber = value; + this.OnimportsequencenumberChanged(); + this.OnPropertyChanged("importsequencenumber"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable _versionnumber; - partial void OnversionnumberChanging(global::System.Nullable value); - partial void OnversionnumberChanged(); + private global::System.Nullable _importsequencenumber; + partial void OnimportsequencenumberChanging(global::System.Nullable value); + partial void OnimportsequencenumberChanged(); /// - /// There are no comments for Property _createdonbehalfby_value in the schema. + /// There are no comments for Property _modifiedby_value in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable _createdonbehalfby_value + public virtual global::System.Nullable _modifiedby_value { get { - return this.__createdonbehalfby_value; + return this.__modifiedby_value; } set { - this.On_createdonbehalfby_valueChanging(value); - this.__createdonbehalfby_value = value; - this.On_createdonbehalfby_valueChanged(); - this.OnPropertyChanged("_createdonbehalfby_value"); + this.On_modifiedby_valueChanging(value); + this.__modifiedby_value = value; + this.On_modifiedby_valueChanged(); + this.OnPropertyChanged("_modifiedby_value"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable __createdonbehalfby_value; - partial void On_createdonbehalfby_valueChanging(global::System.Nullable value); - partial void On_createdonbehalfby_valueChanged(); + private global::System.Nullable __modifiedby_value; + partial void On_modifiedby_valueChanging(global::System.Nullable value); + partial void On_modifiedby_valueChanged(); /// /// There are no comments for Property spd_workswith in the schema. /// @@ -691188,71 +691643,27 @@ public virtual string spd_name partial void Onspd_workswithChanging(global::System.Nullable value); partial void Onspd_workswithChanged(); /// - /// There are no comments for Property spd_error in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual string spd_error - { - get - { - return this._spd_error; - } - set - { - this.Onspd_errorChanging(value); - this._spd_error = value; - this.Onspd_errorChanged(); - this.OnPropertyChanged("spd_error"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private string _spd_error; - partial void Onspd_errorChanging(string value); - partial void Onspd_errorChanged(); - /// - /// There are no comments for Property spd_cpiccaseid in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual string spd_cpiccaseid - { - get - { - return this._spd_cpiccaseid; - } - set - { - this.Onspd_cpiccaseidChanging(value); - this._spd_cpiccaseid = value; - this.Onspd_cpiccaseidChanged(); - this.OnPropertyChanged("spd_cpiccaseid"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private string _spd_cpiccaseid; - partial void Onspd_cpiccaseidChanging(string value); - partial void Onspd_cpiccaseidChanged(); - /// - /// There are no comments for Property modifiedon in the schema. + /// There are no comments for Property spd_cpicbatchid in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable modifiedon + public virtual global::System.Nullable spd_cpicbatchid { get { - return this._modifiedon; + return this._spd_cpicbatchid; } set { - this.OnmodifiedonChanging(value); - this._modifiedon = value; - this.OnmodifiedonChanged(); - this.OnPropertyChanged("modifiedon"); + this.Onspd_cpicbatchidChanging(value); + this._spd_cpicbatchid = value; + this.Onspd_cpicbatchidChanged(); + this.OnPropertyChanged("spd_cpicbatchid"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable _modifiedon; - partial void OnmodifiedonChanging(global::System.Nullable value); - partial void OnmodifiedonChanged(); + private global::System.Nullable _spd_cpicbatchid; + partial void Onspd_cpicbatchidChanging(global::System.Nullable value); + partial void Onspd_cpicbatchidChanged(); /// /// There are no comments for Property createdby in the schema. /// @@ -691659,6 +692070,29 @@ public virtual string spd_cpiccaseid partial void Onspd_cpicbatch_bcgov_documenturlChanging(global::Microsoft.OData.Client.DataServiceCollection value); partial void Onspd_cpicbatch_bcgov_documenturlChanged(); /// + /// There are no comments for Property spd_ServiceTypeGroupId in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "spd_ServiceTypeGroupId is required.")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroup spd_ServiceTypeGroupId + { + get + { + return this._spd_ServiceTypeGroupId; + } + set + { + this.Onspd_ServiceTypeGroupIdChanging(value); + this._spd_ServiceTypeGroupId = value; + this.Onspd_ServiceTypeGroupIdChanged(); + this.OnPropertyChanged("spd_ServiceTypeGroupId"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroup _spd_ServiceTypeGroupId; + partial void Onspd_ServiceTypeGroupIdChanging(global::Microsoft.Dynamics.CRM.spd_servicetypegroup value); + partial void Onspd_ServiceTypeGroupIdChanged(); + /// /// There are no comments for spd_CPICCRCParser in the schema. /// public virtual global::Microsoft.OData.Client.DataServiceActionQuerySingle spd_CPICCRCParser(string InputText) @@ -756694,27 +757128,1187 @@ public virtual string traversedpath partial void On_createdonbehalfby_valueChanging(global::System.Nullable value); partial void On_createdonbehalfby_valueChanged(); /// - /// There are no comments for Property completedon in the schema. + /// There are no comments for Property completedon in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable completedon + { + get + { + return this._completedon; + } + set + { + this.OncompletedonChanging(value); + this._completedon = value; + this.OncompletedonChanged(); + this.OnPropertyChanged("completedon"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _completedon; + partial void OncompletedonChanging(global::System.Nullable value); + partial void OncompletedonChanged(); + /// + /// There are no comments for Property createdby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "createdby is required.")] + public virtual global::Microsoft.Dynamics.CRM.systemuser createdby + { + get + { + return this._createdby; + } + set + { + this.OncreatedbyChanging(value); + this._createdby = value; + this.OncreatedbyChanged(); + this.OnPropertyChanged("createdby"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.systemuser _createdby; + partial void OncreatedbyChanging(global::Microsoft.Dynamics.CRM.systemuser value); + partial void OncreatedbyChanged(); + /// + /// There are no comments for Property createdonbehalfby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "createdonbehalfby is required.")] + public virtual global::Microsoft.Dynamics.CRM.systemuser createdonbehalfby + { + get + { + return this._createdonbehalfby; + } + set + { + this.OncreatedonbehalfbyChanging(value); + this._createdonbehalfby = value; + this.OncreatedonbehalfbyChanged(); + this.OnPropertyChanged("createdonbehalfby"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.systemuser _createdonbehalfby; + partial void OncreatedonbehalfbyChanging(global::Microsoft.Dynamics.CRM.systemuser value); + partial void OncreatedonbehalfbyChanged(); + /// + /// There are no comments for Property modifiedby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "modifiedby is required.")] + public virtual global::Microsoft.Dynamics.CRM.systemuser modifiedby + { + get + { + return this._modifiedby; + } + set + { + this.OnmodifiedbyChanging(value); + this._modifiedby = value; + this.OnmodifiedbyChanged(); + this.OnPropertyChanged("modifiedby"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.systemuser _modifiedby; + partial void OnmodifiedbyChanging(global::Microsoft.Dynamics.CRM.systemuser value); + partial void OnmodifiedbyChanged(); + /// + /// There are no comments for Property modifiedonbehalfby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "modifiedonbehalfby is required.")] + public virtual global::Microsoft.Dynamics.CRM.systemuser modifiedonbehalfby + { + get + { + return this._modifiedonbehalfby; + } + set + { + this.OnmodifiedonbehalfbyChanging(value); + this._modifiedonbehalfby = value; + this.OnmodifiedonbehalfbyChanged(); + this.OnPropertyChanged("modifiedonbehalfby"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.systemuser _modifiedonbehalfby; + partial void OnmodifiedonbehalfbyChanging(global::Microsoft.Dynamics.CRM.systemuser value); + partial void OnmodifiedonbehalfbyChanged(); + /// + /// There are no comments for Property organizationid in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "organizationid is required.")] + public virtual global::Microsoft.Dynamics.CRM.organization organizationid + { + get + { + return this._organizationid; + } + set + { + this.OnorganizationidChanging(value); + this._organizationid = value; + this.OnorganizationidChanged(); + this.OnPropertyChanged("organizationid"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.organization _organizationid; + partial void OnorganizationidChanging(global::Microsoft.Dynamics.CRM.organization value); + partial void OnorganizationidChanged(); + /// + /// There are no comments for Property activestageid in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "activestageid is required.")] + public virtual global::Microsoft.Dynamics.CRM.processstage activestageid + { + get + { + return this._activestageid; + } + set + { + this.OnactivestageidChanging(value); + this._activestageid = value; + this.OnactivestageidChanged(); + this.OnPropertyChanged("activestageid"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.processstage _activestageid; + partial void OnactivestageidChanging(global::Microsoft.Dynamics.CRM.processstage value); + partial void OnactivestageidChanged(); + /// + /// There are no comments for Property processid in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "processid is required.")] + public virtual global::Microsoft.Dynamics.CRM.workflow processid + { + get + { + return this._processid; + } + set + { + this.OnprocessidChanging(value); + this._processid = value; + this.OnprocessidChanged(); + this.OnPropertyChanged("processid"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.workflow _processid; + partial void OnprocessidChanging(global::Microsoft.Dynamics.CRM.workflow value); + partial void OnprocessidChanged(); + /// + /// There are no comments for Property spd_securityservicescreening_SyncErrors in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_SyncErrors + { + get + { + return this._spd_securityservicescreening_SyncErrors; + } + set + { + this.Onspd_securityservicescreening_SyncErrorsChanging(value); + this._spd_securityservicescreening_SyncErrors = value; + this.Onspd_securityservicescreening_SyncErrorsChanged(); + this.OnPropertyChanged("spd_securityservicescreening_SyncErrors"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_SyncErrors = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_securityservicescreening_SyncErrorsChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_securityservicescreening_SyncErrorsChanged(); + /// + /// There are no comments for Property spd_securityservicescreening_AsyncOperations in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_AsyncOperations + { + get + { + return this._spd_securityservicescreening_AsyncOperations; + } + set + { + this.Onspd_securityservicescreening_AsyncOperationsChanging(value); + this._spd_securityservicescreening_AsyncOperations = value; + this.Onspd_securityservicescreening_AsyncOperationsChanged(); + this.OnPropertyChanged("spd_securityservicescreening_AsyncOperations"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_AsyncOperations = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_securityservicescreening_AsyncOperationsChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_securityservicescreening_AsyncOperationsChanged(); + /// + /// There are no comments for Property spd_securityservicescreening_WorkflowLogs in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_WorkflowLogs + { + get + { + return this._spd_securityservicescreening_WorkflowLogs; + } + set + { + this.Onspd_securityservicescreening_WorkflowLogsChanging(value); + this._spd_securityservicescreening_WorkflowLogs = value; + this.Onspd_securityservicescreening_WorkflowLogsChanged(); + this.OnPropertyChanged("spd_securityservicescreening_WorkflowLogs"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_WorkflowLogs = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_securityservicescreening_WorkflowLogsChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_securityservicescreening_WorkflowLogsChanged(); + /// + /// There are no comments for Property spd_securityservicescreening_MailboxTrackingFolders in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_MailboxTrackingFolders + { + get + { + return this._spd_securityservicescreening_MailboxTrackingFolders; + } + set + { + this.Onspd_securityservicescreening_MailboxTrackingFoldersChanging(value); + this._spd_securityservicescreening_MailboxTrackingFolders = value; + this.Onspd_securityservicescreening_MailboxTrackingFoldersChanged(); + this.OnPropertyChanged("spd_securityservicescreening_MailboxTrackingFolders"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_MailboxTrackingFolders = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_securityservicescreening_MailboxTrackingFoldersChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_securityservicescreening_MailboxTrackingFoldersChanged(); + /// + /// There are no comments for Property spd_securityservicescreening_ProcessSession in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_ProcessSession + { + get + { + return this._spd_securityservicescreening_ProcessSession; + } + set + { + this.Onspd_securityservicescreening_ProcessSessionChanging(value); + this._spd_securityservicescreening_ProcessSession = value; + this.Onspd_securityservicescreening_ProcessSessionChanged(); + this.OnPropertyChanged("spd_securityservicescreening_ProcessSession"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_ProcessSession = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_securityservicescreening_ProcessSessionChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_securityservicescreening_ProcessSessionChanged(); + /// + /// There are no comments for Property spd_securityservicescreening_BulkDeleteFailures in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_BulkDeleteFailures + { + get + { + return this._spd_securityservicescreening_BulkDeleteFailures; + } + set + { + this.Onspd_securityservicescreening_BulkDeleteFailuresChanging(value); + this._spd_securityservicescreening_BulkDeleteFailures = value; + this.Onspd_securityservicescreening_BulkDeleteFailuresChanged(); + this.OnPropertyChanged("spd_securityservicescreening_BulkDeleteFailures"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_BulkDeleteFailures = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_securityservicescreening_BulkDeleteFailuresChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_securityservicescreening_BulkDeleteFailuresChanged(); + /// + /// There are no comments for Property spd_securityservicescreening_PrincipalObjectAttributeAccesses in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_PrincipalObjectAttributeAccesses + { + get + { + return this._spd_securityservicescreening_PrincipalObjectAttributeAccesses; + } + set + { + this.Onspd_securityservicescreening_PrincipalObjectAttributeAccessesChanging(value); + this._spd_securityservicescreening_PrincipalObjectAttributeAccesses = value; + this.Onspd_securityservicescreening_PrincipalObjectAttributeAccessesChanged(); + this.OnPropertyChanged("spd_securityservicescreening_PrincipalObjectAttributeAccesses"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_PrincipalObjectAttributeAccesses = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_securityservicescreening_PrincipalObjectAttributeAccessesChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_securityservicescreening_PrincipalObjectAttributeAccessesChanged(); + /// + /// There are no comments for Property bpf_incidentid in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "bpf_incidentid is required.")] + public virtual global::Microsoft.Dynamics.CRM.incident bpf_incidentid + { + get + { + return this._bpf_incidentid; + } + set + { + this.Onbpf_incidentidChanging(value); + this._bpf_incidentid = value; + this.Onbpf_incidentidChanged(); + this.OnPropertyChanged("bpf_incidentid"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.incident _bpf_incidentid; + partial void Onbpf_incidentidChanging(global::Microsoft.Dynamics.CRM.incident value); + partial void Onbpf_incidentidChanged(); + } + /// + /// There are no comments for spd_servicetypegroup_spd_servicetypeSingle in the schema. + /// + public partial class spd_servicetypegroup_spd_servicetypeSingle : global::Microsoft.OData.Client.DataServiceQuerySingle + { + /// + /// Initialize a new spd_servicetypegroup_spd_servicetypeSingle object. + /// + public spd_servicetypegroup_spd_servicetypeSingle(global::Microsoft.OData.Client.DataServiceContext context, string path) + : base(context, path) {} + + /// + /// Initialize a new spd_servicetypegroup_spd_servicetypeSingle object. + /// + public spd_servicetypegroup_spd_servicetypeSingle(global::Microsoft.OData.Client.DataServiceContext context, string path, bool isComposable) + : base(context, path, isComposable) {} + + /// + /// Initialize a new spd_servicetypegroup_spd_servicetypeSingle object. + /// + public spd_servicetypegroup_spd_servicetypeSingle(global::Microsoft.OData.Client.DataServiceQuerySingle query) + : base(query) {} + + } + /// + /// There are no comments for spd_servicetypegroup_spd_servicetype in the schema. + /// + /// + /// spd_servicetypegroup_spd_servicetypeid + /// + [global::Microsoft.OData.Client.Key("spd_servicetypegroup_spd_servicetypeid")] + [global::Microsoft.OData.Client.EntitySet("spd_servicetypegroup_spd_servicetypeset")] + public partial class spd_servicetypegroup_spd_servicetype : crmbaseentity + { + /// + /// There are no comments for Property spd_servicetypegroup_spd_servicetypeid in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable spd_servicetypegroup_spd_servicetypeid + { + get + { + return this._spd_servicetypegroup_spd_servicetypeid; + } + set + { + this.Onspd_servicetypegroup_spd_servicetypeidChanging(value); + this._spd_servicetypegroup_spd_servicetypeid = value; + this.Onspd_servicetypegroup_spd_servicetypeidChanged(); + this.OnPropertyChanged("spd_servicetypegroup_spd_servicetypeid"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _spd_servicetypegroup_spd_servicetypeid; + partial void Onspd_servicetypegroup_spd_servicetypeidChanging(global::System.Nullable value); + partial void Onspd_servicetypegroup_spd_servicetypeidChanged(); + /// + /// There are no comments for Property versionnumber in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable versionnumber + { + get + { + return this._versionnumber; + } + set + { + this.OnversionnumberChanging(value); + this._versionnumber = value; + this.OnversionnumberChanged(); + this.OnPropertyChanged("versionnumber"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _versionnumber; + partial void OnversionnumberChanging(global::System.Nullable value); + partial void OnversionnumberChanged(); + /// + /// There are no comments for Property spd_servicetypegroupid in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable spd_servicetypegroupid + { + get + { + return this._spd_servicetypegroupid; + } + set + { + this.Onspd_servicetypegroupidChanging(value); + this._spd_servicetypegroupid = value; + this.Onspd_servicetypegroupidChanged(); + this.OnPropertyChanged("spd_servicetypegroupid"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _spd_servicetypegroupid; + partial void Onspd_servicetypegroupidChanging(global::System.Nullable value); + partial void Onspd_servicetypegroupidChanged(); + /// + /// There are no comments for Property spd_servicetypeid in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable spd_servicetypeid + { + get + { + return this._spd_servicetypeid; + } + set + { + this.Onspd_servicetypeidChanging(value); + this._spd_servicetypeid = value; + this.Onspd_servicetypeidChanged(); + this.OnPropertyChanged("spd_servicetypeid"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _spd_servicetypeid; + partial void Onspd_servicetypeidChanging(global::System.Nullable value); + partial void Onspd_servicetypeidChanged(); + } + /// + /// There are no comments for spd_servicetypegroupSingle in the schema. + /// + public partial class spd_servicetypegroupSingle : global::Microsoft.OData.Client.DataServiceQuerySingle + { + /// + /// Initialize a new spd_servicetypegroupSingle object. + /// + public spd_servicetypegroupSingle(global::Microsoft.OData.Client.DataServiceContext context, string path) + : base(context, path) {} + + /// + /// Initialize a new spd_servicetypegroupSingle object. + /// + public spd_servicetypegroupSingle(global::Microsoft.OData.Client.DataServiceContext context, string path, bool isComposable) + : base(context, path, isComposable) {} + + /// + /// Initialize a new spd_servicetypegroupSingle object. + /// + public spd_servicetypegroupSingle(global::Microsoft.OData.Client.DataServiceQuerySingle query) + : base(query) {} + + /// + /// There are no comments for createdby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.systemuserSingle createdby + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._createdby == null)) + { + this._createdby = new global::Microsoft.Dynamics.CRM.systemuserSingle(this.Context, GetPath("createdby")); + } + return this._createdby; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.systemuserSingle _createdby; + /// + /// There are no comments for createdonbehalfby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.systemuserSingle createdonbehalfby + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._createdonbehalfby == null)) + { + this._createdonbehalfby = new global::Microsoft.Dynamics.CRM.systemuserSingle(this.Context, GetPath("createdonbehalfby")); + } + return this._createdonbehalfby; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.systemuserSingle _createdonbehalfby; + /// + /// There are no comments for modifiedby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.systemuserSingle modifiedby + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._modifiedby == null)) + { + this._modifiedby = new global::Microsoft.Dynamics.CRM.systemuserSingle(this.Context, GetPath("modifiedby")); + } + return this._modifiedby; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.systemuserSingle _modifiedby; + /// + /// There are no comments for modifiedonbehalfby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.systemuserSingle modifiedonbehalfby + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._modifiedonbehalfby == null)) + { + this._modifiedonbehalfby = new global::Microsoft.Dynamics.CRM.systemuserSingle(this.Context, GetPath("modifiedonbehalfby")); + } + return this._modifiedonbehalfby; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.systemuserSingle _modifiedonbehalfby; + /// + /// There are no comments for organizationid in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.organizationSingle organizationid + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._organizationid == null)) + { + this._organizationid = new global::Microsoft.Dynamics.CRM.organizationSingle(this.Context, GetPath("organizationid")); + } + return this._organizationid; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.organizationSingle _organizationid; + /// + /// There are no comments for spd_servicetypegroup_SyncErrors in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery spd_servicetypegroup_SyncErrors + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._spd_servicetypegroup_SyncErrors == null)) + { + this._spd_servicetypegroup_SyncErrors = Context.CreateQuery(GetPath("spd_servicetypegroup_SyncErrors")); + } + return this._spd_servicetypegroup_SyncErrors; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _spd_servicetypegroup_SyncErrors; + /// + /// There are no comments for spd_servicetypegroup_AsyncOperations in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery spd_servicetypegroup_AsyncOperations + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._spd_servicetypegroup_AsyncOperations == null)) + { + this._spd_servicetypegroup_AsyncOperations = Context.CreateQuery(GetPath("spd_servicetypegroup_AsyncOperations")); + } + return this._spd_servicetypegroup_AsyncOperations; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _spd_servicetypegroup_AsyncOperations; + /// + /// There are no comments for spd_servicetypegroup_MailboxTrackingFolders in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery spd_servicetypegroup_MailboxTrackingFolders + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._spd_servicetypegroup_MailboxTrackingFolders == null)) + { + this._spd_servicetypegroup_MailboxTrackingFolders = Context.CreateQuery(GetPath("spd_servicetypegroup_MailboxTrackingFolders")); + } + return this._spd_servicetypegroup_MailboxTrackingFolders; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _spd_servicetypegroup_MailboxTrackingFolders; + /// + /// There are no comments for spd_servicetypegroup_ProcessSession in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery spd_servicetypegroup_ProcessSession + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._spd_servicetypegroup_ProcessSession == null)) + { + this._spd_servicetypegroup_ProcessSession = Context.CreateQuery(GetPath("spd_servicetypegroup_ProcessSession")); + } + return this._spd_servicetypegroup_ProcessSession; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _spd_servicetypegroup_ProcessSession; + /// + /// There are no comments for spd_servicetypegroup_BulkDeleteFailures in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery spd_servicetypegroup_BulkDeleteFailures + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._spd_servicetypegroup_BulkDeleteFailures == null)) + { + this._spd_servicetypegroup_BulkDeleteFailures = Context.CreateQuery(GetPath("spd_servicetypegroup_BulkDeleteFailures")); + } + return this._spd_servicetypegroup_BulkDeleteFailures; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _spd_servicetypegroup_BulkDeleteFailures; + /// + /// There are no comments for spd_servicetypegroup_PrincipalObjectAttributeAccesses in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery spd_servicetypegroup_PrincipalObjectAttributeAccesses + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._spd_servicetypegroup_PrincipalObjectAttributeAccesses == null)) + { + this._spd_servicetypegroup_PrincipalObjectAttributeAccesses = Context.CreateQuery(GetPath("spd_servicetypegroup_PrincipalObjectAttributeAccesses")); + } + return this._spd_servicetypegroup_PrincipalObjectAttributeAccesses; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _spd_servicetypegroup_PrincipalObjectAttributeAccesses; + /// + /// There are no comments for spd_servicetypegroup_spd_servicetype in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery spd_servicetypegroup_spd_servicetype + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._spd_servicetypegroup_spd_servicetype == null)) + { + this._spd_servicetypegroup_spd_servicetype = Context.CreateQuery(GetPath("spd_servicetypegroup_spd_servicetype")); + } + return this._spd_servicetypegroup_spd_servicetype; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _spd_servicetypegroup_spd_servicetype; + /// + /// There are no comments for spd_servicetypegroup_spd_cpicbatch in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery spd_servicetypegroup_spd_cpicbatch + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._spd_servicetypegroup_spd_cpicbatch == null)) + { + this._spd_servicetypegroup_spd_cpicbatch = Context.CreateQuery(GetPath("spd_servicetypegroup_spd_cpicbatch")); + } + return this._spd_servicetypegroup_spd_cpicbatch; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _spd_servicetypegroup_spd_cpicbatch; + } + /// + /// There are no comments for spd_servicetypegroup in the schema. + /// + /// + /// spd_servicetypegroupid + /// + [global::Microsoft.OData.Client.Key("spd_servicetypegroupid")] + [global::Microsoft.OData.Client.EntitySet("spd_servicetypegroups")] + public partial class spd_servicetypegroup : crmbaseentity + { + /// + /// Create a new spd_servicetypegroup object. + /// + /// Initial value of createdby. + /// Initial value of createdonbehalfby. + /// Initial value of modifiedby. + /// Initial value of modifiedonbehalfby. + /// Initial value of organizationid. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public static spd_servicetypegroup Createspd_servicetypegroup(global::Microsoft.Dynamics.CRM.systemuser createdby, global::Microsoft.Dynamics.CRM.systemuser createdonbehalfby, global::Microsoft.Dynamics.CRM.systemuser modifiedby, global::Microsoft.Dynamics.CRM.systemuser modifiedonbehalfby, global::Microsoft.Dynamics.CRM.organization organizationid) + { + spd_servicetypegroup spd_servicetypegroup = new spd_servicetypegroup(); + if ((createdby == null)) + { + throw new global::System.ArgumentNullException("createdby"); + } + spd_servicetypegroup.createdby = createdby; + if ((createdonbehalfby == null)) + { + throw new global::System.ArgumentNullException("createdonbehalfby"); + } + spd_servicetypegroup.createdonbehalfby = createdonbehalfby; + if ((modifiedby == null)) + { + throw new global::System.ArgumentNullException("modifiedby"); + } + spd_servicetypegroup.modifiedby = modifiedby; + if ((modifiedonbehalfby == null)) + { + throw new global::System.ArgumentNullException("modifiedonbehalfby"); + } + spd_servicetypegroup.modifiedonbehalfby = modifiedonbehalfby; + if ((organizationid == null)) + { + throw new global::System.ArgumentNullException("organizationid"); + } + spd_servicetypegroup.organizationid = organizationid; + return spd_servicetypegroup; + } + /// + /// There are no comments for Property timezoneruleversionnumber in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable timezoneruleversionnumber + { + get + { + return this._timezoneruleversionnumber; + } + set + { + this.OntimezoneruleversionnumberChanging(value); + this._timezoneruleversionnumber = value; + this.OntimezoneruleversionnumberChanged(); + this.OnPropertyChanged("timezoneruleversionnumber"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _timezoneruleversionnumber; + partial void OntimezoneruleversionnumberChanging(global::System.Nullable value); + partial void OntimezoneruleversionnumberChanged(); + /// + /// There are no comments for Property versionnumber in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable versionnumber + { + get + { + return this._versionnumber; + } + set + { + this.OnversionnumberChanging(value); + this._versionnumber = value; + this.OnversionnumberChanged(); + this.OnPropertyChanged("versionnumber"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _versionnumber; + partial void OnversionnumberChanging(global::System.Nullable value); + partial void OnversionnumberChanged(); + /// + /// There are no comments for Property statecode in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable statecode + { + get + { + return this._statecode; + } + set + { + this.OnstatecodeChanging(value); + this._statecode = value; + this.OnstatecodeChanged(); + this.OnPropertyChanged("statecode"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _statecode; + partial void OnstatecodeChanging(global::System.Nullable value); + partial void OnstatecodeChanged(); + /// + /// There are no comments for Property spd_name in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual string spd_name + { + get + { + return this._spd_name; + } + set + { + this.Onspd_nameChanging(value); + this._spd_name = value; + this.Onspd_nameChanged(); + this.OnPropertyChanged("spd_name"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private string _spd_name; + partial void Onspd_nameChanging(string value); + partial void Onspd_nameChanged(); + /// + /// There are no comments for Property modifiedon in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable modifiedon + { + get + { + return this._modifiedon; + } + set + { + this.OnmodifiedonChanging(value); + this._modifiedon = value; + this.OnmodifiedonChanged(); + this.OnPropertyChanged("modifiedon"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _modifiedon; + partial void OnmodifiedonChanging(global::System.Nullable value); + partial void OnmodifiedonChanged(); + /// + /// There are no comments for Property importsequencenumber in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable importsequencenumber + { + get + { + return this._importsequencenumber; + } + set + { + this.OnimportsequencenumberChanging(value); + this._importsequencenumber = value; + this.OnimportsequencenumberChanged(); + this.OnPropertyChanged("importsequencenumber"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _importsequencenumber; + partial void OnimportsequencenumberChanging(global::System.Nullable value); + partial void OnimportsequencenumberChanged(); + /// + /// There are no comments for Property createdon in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable createdon + { + get + { + return this._createdon; + } + set + { + this.OncreatedonChanging(value); + this._createdon = value; + this.OncreatedonChanged(); + this.OnPropertyChanged("createdon"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _createdon; + partial void OncreatedonChanging(global::System.Nullable value); + partial void OncreatedonChanged(); + /// + /// There are no comments for Property _organizationid_value in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable _organizationid_value + { + get + { + return this.__organizationid_value; + } + set + { + this.On_organizationid_valueChanging(value); + this.__organizationid_value = value; + this.On_organizationid_valueChanged(); + this.OnPropertyChanged("_organizationid_value"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable __organizationid_value; + partial void On_organizationid_valueChanging(global::System.Nullable value); + partial void On_organizationid_valueChanged(); + /// + /// There are no comments for Property _createdonbehalfby_value in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable _createdonbehalfby_value + { + get + { + return this.__createdonbehalfby_value; + } + set + { + this.On_createdonbehalfby_valueChanging(value); + this.__createdonbehalfby_value = value; + this.On_createdonbehalfby_valueChanged(); + this.OnPropertyChanged("_createdonbehalfby_value"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable __createdonbehalfby_value; + partial void On_createdonbehalfby_valueChanging(global::System.Nullable value); + partial void On_createdonbehalfby_valueChanged(); + /// + /// There are no comments for Property _modifiedonbehalfby_value in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::System.Nullable completedon + public virtual global::System.Nullable _modifiedonbehalfby_value { get { - return this._completedon; + return this.__modifiedonbehalfby_value; } set { - this.OncompletedonChanging(value); - this._completedon = value; - this.OncompletedonChanged(); - this.OnPropertyChanged("completedon"); + this.On_modifiedonbehalfby_valueChanging(value); + this.__modifiedonbehalfby_value = value; + this.On_modifiedonbehalfby_valueChanged(); + this.OnPropertyChanged("_modifiedonbehalfby_value"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::System.Nullable _completedon; - partial void OncompletedonChanging(global::System.Nullable value); - partial void OncompletedonChanged(); + private global::System.Nullable __modifiedonbehalfby_value; + partial void On_modifiedonbehalfby_valueChanging(global::System.Nullable value); + partial void On_modifiedonbehalfby_valueChanged(); + /// + /// There are no comments for Property spd_servicetypegroupid in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable spd_servicetypegroupid + { + get + { + return this._spd_servicetypegroupid; + } + set + { + this.Onspd_servicetypegroupidChanging(value); + this._spd_servicetypegroupid = value; + this.Onspd_servicetypegroupidChanged(); + this.OnPropertyChanged("spd_servicetypegroupid"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _spd_servicetypegroupid; + partial void Onspd_servicetypegroupidChanging(global::System.Nullable value); + partial void Onspd_servicetypegroupidChanged(); + /// + /// There are no comments for Property utcconversiontimezonecode in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable utcconversiontimezonecode + { + get + { + return this._utcconversiontimezonecode; + } + set + { + this.OnutcconversiontimezonecodeChanging(value); + this._utcconversiontimezonecode = value; + this.OnutcconversiontimezonecodeChanged(); + this.OnPropertyChanged("utcconversiontimezonecode"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _utcconversiontimezonecode; + partial void OnutcconversiontimezonecodeChanging(global::System.Nullable value); + partial void OnutcconversiontimezonecodeChanged(); + /// + /// There are no comments for Property _createdby_value in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable _createdby_value + { + get + { + return this.__createdby_value; + } + set + { + this.On_createdby_valueChanging(value); + this.__createdby_value = value; + this.On_createdby_valueChanged(); + this.OnPropertyChanged("_createdby_value"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable __createdby_value; + partial void On_createdby_valueChanging(global::System.Nullable value); + partial void On_createdby_valueChanged(); + /// + /// There are no comments for Property statuscode in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable statuscode + { + get + { + return this._statuscode; + } + set + { + this.OnstatuscodeChanging(value); + this._statuscode = value; + this.OnstatuscodeChanged(); + this.OnPropertyChanged("statuscode"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _statuscode; + partial void OnstatuscodeChanging(global::System.Nullable value); + partial void OnstatuscodeChanged(); + /// + /// There are no comments for Property overriddencreatedon in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable overriddencreatedon + { + get + { + return this._overriddencreatedon; + } + set + { + this.OnoverriddencreatedonChanging(value); + this._overriddencreatedon = value; + this.OnoverriddencreatedonChanged(); + this.OnPropertyChanged("overriddencreatedon"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _overriddencreatedon; + partial void OnoverriddencreatedonChanging(global::System.Nullable value); + partial void OnoverriddencreatedonChanged(); + /// + /// There are no comments for Property _modifiedby_value in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable _modifiedby_value + { + get + { + return this.__modifiedby_value; + } + set + { + this.On_modifiedby_valueChanging(value); + this.__modifiedby_value = value; + this.On_modifiedby_valueChanged(); + this.OnPropertyChanged("_modifiedby_value"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable __modifiedby_value; + partial void On_modifiedby_valueChanging(global::System.Nullable value); + partial void On_modifiedby_valueChanged(); /// /// There are no comments for Property createdby in the schema. /// @@ -756831,228 +758425,181 @@ public virtual string traversedpath partial void OnorganizationidChanging(global::Microsoft.Dynamics.CRM.organization value); partial void OnorganizationidChanged(); /// - /// There are no comments for Property activestageid in the schema. + /// There are no comments for Property spd_servicetypegroup_SyncErrors in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "activestageid is required.")] - public virtual global::Microsoft.Dynamics.CRM.processstage activestageid + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_servicetypegroup_SyncErrors { get { - return this._activestageid; + return this._spd_servicetypegroup_SyncErrors; } set { - this.OnactivestageidChanging(value); - this._activestageid = value; - this.OnactivestageidChanged(); - this.OnPropertyChanged("activestageid"); + this.Onspd_servicetypegroup_SyncErrorsChanging(value); + this._spd_servicetypegroup_SyncErrors = value; + this.Onspd_servicetypegroup_SyncErrorsChanged(); + this.OnPropertyChanged("spd_servicetypegroup_SyncErrors"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.Dynamics.CRM.processstage _activestageid; - partial void OnactivestageidChanging(global::Microsoft.Dynamics.CRM.processstage value); - partial void OnactivestageidChanged(); + private global::Microsoft.OData.Client.DataServiceCollection _spd_servicetypegroup_SyncErrors = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_servicetypegroup_SyncErrorsChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_servicetypegroup_SyncErrorsChanged(); /// - /// There are no comments for Property processid in the schema. + /// There are no comments for Property spd_servicetypegroup_AsyncOperations in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "processid is required.")] - public virtual global::Microsoft.Dynamics.CRM.workflow processid + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_servicetypegroup_AsyncOperations { get { - return this._processid; + return this._spd_servicetypegroup_AsyncOperations; } set { - this.OnprocessidChanging(value); - this._processid = value; - this.OnprocessidChanged(); - this.OnPropertyChanged("processid"); + this.Onspd_servicetypegroup_AsyncOperationsChanging(value); + this._spd_servicetypegroup_AsyncOperations = value; + this.Onspd_servicetypegroup_AsyncOperationsChanged(); + this.OnPropertyChanged("spd_servicetypegroup_AsyncOperations"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.Dynamics.CRM.workflow _processid; - partial void OnprocessidChanging(global::Microsoft.Dynamics.CRM.workflow value); - partial void OnprocessidChanged(); + private global::Microsoft.OData.Client.DataServiceCollection _spd_servicetypegroup_AsyncOperations = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_servicetypegroup_AsyncOperationsChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_servicetypegroup_AsyncOperationsChanged(); /// - /// There are no comments for Property spd_securityservicescreening_SyncErrors in the schema. + /// There are no comments for Property spd_servicetypegroup_MailboxTrackingFolders in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_SyncErrors + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_servicetypegroup_MailboxTrackingFolders { get { - return this._spd_securityservicescreening_SyncErrors; + return this._spd_servicetypegroup_MailboxTrackingFolders; } set { - this.Onspd_securityservicescreening_SyncErrorsChanging(value); - this._spd_securityservicescreening_SyncErrors = value; - this.Onspd_securityservicescreening_SyncErrorsChanged(); - this.OnPropertyChanged("spd_securityservicescreening_SyncErrors"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_SyncErrors = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); - partial void Onspd_securityservicescreening_SyncErrorsChanging(global::Microsoft.OData.Client.DataServiceCollection value); - partial void Onspd_securityservicescreening_SyncErrorsChanged(); - /// - /// There are no comments for Property spd_securityservicescreening_AsyncOperations in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_AsyncOperations - { - get - { - return this._spd_securityservicescreening_AsyncOperations; - } - set - { - this.Onspd_securityservicescreening_AsyncOperationsChanging(value); - this._spd_securityservicescreening_AsyncOperations = value; - this.Onspd_securityservicescreening_AsyncOperationsChanged(); - this.OnPropertyChanged("spd_securityservicescreening_AsyncOperations"); - } - } - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_AsyncOperations = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); - partial void Onspd_securityservicescreening_AsyncOperationsChanging(global::Microsoft.OData.Client.DataServiceCollection value); - partial void Onspd_securityservicescreening_AsyncOperationsChanged(); - /// - /// There are no comments for Property spd_securityservicescreening_WorkflowLogs in the schema. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_WorkflowLogs - { - get - { - return this._spd_securityservicescreening_WorkflowLogs; - } - set - { - this.Onspd_securityservicescreening_WorkflowLogsChanging(value); - this._spd_securityservicescreening_WorkflowLogs = value; - this.Onspd_securityservicescreening_WorkflowLogsChanged(); - this.OnPropertyChanged("spd_securityservicescreening_WorkflowLogs"); + this.Onspd_servicetypegroup_MailboxTrackingFoldersChanging(value); + this._spd_servicetypegroup_MailboxTrackingFolders = value; + this.Onspd_servicetypegroup_MailboxTrackingFoldersChanged(); + this.OnPropertyChanged("spd_servicetypegroup_MailboxTrackingFolders"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_WorkflowLogs = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); - partial void Onspd_securityservicescreening_WorkflowLogsChanging(global::Microsoft.OData.Client.DataServiceCollection value); - partial void Onspd_securityservicescreening_WorkflowLogsChanged(); + private global::Microsoft.OData.Client.DataServiceCollection _spd_servicetypegroup_MailboxTrackingFolders = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_servicetypegroup_MailboxTrackingFoldersChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_servicetypegroup_MailboxTrackingFoldersChanged(); /// - /// There are no comments for Property spd_securityservicescreening_MailboxTrackingFolders in the schema. + /// There are no comments for Property spd_servicetypegroup_ProcessSession in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_MailboxTrackingFolders + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_servicetypegroup_ProcessSession { get { - return this._spd_securityservicescreening_MailboxTrackingFolders; + return this._spd_servicetypegroup_ProcessSession; } set { - this.Onspd_securityservicescreening_MailboxTrackingFoldersChanging(value); - this._spd_securityservicescreening_MailboxTrackingFolders = value; - this.Onspd_securityservicescreening_MailboxTrackingFoldersChanged(); - this.OnPropertyChanged("spd_securityservicescreening_MailboxTrackingFolders"); + this.Onspd_servicetypegroup_ProcessSessionChanging(value); + this._spd_servicetypegroup_ProcessSession = value; + this.Onspd_servicetypegroup_ProcessSessionChanged(); + this.OnPropertyChanged("spd_servicetypegroup_ProcessSession"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_MailboxTrackingFolders = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); - partial void Onspd_securityservicescreening_MailboxTrackingFoldersChanging(global::Microsoft.OData.Client.DataServiceCollection value); - partial void Onspd_securityservicescreening_MailboxTrackingFoldersChanged(); + private global::Microsoft.OData.Client.DataServiceCollection _spd_servicetypegroup_ProcessSession = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_servicetypegroup_ProcessSessionChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_servicetypegroup_ProcessSessionChanged(); /// - /// There are no comments for Property spd_securityservicescreening_ProcessSession in the schema. + /// There are no comments for Property spd_servicetypegroup_BulkDeleteFailures in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_ProcessSession + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_servicetypegroup_BulkDeleteFailures { get { - return this._spd_securityservicescreening_ProcessSession; + return this._spd_servicetypegroup_BulkDeleteFailures; } set { - this.Onspd_securityservicescreening_ProcessSessionChanging(value); - this._spd_securityservicescreening_ProcessSession = value; - this.Onspd_securityservicescreening_ProcessSessionChanged(); - this.OnPropertyChanged("spd_securityservicescreening_ProcessSession"); + this.Onspd_servicetypegroup_BulkDeleteFailuresChanging(value); + this._spd_servicetypegroup_BulkDeleteFailures = value; + this.Onspd_servicetypegroup_BulkDeleteFailuresChanged(); + this.OnPropertyChanged("spd_servicetypegroup_BulkDeleteFailures"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_ProcessSession = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); - partial void Onspd_securityservicescreening_ProcessSessionChanging(global::Microsoft.OData.Client.DataServiceCollection value); - partial void Onspd_securityservicescreening_ProcessSessionChanged(); + private global::Microsoft.OData.Client.DataServiceCollection _spd_servicetypegroup_BulkDeleteFailures = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_servicetypegroup_BulkDeleteFailuresChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_servicetypegroup_BulkDeleteFailuresChanged(); /// - /// There are no comments for Property spd_securityservicescreening_BulkDeleteFailures in the schema. + /// There are no comments for Property spd_servicetypegroup_PrincipalObjectAttributeAccesses in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_BulkDeleteFailures + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_servicetypegroup_PrincipalObjectAttributeAccesses { get { - return this._spd_securityservicescreening_BulkDeleteFailures; + return this._spd_servicetypegroup_PrincipalObjectAttributeAccesses; } set { - this.Onspd_securityservicescreening_BulkDeleteFailuresChanging(value); - this._spd_securityservicescreening_BulkDeleteFailures = value; - this.Onspd_securityservicescreening_BulkDeleteFailuresChanged(); - this.OnPropertyChanged("spd_securityservicescreening_BulkDeleteFailures"); + this.Onspd_servicetypegroup_PrincipalObjectAttributeAccessesChanging(value); + this._spd_servicetypegroup_PrincipalObjectAttributeAccesses = value; + this.Onspd_servicetypegroup_PrincipalObjectAttributeAccessesChanged(); + this.OnPropertyChanged("spd_servicetypegroup_PrincipalObjectAttributeAccesses"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_BulkDeleteFailures = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); - partial void Onspd_securityservicescreening_BulkDeleteFailuresChanging(global::Microsoft.OData.Client.DataServiceCollection value); - partial void Onspd_securityservicescreening_BulkDeleteFailuresChanged(); + private global::Microsoft.OData.Client.DataServiceCollection _spd_servicetypegroup_PrincipalObjectAttributeAccesses = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_servicetypegroup_PrincipalObjectAttributeAccessesChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_servicetypegroup_PrincipalObjectAttributeAccessesChanged(); /// - /// There are no comments for Property spd_securityservicescreening_PrincipalObjectAttributeAccesses in the schema. + /// There are no comments for Property spd_servicetypegroup_spd_servicetype in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - public virtual global::Microsoft.OData.Client.DataServiceCollection spd_securityservicescreening_PrincipalObjectAttributeAccesses + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_servicetypegroup_spd_servicetype { get { - return this._spd_securityservicescreening_PrincipalObjectAttributeAccesses; + return this._spd_servicetypegroup_spd_servicetype; } set { - this.Onspd_securityservicescreening_PrincipalObjectAttributeAccessesChanging(value); - this._spd_securityservicescreening_PrincipalObjectAttributeAccesses = value; - this.Onspd_securityservicescreening_PrincipalObjectAttributeAccessesChanged(); - this.OnPropertyChanged("spd_securityservicescreening_PrincipalObjectAttributeAccesses"); + this.Onspd_servicetypegroup_spd_servicetypeChanging(value); + this._spd_servicetypegroup_spd_servicetype = value; + this.Onspd_servicetypegroup_spd_servicetypeChanged(); + this.OnPropertyChanged("spd_servicetypegroup_spd_servicetype"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.OData.Client.DataServiceCollection _spd_securityservicescreening_PrincipalObjectAttributeAccesses = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); - partial void Onspd_securityservicescreening_PrincipalObjectAttributeAccessesChanging(global::Microsoft.OData.Client.DataServiceCollection value); - partial void Onspd_securityservicescreening_PrincipalObjectAttributeAccessesChanged(); + private global::Microsoft.OData.Client.DataServiceCollection _spd_servicetypegroup_spd_servicetype = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_servicetypegroup_spd_servicetypeChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_servicetypegroup_spd_servicetypeChanged(); /// - /// There are no comments for Property bpf_incidentid in the schema. + /// There are no comments for Property spd_servicetypegroup_spd_cpicbatch in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "bpf_incidentid is required.")] - public virtual global::Microsoft.Dynamics.CRM.incident bpf_incidentid + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_servicetypegroup_spd_cpicbatch { get { - return this._bpf_incidentid; + return this._spd_servicetypegroup_spd_cpicbatch; } set { - this.Onbpf_incidentidChanging(value); - this._bpf_incidentid = value; - this.Onbpf_incidentidChanged(); - this.OnPropertyChanged("bpf_incidentid"); + this.Onspd_servicetypegroup_spd_cpicbatchChanging(value); + this._spd_servicetypegroup_spd_cpicbatch = value; + this.Onspd_servicetypegroup_spd_cpicbatchChanged(); + this.OnPropertyChanged("spd_servicetypegroup_spd_cpicbatch"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] - private global::Microsoft.Dynamics.CRM.incident _bpf_incidentid; - partial void Onbpf_incidentidChanging(global::Microsoft.Dynamics.CRM.incident value); - partial void Onbpf_incidentidChanged(); + private global::Microsoft.OData.Client.DataServiceCollection _spd_servicetypegroup_spd_cpicbatch = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_servicetypegroup_spd_cpicbatchChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_servicetypegroup_spd_cpicbatchChanged(); } /// /// There are no comments for spd_servicetypeSingle in the schema. @@ -757623,6 +759170,27 @@ public spd_servicetypeSingle(global::Microsoft.OData.Client.DataServiceQuerySing } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.OData.Client.DataServiceQuery _spd_servicetype_spd_outcome_ServiceType; + /// + /// There are no comments for spd_servicetypegroup_spd_servicetype in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery spd_servicetypegroup_spd_servicetype + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._spd_servicetypegroup_spd_servicetype == null)) + { + this._spd_servicetypegroup_spd_servicetype = Context.CreateQuery(GetPath("spd_servicetypegroup_spd_servicetype")); + } + return this._spd_servicetypegroup_spd_servicetype; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _spd_servicetypegroup_spd_servicetype; } /// /// There are no comments for spd_servicetype in the schema. @@ -758812,6 +760380,28 @@ public virtual string spd_servicetypename private global::Microsoft.OData.Client.DataServiceCollection _spd_servicetype_spd_outcome_ServiceType = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); partial void Onspd_servicetype_spd_outcome_ServiceTypeChanging(global::Microsoft.OData.Client.DataServiceCollection value); partial void Onspd_servicetype_spd_outcome_ServiceTypeChanged(); + /// + /// There are no comments for Property spd_servicetypegroup_spd_servicetype in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection spd_servicetypegroup_spd_servicetype + { + get + { + return this._spd_servicetypegroup_spd_servicetype; + } + set + { + this.Onspd_servicetypegroup_spd_servicetypeChanging(value); + this._spd_servicetypegroup_spd_servicetype = value; + this.Onspd_servicetypegroup_spd_servicetypeChanged(); + this.OnPropertyChanged("spd_servicetypegroup_spd_servicetype"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _spd_servicetypegroup_spd_servicetype = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onspd_servicetypegroup_spd_servicetypeChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onspd_servicetypegroup_spd_servicetypeChanged(); } /// /// There are no comments for spd_spd_complaint_spd_actSingle in the schema. @@ -774608,6 +776198,27 @@ public syncerrorSingle(global::Microsoft.OData.Client.DataServiceQuerySingle + /// There are no comments for regardingobjectid_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle regardingobjectid_spd_servicetypegroup + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._regardingobjectid_spd_servicetypegroup == null)) + { + this._regardingobjectid_spd_servicetypegroup = new global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle(this.Context, GetPath("regardingobjectid_spd_servicetypegroup")); + } + return this._regardingobjectid_spd_servicetypegroup; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle _regardingobjectid_spd_servicetypegroup; } /// /// There are no comments for syncerror in the schema. @@ -774934,6 +776545,7 @@ public partial class syncerror : crmbaseentity /// Initial value of regardingobjectid_spd_dogtrainingschool. /// Initial value of regardingobjectid_spd_guidedogsservicedogs. /// Initial value of regardingobjectid_spd_ranote. + /// Initial value of regardingobjectid_spd_servicetypegroup. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public static syncerror Createsyncerror(global::Microsoft.Dynamics.CRM.expiredprocess regardingobjectid_ExpiredProcess_syncerror, global::Microsoft.Dynamics.CRM.email regardingobjectid_email_syncerror, @@ -775246,7 +776858,8 @@ public static syncerror Createsyncerror(global::Microsoft.Dynamics.CRM.expiredpr global::Microsoft.Dynamics.CRM.spd_dogteam regardingobjectid_spd_dogteam, global::Microsoft.Dynamics.CRM.spd_dogtrainingschool regardingobjectid_spd_dogtrainingschool, global::Microsoft.Dynamics.CRM.spd_guidedogsservicedogs regardingobjectid_spd_guidedogsservicedogs, - global::Microsoft.Dynamics.CRM.spd_ranote regardingobjectid_spd_ranote) + global::Microsoft.Dynamics.CRM.spd_ranote regardingobjectid_spd_ranote, + global::Microsoft.Dynamics.CRM.spd_servicetypegroup regardingobjectid_spd_servicetypegroup) { syncerror syncerror = new syncerror(); if ((regardingobjectid_ExpiredProcess_syncerror == null)) @@ -776809,6 +778422,11 @@ public static syncerror Createsyncerror(global::Microsoft.Dynamics.CRM.expiredpr throw new global::System.ArgumentNullException("regardingobjectid_spd_ranote"); } syncerror.regardingobjectid_spd_ranote = regardingobjectid_spd_ranote; + if ((regardingobjectid_spd_servicetypegroup == null)) + { + throw new global::System.ArgumentNullException("regardingobjectid_spd_servicetypegroup"); + } + syncerror.regardingobjectid_spd_servicetypegroup = regardingobjectid_spd_servicetypegroup; return syncerror; } /// @@ -784559,6 +786177,29 @@ public virtual string name private global::Microsoft.Dynamics.CRM.spd_ranote _regardingobjectid_spd_ranote; partial void Onregardingobjectid_spd_ranoteChanging(global::Microsoft.Dynamics.CRM.spd_ranote value); partial void Onregardingobjectid_spd_ranoteChanged(); + /// + /// There are no comments for Property regardingobjectid_spd_servicetypegroup in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + [global::System.ComponentModel.DataAnnotations.RequiredAttribute(ErrorMessage = "regardingobjectid_spd_servicetypegroup is required.")] + public virtual global::Microsoft.Dynamics.CRM.spd_servicetypegroup regardingobjectid_spd_servicetypegroup + { + get + { + return this._regardingobjectid_spd_servicetypegroup; + } + set + { + this.Onregardingobjectid_spd_servicetypegroupChanging(value); + this._regardingobjectid_spd_servicetypegroup = value; + this.Onregardingobjectid_spd_servicetypegroupChanged(); + this.OnPropertyChanged("regardingobjectid_spd_servicetypegroup"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.Dynamics.CRM.spd_servicetypegroup _regardingobjectid_spd_servicetypegroup; + partial void Onregardingobjectid_spd_servicetypegroupChanging(global::Microsoft.Dynamics.CRM.spd_servicetypegroup value); + partial void Onregardingobjectid_spd_servicetypegroupChanged(); } /// /// There are no comments for systemformSingle in the schema. @@ -821291,6 +822932,90 @@ public systemuserSingle(global::Microsoft.OData.Client.DataServiceQuerySingle _user_spd_ranote; /// + /// There are no comments for lk_spd_servicetypegroup_createdby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery lk_spd_servicetypegroup_createdby + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._lk_spd_servicetypegroup_createdby == null)) + { + this._lk_spd_servicetypegroup_createdby = Context.CreateQuery(GetPath("lk_spd_servicetypegroup_createdby")); + } + return this._lk_spd_servicetypegroup_createdby; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _lk_spd_servicetypegroup_createdby; + /// + /// There are no comments for lk_spd_servicetypegroup_createdonbehalfby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery lk_spd_servicetypegroup_createdonbehalfby + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._lk_spd_servicetypegroup_createdonbehalfby == null)) + { + this._lk_spd_servicetypegroup_createdonbehalfby = Context.CreateQuery(GetPath("lk_spd_servicetypegroup_createdonbehalfby")); + } + return this._lk_spd_servicetypegroup_createdonbehalfby; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _lk_spd_servicetypegroup_createdonbehalfby; + /// + /// There are no comments for lk_spd_servicetypegroup_modifiedby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery lk_spd_servicetypegroup_modifiedby + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._lk_spd_servicetypegroup_modifiedby == null)) + { + this._lk_spd_servicetypegroup_modifiedby = Context.CreateQuery(GetPath("lk_spd_servicetypegroup_modifiedby")); + } + return this._lk_spd_servicetypegroup_modifiedby; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _lk_spd_servicetypegroup_modifiedby; + /// + /// There are no comments for lk_spd_servicetypegroup_modifiedonbehalfby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceQuery lk_spd_servicetypegroup_modifiedonbehalfby + { + get + { + if (!this.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + if ((this._lk_spd_servicetypegroup_modifiedonbehalfby == null)) + { + this._lk_spd_servicetypegroup_modifiedonbehalfby = Context.CreateQuery(GetPath("lk_spd_servicetypegroup_modifiedonbehalfby")); + } + return this._lk_spd_servicetypegroup_modifiedonbehalfby; + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceQuery _lk_spd_servicetypegroup_modifiedonbehalfby; + /// /// There are no comments for owner_exchangesyncidmapping in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] @@ -865361,6 +867086,94 @@ public virtual string domainname partial void Onuser_spd_ranoteChanging(global::Microsoft.OData.Client.DataServiceCollection value); partial void Onuser_spd_ranoteChanged(); /// + /// There are no comments for Property lk_spd_servicetypegroup_createdby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection lk_spd_servicetypegroup_createdby + { + get + { + return this._lk_spd_servicetypegroup_createdby; + } + set + { + this.Onlk_spd_servicetypegroup_createdbyChanging(value); + this._lk_spd_servicetypegroup_createdby = value; + this.Onlk_spd_servicetypegroup_createdbyChanged(); + this.OnPropertyChanged("lk_spd_servicetypegroup_createdby"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _lk_spd_servicetypegroup_createdby = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onlk_spd_servicetypegroup_createdbyChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onlk_spd_servicetypegroup_createdbyChanged(); + /// + /// There are no comments for Property lk_spd_servicetypegroup_createdonbehalfby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection lk_spd_servicetypegroup_createdonbehalfby + { + get + { + return this._lk_spd_servicetypegroup_createdonbehalfby; + } + set + { + this.Onlk_spd_servicetypegroup_createdonbehalfbyChanging(value); + this._lk_spd_servicetypegroup_createdonbehalfby = value; + this.Onlk_spd_servicetypegroup_createdonbehalfbyChanged(); + this.OnPropertyChanged("lk_spd_servicetypegroup_createdonbehalfby"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _lk_spd_servicetypegroup_createdonbehalfby = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onlk_spd_servicetypegroup_createdonbehalfbyChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onlk_spd_servicetypegroup_createdonbehalfbyChanged(); + /// + /// There are no comments for Property lk_spd_servicetypegroup_modifiedby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection lk_spd_servicetypegroup_modifiedby + { + get + { + return this._lk_spd_servicetypegroup_modifiedby; + } + set + { + this.Onlk_spd_servicetypegroup_modifiedbyChanging(value); + this._lk_spd_servicetypegroup_modifiedby = value; + this.Onlk_spd_servicetypegroup_modifiedbyChanged(); + this.OnPropertyChanged("lk_spd_servicetypegroup_modifiedby"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _lk_spd_servicetypegroup_modifiedby = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onlk_spd_servicetypegroup_modifiedbyChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onlk_spd_servicetypegroup_modifiedbyChanged(); + /// + /// There are no comments for Property lk_spd_servicetypegroup_modifiedonbehalfby in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::Microsoft.OData.Client.DataServiceCollection lk_spd_servicetypegroup_modifiedonbehalfby + { + get + { + return this._lk_spd_servicetypegroup_modifiedonbehalfby; + } + set + { + this.Onlk_spd_servicetypegroup_modifiedonbehalfbyChanging(value); + this._lk_spd_servicetypegroup_modifiedonbehalfby = value; + this.Onlk_spd_servicetypegroup_modifiedonbehalfbyChanged(); + this.OnPropertyChanged("lk_spd_servicetypegroup_modifiedonbehalfby"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::Microsoft.OData.Client.DataServiceCollection _lk_spd_servicetypegroup_modifiedonbehalfby = new global::Microsoft.OData.Client.DataServiceCollection(null, global::Microsoft.OData.Client.TrackingMode.None); + partial void Onlk_spd_servicetypegroup_modifiedonbehalfbyChanging(global::Microsoft.OData.Client.DataServiceCollection value); + partial void Onlk_spd_servicetypegroup_modifiedonbehalfbyChanged(); + /// /// There are no comments for RetrieveAllChildUsersSystemUser in the schema. /// public virtual global::Microsoft.OData.Client.DataServiceQuery RetrieveAllChildUsersSystemUser() @@ -935167,6 +936980,73 @@ protected virtual void OnPropertyChanged(string property) } } /// + /// There are no comments for spd_MoveNextStageResponse in the schema. + /// + public partial class spd_MoveNextStageResponse : global::System.ComponentModel.INotifyPropertyChanged + { + /// + /// There are no comments for Property IsSuccess in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual global::System.Nullable IsSuccess + { + get + { + return this._IsSuccess; + } + set + { + this.OnIsSuccessChanging(value); + this._IsSuccess = value; + this.OnIsSuccessChanged(); + this.OnPropertyChanged("IsSuccess"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private global::System.Nullable _IsSuccess; + partial void OnIsSuccessChanging(global::System.Nullable value); + partial void OnIsSuccessChanged(); + /// + /// There are no comments for Property Result in the schema. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public virtual string Result + { + get + { + return this._Result; + } + set + { + this.OnResultChanging(value); + this._Result = value; + this.OnResultChanged(); + this.OnPropertyChanged("Result"); + } + } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + private string _Result; + partial void OnResultChanging(string value); + partial void OnResultChanged(); + /// + /// This event is raised when the value of the property is changed + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + /// + /// The value of the property is changed + /// + /// property name + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] + protected virtual void OnPropertyChanged(string property) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property)); + } + } + } + /// /// There are no comments for spd_OrgMonthlyReportResponse in the schema. /// public partial class spd_OrgMonthlyReportResponse : global::System.ComponentModel.INotifyPropertyChanged @@ -991541,6 +993421,70 @@ public static class ExtensionMethods return new global::Microsoft.Dynamics.CRM.spd_securityservicescreeningSingle(_source.Context, query.GetPath(null)); } /// + /// Get an entity of type global::Microsoft.Dynamics.CRM.spd_servicetypegroup_spd_servicetype as global::Microsoft.Dynamics.CRM.spd_servicetypegroup_spd_servicetypeSingle specified by key from an entity set + /// + /// source entity set + /// dictionary with the names and values of keys + public static global::Microsoft.Dynamics.CRM.spd_servicetypegroup_spd_servicetypeSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery _source, global::System.Collections.Generic.IDictionary _keys) + { + return new global::Microsoft.Dynamics.CRM.spd_servicetypegroup_spd_servicetypeSingle(_source.Context, _source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(_source.Context, _keys))); + } + /// + /// Get an entity of type global::Microsoft.Dynamics.CRM.spd_servicetypegroup_spd_servicetype as global::Microsoft.Dynamics.CRM.spd_servicetypegroup_spd_servicetypeSingle specified by key from an entity set + /// + /// source entity set + /// The value of spd_servicetypegroup_spd_servicetypeid + public static global::Microsoft.Dynamics.CRM.spd_servicetypegroup_spd_servicetypeSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery _source, + global::System.Nullable spd_servicetypegroup_spd_servicetypeid) + { + global::System.Collections.Generic.IDictionary _keys = new global::System.Collections.Generic.Dictionary + { + { "spd_servicetypegroup_spd_servicetypeid", spd_servicetypegroup_spd_servicetypeid } + }; + return new global::Microsoft.Dynamics.CRM.spd_servicetypegroup_spd_servicetypeSingle(_source.Context, _source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(_source.Context, _keys))); + } + /// + /// Cast an entity of type global::Microsoft.Dynamics.CRM.crmbaseentity to its derived type global::Microsoft.Dynamics.CRM.spd_servicetypegroup_spd_servicetype + /// + /// source entity + public static global::Microsoft.Dynamics.CRM.spd_servicetypegroup_spd_servicetypeSingle CastTospd_servicetypegroup_spd_servicetype(this global::Microsoft.OData.Client.DataServiceQuerySingle _source) + { + global::Microsoft.OData.Client.DataServiceQuerySingle query = _source.CastTo(); + return new global::Microsoft.Dynamics.CRM.spd_servicetypegroup_spd_servicetypeSingle(_source.Context, query.GetPath(null)); + } + /// + /// Get an entity of type global::Microsoft.Dynamics.CRM.spd_servicetypegroup as global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle specified by key from an entity set + /// + /// source entity set + /// dictionary with the names and values of keys + public static global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery _source, global::System.Collections.Generic.IDictionary _keys) + { + return new global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle(_source.Context, _source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(_source.Context, _keys))); + } + /// + /// Get an entity of type global::Microsoft.Dynamics.CRM.spd_servicetypegroup as global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle specified by key from an entity set + /// + /// source entity set + /// The value of spd_servicetypegroupid + public static global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery _source, + global::System.Nullable spd_servicetypegroupid) + { + global::System.Collections.Generic.IDictionary _keys = new global::System.Collections.Generic.Dictionary + { + { "spd_servicetypegroupid", spd_servicetypegroupid } + }; + return new global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle(_source.Context, _source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(_source.Context, _keys))); + } + /// + /// Cast an entity of type global::Microsoft.Dynamics.CRM.crmbaseentity to its derived type global::Microsoft.Dynamics.CRM.spd_servicetypegroup + /// + /// source entity + public static global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle CastTospd_servicetypegroup(this global::Microsoft.OData.Client.DataServiceQuerySingle _source) + { + global::Microsoft.OData.Client.DataServiceQuerySingle query = _source.CastTo(); + return new global::Microsoft.Dynamics.CRM.spd_servicetypegroupSingle(_source.Context, query.GetPath(null)); + } + /// /// Get an entity of type global::Microsoft.Dynamics.CRM.spd_servicetype as global::Microsoft.Dynamics.CRM.spd_servicetypeSingle specified by key from an entity set /// /// source entity set @@ -997876,6 +999820,18 @@ public static class ExtensionMethods return new global::Microsoft.OData.Client.DataServiceActionQuerySingle(_source.Context, _source.AppendRequestUri("Microsoft.Dynamics.CRM.spd_MonthlyInvoice")); } /// + /// There are no comments for spd_MoveNextStage in the schema. + /// + public static global::Microsoft.OData.Client.DataServiceActionQuerySingle spd_MoveNextStage(this global::Microsoft.OData.Client.DataServiceQuerySingle _source) + { + if (!_source.IsComposable) + { + throw new global::System.NotSupportedException("The previous function is not composable."); + } + + return new global::Microsoft.OData.Client.DataServiceActionQuerySingle(_source.Context, _source.AppendRequestUri("Microsoft.Dynamics.CRM.spd_MoveNextStage")); + } + /// /// There are no comments for spd_OrgMonthlyReport in the schema. /// public static global::Microsoft.OData.Client.DataServiceActionQuerySingle spd_OrgMonthlyReport(this global::Microsoft.OData.Client.DataServiceQuerySingle _source) diff --git a/src/Spd.Utilities.Dynamics/DynamicsContextLookupHelpers.cs b/src/Spd.Utilities.Dynamics/DynamicsContextLookupHelpers.cs index 4b7a902b01..6ed764f8a2 100644 --- a/src/Spd.Utilities.Dynamics/DynamicsContextLookupHelpers.cs +++ b/src/Spd.Utilities.Dynamics/DynamicsContextLookupHelpers.cs @@ -344,6 +344,24 @@ public static string LookupPositionKey(Guid? positionId) } } + public static async Task GetOrgRegistrationById(this DynamicsContext context, Guid orgRegistrationId, CancellationToken ct) + { + try + { + spd_orgregistration? registration = await context.spd_orgregistrations + .Where(a => a.spd_orgregistrationid == orgRegistrationId) + .SingleOrDefaultAsync(ct); + return registration; + } + catch (DataServiceQueryException ex) + { + if (ex.Response.StatusCode == 404) + return null; + else + throw; + } + } + public static async Task GetClearanceById(this DynamicsContext context, Guid clearanceId, CancellationToken ct) => await context.spd_clearances.Where(a => a.spd_clearanceid == clearanceId) .Where(a => a.statecode != DynamicsConstants.StateCode_Inactive) From d8e027ba6a83f75db1bd9206629de5a7593a198d Mon Sep 17 00:00:00 2001 From: peggy-quartech Date: Tue, 10 Jun 2025 09:31:34 -0700 Subject: [PATCH 07/11] more --- .../MDRARegistrationRepository.cs | 25 +++++++++++++++---- .../MDRARegistration/Mappings.cs | 4 +-- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/Spd.Resource.Repository/MDRARegistration/MDRARegistrationRepository.cs b/src/Spd.Resource.Repository/MDRARegistration/MDRARegistrationRepository.cs index d96bdcc537..7e06354a7d 100644 --- a/src/Spd.Resource.Repository/MDRARegistration/MDRARegistrationRepository.cs +++ b/src/Spd.Resource.Repository/MDRARegistration/MDRARegistrationRepository.cs @@ -1,19 +1,34 @@ using AutoMapper; +using Microsoft.Dynamics.CRM; using Spd.Utilities.Dynamics; namespace Spd.Resource.Repository.MDRARegistration; internal class MDRARegistrationRepository : IMDRARegistrationRepository { + protected readonly DynamicsContext _context; + private readonly IMapper _mapper; + public MDRARegistrationRepository(IDynamicsContextFactory ctx, IMapper mapper) - { } + { + this._context = ctx.CreateChangeOverwrite(); + this._mapper = mapper; + } public async Task CreateMDRARegistrationAsync(CreateMDRARegistrationCmd cmd, CancellationToken ct) { + spd_orgregistration registration = _mapper.Map(cmd); + _context.AddTospd_orgregistrations(registration); + LinkType(); + LinkTeam(_context, DynamicsConstants.Licensing_Client_Service_Team_Guid, registration); + await _context.SaveChangesAsync(ct); - //await _context.SaveChangesAsync(ct); - //if (app == null || contact == null) - // throw new ApiException(HttpStatusCode.InternalServerError); - return new MDRARegistrationResp(Guid.Empty); + return new MDRARegistrationResp(registration.spd_orgregistrationid.Value); } + public static void LinkTeam(DynamicsContext _context, string teamGuidStr, spd_orgregistration registration) + { + Guid teamGuid = Guid.Parse(teamGuidStr); + team? serviceTeam = _context.teams.Where(t => t.teamid == teamGuid).FirstOrDefault(); + _context.SetLink(registration, nameof(spd_orgregistration.owningteam), serviceTeam); + } } diff --git a/src/Spd.Resource.Repository/MDRARegistration/Mappings.cs b/src/Spd.Resource.Repository/MDRARegistration/Mappings.cs index 9bc3fdd149..2582120b4b 100644 --- a/src/Spd.Resource.Repository/MDRARegistration/Mappings.cs +++ b/src/Spd.Resource.Repository/MDRARegistration/Mappings.cs @@ -7,8 +7,8 @@ internal class Mappings : Profile public Mappings() { _ = CreateMap() - //.ForMember(d => d.spd_applicationid, opt => opt.MapFrom(s => Guid.NewGuid())) - //.ForMember(d => d.spd_licenceapplicationtype, opt => opt.MapFrom(s => SharedMappingFuncs.GetLicenceApplicationTypeOptionSet(s.ApplicationTypeCode))) + .ForMember(d => d.spd_orgregistrationid, opt => opt.MapFrom(s => Guid.NewGuid())) + .ForMember(d => d.spr_organizationtype, opt => opt.MapFrom(s => SharedMappingFuncs.GetLicenceApplicationTypeOptionSet(s.ApplicationTypeCode))) //.ForMember(d => d.spd_firstname, opt => opt.MapFrom(s => s.TrainerGivenName)) //.ForMember(d => d.spd_lastname, opt => opt.MapFrom(s => s.TrainerSurname)) //.ForMember(d => d.spd_middlename1, opt => opt.MapFrom(s => s.TrainerMiddleName)) From 54dd259e3e07a78f5097e5afe34e5b76fa76d3cd Mon Sep 17 00:00:00 2001 From: peggy-quartech Date: Tue, 10 Jun 2025 13:10:02 -0700 Subject: [PATCH 08/11] add saving --- .../MDRARegistrationManager.cs | 2 +- src/Spd.Manager.Licence/Mappings.cs | 3 +- .../Controllers/MDRAController.cs | 2 +- src/Spd.Resource.Repository/Configurer.cs | 2 + .../MDRARegistration/Contract.cs | 4 +- .../MDRARegistrationRepository.cs | 15 ++- .../MDRARegistration/Mappings.cs | 111 +++++++++++++----- src/Spd.Resource.Repository/SharedContract.cs | 16 +-- .../OData Service/Reference.cs | 2 +- .../DynamicsContextLookupHelpers.cs | 1 + 10 files changed, 116 insertions(+), 42 deletions(-) diff --git a/src/Spd.Manager.Licence/MDRARegistrationManager.cs b/src/Spd.Manager.Licence/MDRARegistrationManager.cs index 9ab593373d..bdc0ebf540 100644 --- a/src/Spd.Manager.Licence/MDRARegistrationManager.cs +++ b/src/Spd.Manager.Licence/MDRARegistrationManager.cs @@ -30,7 +30,7 @@ public MDRARegistrationManager(IMapper mapper, #region anonymous public async Task Handle(MDRARegistrationNewCommand cmd, CancellationToken ct) { - ValidateFilesForNewApp(cmd); + //ValidateFilesForNewApp(cmd); CreateMDRARegistrationCmd createCmd = _mapper.Map(cmd.SubmitRequest); MDRARegistrationResp respone = await _repository.CreateMDRARegistrationAsync(createCmd, ct); await UploadNewDocsAsync(cmd.LicAppFileInfos, respone.RegistrationId, ct); diff --git a/src/Spd.Manager.Licence/Mappings.cs b/src/Spd.Manager.Licence/Mappings.cs index 5ea22ad149..a8006c52a5 100644 --- a/src/Spd.Manager.Licence/Mappings.cs +++ b/src/Spd.Manager.Licence/Mappings.cs @@ -508,7 +508,8 @@ public Mappings() CreateMap(); CreateMap(); CreateMap(); - CreateMap(); + CreateMap() + .ForMember(d => d.Branches, opt => opt.MapFrom(s => GetBranchAddr(s.Branches))); } private static WorkerCategoryTypeEnum[] GetCategories(IEnumerable codes) diff --git a/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs b/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs index ee9449e6f7..9d3fd991f4 100644 --- a/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs +++ b/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs @@ -72,7 +72,7 @@ public MDRAController(IMediator mediator, //} SetValueToResponseCookie(SessionConstants.AnonymousApplicationSubmitKeyCode, String.Empty); SetValueToResponseCookie(SessionConstants.AnonymousApplicationContext, String.Empty); - return null; + return response; } #endregion anonymous diff --git a/src/Spd.Resource.Repository/Configurer.cs b/src/Spd.Resource.Repository/Configurer.cs index 94f89f78c3..69c1c84e2f 100644 --- a/src/Spd.Resource.Repository/Configurer.cs +++ b/src/Spd.Resource.Repository/Configurer.cs @@ -23,6 +23,7 @@ using Spd.Resource.Repository.LicApp; using Spd.Resource.Repository.Licence; using Spd.Resource.Repository.LicenceFee; +using Spd.Resource.Repository.MDRARegistration; using Spd.Resource.Repository.OptionSet; using Spd.Resource.Repository.Org; using Spd.Resource.Repository.Payment; @@ -80,5 +81,6 @@ public void Configure(ConfigurationContext configurationServices) configurationServices.Services.AddTransient(); configurationServices.Services.AddTransient(); configurationServices.Services.AddTransient(); + configurationServices.Services.AddTransient(); } } \ No newline at end of file diff --git a/src/Spd.Resource.Repository/MDRARegistration/Contract.cs b/src/Spd.Resource.Repository/MDRARegistration/Contract.cs index 68a33f2985..a763b428d7 100644 --- a/src/Spd.Resource.Repository/MDRARegistration/Contract.cs +++ b/src/Spd.Resource.Repository/MDRARegistration/Contract.cs @@ -1,4 +1,6 @@  +using Spd.Resource.Repository.Biz; + namespace Spd.Resource.Repository.MDRARegistration; public interface IMDRARegistrationRepository { @@ -23,7 +25,7 @@ public record CreateMDRARegistrationCmd public string? BizManagerMiddleName { get; set; } public string? BizPhoneNumber { get; set; } public string? BizEmailAddress { get; set; } - public IEnumerable? Branches { get; set; } + public IEnumerable? Branches { get; set; } public IEnumerable? DocumentKeyCodes { get; set; } } diff --git a/src/Spd.Resource.Repository/MDRARegistration/MDRARegistrationRepository.cs b/src/Spd.Resource.Repository/MDRARegistration/MDRARegistrationRepository.cs index 7e06354a7d..75fd19dea1 100644 --- a/src/Spd.Resource.Repository/MDRARegistration/MDRARegistrationRepository.cs +++ b/src/Spd.Resource.Repository/MDRARegistration/MDRARegistrationRepository.cs @@ -18,8 +18,15 @@ public async Task CreateMDRARegistrationAsync(CreateMDRARe { spd_orgregistration registration = _mapper.Map(cmd); _context.AddTospd_orgregistrations(registration); - LinkType(); + LinkType(_context, registration); LinkTeam(_context, DynamicsConstants.Licensing_Client_Service_Team_Guid, registration); + + List addrs = _mapper.Map>(cmd); + foreach (spd_address addr in addrs) + { + _context.AddTospd_addresses(addr); + _context.SetLink(addr, nameof(addr.spd_OrgRegistrationId), registration); + } await _context.SaveChangesAsync(ct); return new MDRARegistrationResp(registration.spd_orgregistrationid.Value); @@ -31,4 +38,10 @@ public static void LinkTeam(DynamicsContext _context, string teamGuidStr, spd_or team? serviceTeam = _context.teams.Where(t => t.teamid == teamGuid).FirstOrDefault(); _context.SetLink(registration, nameof(spd_orgregistration.owningteam), serviceTeam); } + + public static void LinkType(DynamicsContext _context, spd_orgregistration registration) + { + spd_organizationtype? type = _context.LookupOrganizationType("MetalDealerRecycler"); + _context.SetLink(registration, nameof(spd_orgregistration.spd_OrganizationTypeId), type); + } } diff --git a/src/Spd.Resource.Repository/MDRARegistration/Mappings.cs b/src/Spd.Resource.Repository/MDRARegistration/Mappings.cs index 2582120b4b..2d8a896283 100644 --- a/src/Spd.Resource.Repository/MDRARegistration/Mappings.cs +++ b/src/Spd.Resource.Repository/MDRARegistration/Mappings.cs @@ -1,5 +1,6 @@ using AutoMapper; using Microsoft.Dynamics.CRM; +using Spd.Utilities.Dynamics; namespace Spd.Resource.Repository.MDRARegistration; internal class Mappings : Profile @@ -8,36 +9,90 @@ public Mappings() { _ = CreateMap() .ForMember(d => d.spd_orgregistrationid, opt => opt.MapFrom(s => Guid.NewGuid())) - .ForMember(d => d.spr_organizationtype, opt => opt.MapFrom(s => SharedMappingFuncs.GetLicenceApplicationTypeOptionSet(s.ApplicationTypeCode))) - //.ForMember(d => d.spd_firstname, opt => opt.MapFrom(s => s.TrainerGivenName)) - //.ForMember(d => d.spd_lastname, opt => opt.MapFrom(s => s.TrainerSurname)) - //.ForMember(d => d.spd_middlename1, opt => opt.MapFrom(s => s.TrainerMiddleName)) - //.ForMember(d => d.spd_dateofbirth, opt => opt.MapFrom(s => SharedMappingFuncs.GetDateFromDateOnly(s.TrainerDateOfBirth))) - //.ForMember(d => d.spd_emailaddress1, opt => opt.MapFrom(s => s.TrainerEmailAddress)) - //.ForMember(d => d.spd_phonenumber, opt => opt.MapFrom(s => s.TrainerPhoneNumber)) - //.ForMember(d => d.spd_origin, opt => opt.MapFrom(s => SharedMappingFuncs.GetOptionset(s.ApplicationOriginTypeCode))) - //.ForMember(d => d.statecode, opt => opt.MapFrom(s => DynamicsConstants.StateCode_Active)) - //.ForMember(d => d.spd_addressline1, opt => opt.MapFrom(s => s.TrainerMailingAddress == null ? null : StringHelper.SanitizeEmpty(s.TrainerMailingAddress.AddressLine1))) - //.ForMember(d => d.spd_addressline2, opt => opt.MapFrom(s => s.TrainerMailingAddress == null ? null : StringHelper.SanitizeEmpty(s.TrainerMailingAddress.AddressLine2))) - //.ForMember(d => d.spd_city, opt => opt.MapFrom(s => s.TrainerMailingAddress == null ? null : StringHelper.SanitizeEmpty(s.TrainerMailingAddress.City))) - //.ForMember(d => d.spd_postalcode, opt => opt.MapFrom(s => s.TrainerMailingAddress == null ? null : StringHelper.SanitizeEmpty(s.TrainerMailingAddress.PostalCode))) - //.ForMember(d => d.spd_province, opt => opt.MapFrom(s => s.TrainerMailingAddress == null ? null : StringHelper.SanitizeEmpty(s.TrainerMailingAddress.Province))) - //.ForMember(d => d.spd_country, opt => opt.MapFrom(s => s.TrainerMailingAddress == null ? null : StringHelper.SanitizeEmpty(s.TrainerMailingAddress.Country))) - //.ForMember(d => d.spd_submittedon, opt => opt.Ignore()) - //.ForMember(d => d.spd_portalmodifiedon, opt => opt.MapFrom(s => DateTimeOffset.UtcNow)) - //.ForMember(d => d.spd_licenceterm, opt => opt.MapFrom(s => SharedMappingFuncs.GetOptionset(s.LicenceTermCode))) - //.ForMember(d => d.spd_declaration, opt => opt.MapFrom(s => s.AgreeToCompleteAndAccurate)) - //.ForMember(d => d.spd_consent, opt => opt.MapFrom(s => s.AgreeToCompleteAndAccurate)) - //.ForMember(d => d.spd_declarationdate, opt => opt.MapFrom(s => SharedMappingFuncs.GetDeclarationDate(s.AgreeToCompleteAndAccurate))) - //.ReverseMap() - //.ForMember(d => d.ServiceTypeCode, opt => opt.MapFrom(s => SharedMappingFuncs.GetServiceType(s._spd_servicetypeid_value))) - //.ForMember(d => d.ApplicationOriginTypeCode, opt => opt.MapFrom(s => SharedMappingFuncs.GetEnum(s.spd_origin))) - //.ForMember(d => d.ApplicationTypeCode, opt => opt.MapFrom(s => SharedMappingFuncs.GetLicenceApplicationTypeEnum(s.spd_licenceapplicationtype))) - //.ForMember(d => d.LicenceTermCode, opt => opt.MapFrom(s => SharedMappingFuncs.GetLicenceTermEnum(s.spd_licenceterm))) - //.ForMember(d => d.TrainerDateOfBirth, opt => opt.MapFrom(s => SharedMappingFuncs.GetDateOnly(s.spd_dateofbirth))) - //.ForMember(d => d.TrainerMailingAddress, opt => opt.MapFrom(s => SharedMappingFuncs.GetMailingAddressData(s))) + .ForMember(d => d.spd_applicationtype, opt => opt.MapFrom(s => SharedMappingFuncs.GetLicenceApplicationTypeOptionSet(s.ApplicationTypeCode))) + .ForMember(d => d.spd_authorizedcontactgivenname, opt => opt.MapFrom(s => $"{s.BizOwnerFirstName.Trim()} {s.BizOwnerMiddleName.Trim()}")) + .ForMember(d => d.spd_authorizedcontactsurname, opt => opt.MapFrom(s => s.BizOwnerLastName)) + .ForMember(d => d.spd_organizationlegalname, opt => opt.MapFrom(s => s.BizLegalName)) + .ForMember(d => d.spd_organizationname, opt => opt.MapFrom(s => s.BizTradeName)) + .ForMember(d => d.spd_email, opt => opt.MapFrom(s => s.BizEmailAddress)) + .ForMember(d => d.spd_phonenumber, opt => opt.MapFrom(s => s.BizPhoneNumber)) + .ForMember(d => d.spd_declaration, opt => opt.MapFrom(s => true)) + .ForMember(d => d.spd_street1, opt => opt.MapFrom(s => s.BizMailingAddress == null ? null : s.BizMailingAddress.AddressLine1)) + .ForMember(d => d.spd_street2, opt => opt.MapFrom(s => s.BizMailingAddress == null ? null : s.BizMailingAddress.AddressLine2)) + .ForMember(d => d.spd_city, opt => opt.MapFrom(s => s.BizMailingAddress == null ? null : s.BizMailingAddress.City)) + .ForMember(d => d.spd_province, opt => opt.MapFrom(s => s.BizMailingAddress == null ? null : s.BizMailingAddress.Province)) + .ForMember(d => d.spd_postalcode, opt => opt.MapFrom(s => s.BizMailingAddress == null ? null : s.BizMailingAddress.PostalCode)) + .ForMember(d => d.spd_country, opt => opt.MapFrom(s => s.BizMailingAddress == null ? null : s.BizMailingAddress.Country)) + .ReverseMap() + .ForMember(d => d.ApplicationTypeCode, opt => opt.MapFrom(s => SharedMappingFuncs.GetLicenceApplicationTypeEnum(s.spd_applicationtype))) + .ForMember(d => d.BizOwnerFirstName, opt => opt.MapFrom(s => s.spd_authorizedcontactgivenname)) //tbd + .ForMember(d => d.BizOwnerMiddleName, opt => opt.MapFrom(s => s.spd_authorizedcontactgivenname)) //tbd ; + CreateMap>() + .ConvertUsing((src, dest, context) => + { + var result = new List(); + + // Main Office + if (src.BizAddress != null) + { + result.Add(new spd_address + { + spd_addressid = Guid.NewGuid(), + spd_type = (int)AddressTypeOptionSet.MainOffice, + spd_branchmanagername = $"{src.BizManagerFirstName} {src.BizManagerMiddleName} {src.BizManagerLastName}".Trim(), + spd_branchphone = src.BizPhoneNumber, + spd_branchemail = src.BizEmailAddress, + spd_address1 = src.BizAddress.AddressLine1, + spd_address2 = src.BizAddress.AddressLine2, + spd_city = src.BizAddress.City, + spd_provincestate = src.BizAddress.Province, + spd_postalcode = src.BizAddress.PostalCode, + spd_country = src.BizAddress.Country + }); + } + + // Mailing Address + if (src.BizMailingAddress != null) + { + result.Add(new spd_address + { + spd_addressid = Guid.NewGuid(), + spd_type = (int)AddressTypeOptionSet.Mailing, + spd_address1 = src.BizMailingAddress.AddressLine1, + spd_address2 = src.BizMailingAddress.AddressLine2, + spd_city = src.BizMailingAddress.City, + spd_provincestate = src.BizMailingAddress.Province, + spd_postalcode = src.BizMailingAddress.PostalCode, + spd_country = src.BizMailingAddress.Country + }); + } + + // Branches + if (src.Branches != null) + { + foreach (var branch in src.Branches) + { + result.Add(new spd_address + { + spd_addressid = Guid.NewGuid(), + spd_type = (int)AddressTypeOptionSet.Branch, + spd_branchmanagername = branch.BranchManager, + spd_branchphone = branch.BranchPhoneNumber, + spd_branchemail = branch.BranchEmailAddr, + spd_address1 = branch.AddressLine1, + spd_address2 = branch.AddressLine2, + spd_city = branch.City, + spd_provincestate = branch.Province, + spd_postalcode = branch.PostalCode, + spd_country = branch.Country + }); + } + } + + return result; + }); } diff --git a/src/Spd.Resource.Repository/SharedContract.cs b/src/Spd.Resource.Repository/SharedContract.cs index f463355c56..8d62df97dc 100644 --- a/src/Spd.Resource.Repository/SharedContract.cs +++ b/src/Spd.Resource.Repository/SharedContract.cs @@ -209,11 +209,11 @@ public enum ApplicationOriginTypeEnum OrganizationSubmitted } -public record BranchInfo -{ - public Guid? BranchId { get; set; } - public Addr? BranchAddress { get; set; } - public string? BranchManager { get; set; } - public string? BranchPhoneNumber { get; set; } - public string? BranchEmailAddr { get; set; } -} \ No newline at end of file +//public record BranchInfo +//{ +// public Guid? BranchId { get; set; } +// public Addr? BranchAddress { get; set; } +// public string? BranchManager { get; set; } +// public string? BranchPhoneNumber { get; set; } +// public string? BranchEmailAddr { get; set; } +//} \ No newline at end of file diff --git a/src/Spd.Utilities.Dynamics/Connected Services/OData Service/Reference.cs b/src/Spd.Utilities.Dynamics/Connected Services/OData Service/Reference.cs index 7c829cbd69..8ef52b68b1 100644 --- a/src/Spd.Utilities.Dynamics/Connected Services/OData Service/Reference.cs +++ b/src/Spd.Utilities.Dynamics/Connected Services/OData Service/Reference.cs @@ -8,7 +8,7 @@ // //------------------------------------------------------------------------------ -// Generation date: 6/9/2025 5:40:49 PM +// Generation date: 6/10/2025 12:23:35 PM namespace Microsoft.Dynamics.CRM { /// diff --git a/src/Spd.Utilities.Dynamics/DynamicsContextLookupHelpers.cs b/src/Spd.Utilities.Dynamics/DynamicsContextLookupHelpers.cs index 6ed764f8a2..0fd63ff761 100644 --- a/src/Spd.Utilities.Dynamics/DynamicsContextLookupHelpers.cs +++ b/src/Spd.Utilities.Dynamics/DynamicsContextLookupHelpers.cs @@ -28,6 +28,7 @@ public static class DynamicsContextLookupHelpers {"Employee-Registrant", Guid.Parse("489d1f0a-5bb8-ed11-b83e-00505683fbf4")}, {"Employee-GovnBody", Guid.Parse("fcaa5d11-5bb8-ed11-b83e-00505683fbf4")}, {"Employee-Appointed", Guid.Parse("61b9301b-5bb8-ed11-b83e-00505683fbf4")}, + {"MetalDealerRecycler", Guid.Parse("527e0e38-91ff-ef11-b857-00505683fbf4")}, }.ToImmutableDictionary(); public static spd_organizationtype? LookupOrganizationType(this DynamicsContext context, string key) { From 8c26b4fae34317d9e3c88dac2bfa84a741213b8e Mon Sep 17 00:00:00 2001 From: peggy-quartech Date: Tue, 10 Jun 2025 13:14:04 -0700 Subject: [PATCH 09/11] dog trainer replacement --- src/Spd.Manager.Licence/DogTrainerAppValidation.cs | 2 +- .../DogTrainerApp/DogTrainerAppRepository.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Spd.Manager.Licence/DogTrainerAppValidation.cs b/src/Spd.Manager.Licence/DogTrainerAppValidation.cs index e3d39fa1f4..4379eb7c3f 100644 --- a/src/Spd.Manager.Licence/DogTrainerAppValidation.cs +++ b/src/Spd.Manager.Licence/DogTrainerAppValidation.cs @@ -35,6 +35,6 @@ public DogTrainerChangeRequestValidator() { Include(new DogTrainerRequestValidator()); RuleFor(r => r.OriginalLicenceId).NotEmpty(); - RuleFor(r => r.ContactId).NotEqual(Guid.Empty).NotEmpty(); + RuleFor(r => r.ApplicantId).NotEqual(Guid.Empty).NotEmpty(); } } \ No newline at end of file diff --git a/src/Spd.Resource.Repository/DogTrainerApp/DogTrainerAppRepository.cs b/src/Spd.Resource.Repository/DogTrainerApp/DogTrainerAppRepository.cs index 9da7ed614f..c7353391d1 100644 --- a/src/Spd.Resource.Repository/DogTrainerApp/DogTrainerAppRepository.cs +++ b/src/Spd.Resource.Repository/DogTrainerApp/DogTrainerAppRepository.cs @@ -25,7 +25,7 @@ public async Task CreateDogTrainerAppAsync(CreateDogTraine } else if (cmd.ApplicationTypeCode == ApplicationTypeEnum.Renewal || cmd.ApplicationTypeCode == ApplicationTypeEnum.Replacement) { - contact = UpdateContact(cmd, (Guid)cmd.ContactId); + contact = UpdateContact(cmd, (Guid)cmd.ApplicantId); app = PrepareNewAppDataInDbContext(cmd, contact); if (contact != null) { From 0ef0c7146020b7ed9927a13f6c8eaba7c009f7e8 Mon Sep 17 00:00:00 2001 From: peggy-quartech Date: Tue, 10 Jun 2025 13:44:42 -0700 Subject: [PATCH 10/11] cleanup --- src/Spd.Manager.Licence/MDRARegistrationManager.cs | 2 +- src/Spd.Presentation.Licensing/Controllers/MDRAController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Spd.Manager.Licence/MDRARegistrationManager.cs b/src/Spd.Manager.Licence/MDRARegistrationManager.cs index bdc0ebf540..9ab593373d 100644 --- a/src/Spd.Manager.Licence/MDRARegistrationManager.cs +++ b/src/Spd.Manager.Licence/MDRARegistrationManager.cs @@ -30,7 +30,7 @@ public MDRARegistrationManager(IMapper mapper, #region anonymous public async Task Handle(MDRARegistrationNewCommand cmd, CancellationToken ct) { - //ValidateFilesForNewApp(cmd); + ValidateFilesForNewApp(cmd); CreateMDRARegistrationCmd createCmd = _mapper.Map(cmd.SubmitRequest); MDRARegistrationResp respone = await _repository.CreateMDRARegistrationAsync(createCmd, ct); await UploadNewDocsAsync(cmd.LicAppFileInfos, respone.RegistrationId, ct); diff --git a/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs b/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs index 9d3fd991f4..350d60ad09 100644 --- a/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs +++ b/src/Spd.Presentation.Licensing/Controllers/MDRAController.cs @@ -44,7 +44,7 @@ public MDRAController(IMediator mediator, [HttpPost] public async Task SubmitMDRARegistrationAnonymous([FromBody][Required] MDRARegistrationRequest jsonRequest, CancellationToken ct) { - //await VerifyKeyCode(); + await VerifyKeyCode(); IEnumerable newDocInfos = await GetAllNewDocsInfoAsync(jsonRequest.DocumentKeyCodes, ct); var validateResult = await _mdraRequestValidator.ValidateAsync(jsonRequest, ct); From 292ecfd027d69593f4fc7476b7e4670f43434aab Mon Sep 17 00:00:00 2001 From: peggy-quartech Date: Tue, 10 Jun 2025 13:49:30 -0700 Subject: [PATCH 11/11] cleanup --- src/Spd.Manager.Licence/MDRARegistrationContract.cs | 1 - src/Spd.Resource.Repository/SharedContract.cs | 9 --------- 2 files changed, 10 deletions(-) diff --git a/src/Spd.Manager.Licence/MDRARegistrationContract.cs b/src/Spd.Manager.Licence/MDRARegistrationContract.cs index 76e241a01a..ec9be50726 100644 --- a/src/Spd.Manager.Licence/MDRARegistrationContract.cs +++ b/src/Spd.Manager.Licence/MDRARegistrationContract.cs @@ -37,6 +37,5 @@ public record MDRARegistrationRequest public record MDRARegistrationCommandResponse { public Guid? OrgRegistrationId { get; set; } - public string? OrgRegistrationNumber { get; set; } } diff --git a/src/Spd.Resource.Repository/SharedContract.cs b/src/Spd.Resource.Repository/SharedContract.cs index 8d62df97dc..7c10cad340 100644 --- a/src/Spd.Resource.Repository/SharedContract.cs +++ b/src/Spd.Resource.Repository/SharedContract.cs @@ -208,12 +208,3 @@ public enum ApplicationOriginTypeEnum GenericUpload, OrganizationSubmitted } - -//public record BranchInfo -//{ -// public Guid? BranchId { get; set; } -// public Addr? BranchAddress { get; set; } -// public string? BranchManager { get; set; } -// public string? BranchPhoneNumber { get; set; } -// public string? BranchEmailAddr { get; set; } -//} \ No newline at end of file