From f89ce3faddf1594a06e3235fa446c3501f5099e0 Mon Sep 17 00:00:00 2001 From: Jebb Burditt Date: Wed, 13 Aug 2025 16:50:18 -0700 Subject: [PATCH 1/2] Revert "D4P-195 add endpoint to process claims" --- .dockerignore | 13 - Api/.dockerignore | 3 + Api/Api.csproj | 8 +- .../BackgroundTaskExtensions.cs | 11 - Api/BackgroundTask/BackgroundTaskQueue.cs | 46 - Api/BackgroundTask/QueueHostedService.cs | 51 - Api/Dynamics/DynamicsController.cs | 16 - Api/Hosting/ServiceCollectionExtensions.cs | 22 - Api/Program.cs | 4 - CASAdapter.sln | 24 - Client/Client/CasService.cs | 2 + {Model => Client}/Client/ICasHttpClient.cs | 2 +- {Model => Client}/Client/ICasService.cs | 2 +- {Model/Client/DTO => Client/Dto}/Invoice.cs | 18 +- .../DTO => Client/Dto}/InvoiceLineDetail.cs | 20 +- Client/Token/TokenDelegatingHandler.cs | 4 +- DFA - CAS Adapter.postman_collection.json | 19 - ....EarlyBoundGeneratorV2.DefaultSettings.xml | 137 - Database/Database.csproj | 18 - Database/EntityOptionSetEnum.cs | 66 - Database/GlobalUsings.cs | 4 - Database/Model/DatabaseContext.Partial.cs | 39 - Database/Model/DatabaseContext.cs | 231 - Database/Model/Entities/DFA_ClientCode.cs | 844 --- Database/Model/Entities/DFA_ProjectClaim.cs | 5400 ----------------- .../Model/Entities/EMCR_ExpenseProject.cs | 880 --- .../Entities/EMCR_ResponsibilityCentre.cs | 767 --- Database/Model/Entities/EMCR_ServiceLine.cs | 769 --- Database/Model/Entities/EMCR_Stob.cs | 823 --- Database/Model/Entities/SystemUser.cs | 4173 ------------- Database/Model/EntityOptionSetEnum.cs | 66 - Database/Model/Messages/AnalyzeSentiment.cs | 169 - .../Model/OptionSets/DFA_ClaimBpfSubStages.cs | 56 - .../DFA_ClaimBusinessProcessStages.cs | 60 - .../DFA_CodingBlockSubmissionStatus.cs | 40 - Database/Model/OptionSets/DFA_PayGroup.cs | 31 - .../Model/OptionSets/DFA_RecoveryClaimType.cs | 28 - .../OptionSets/EMCR_ExpenseProjectType.cs | 36 - Database/Model/builderSettings.json | 123 - Database/README.md | 64 - Database/ServiceCollectionExtensions.cs | 15 - Model/Client/DTO/Response.cs | 3 - Model/DTO/ClientCode.cs | 10 - Model/DTO/ExpenseProject.cs | 10 - Model/DTO/RecoveryClaim.cs | 50 - Model/DTO/ResponsibilityCentre.cs | 10 - Model/DTO/ServiceLine.cs | 10 - Model/DTO/Stob.cs | 10 - Model/DTO/User.cs | 10 - Model/EnumExtensions.cs | 17 - Model/Global.cs | 19 - Model/GlobalUsings.cs | 3 - Model/Model.csproj | 4 - Model/StringExtensions.cs | 14 - Resources/GlobalUsings.cs | 7 - Resources/RecoveryClaimMapper.cs | 96 - Resources/RecoveryClaimRepository.cs | 128 - Resources/RecoveryClaimService.cs | 44 - Resources/Resources.csproj | 16 - Shared.Contract/BaseHandlers.cs | 86 - Shared.Contract/Command.cs | 16 - Shared.Contract/GlobalUsings.cs | 2 - Shared.Contract/IBaseRepository.cs | 14 - Shared.Contract/IDto.cs | 7 - Shared.Contract/IQueryRepository.cs | 11 - Shared.Contract/QueryableExtensions.cs | 38 - Shared.Contract/References.cs | 4 - Shared.Contract/Shared.Contract.csproj | 13 - Shared.Contract/StateCode.cs | 7 - Shared.Database/BaseRepository.cs | 185 - Shared.Database/DataverseExtensions.cs | 197 - Shared.Database/GlobalUsings.cs | 18 - .../Mappers/AutoMapperExtensions.cs | 39 - Shared.Database/Mappers/SharedMapper.cs | 38 - .../ServiceCollectionExtensions.cs | 67 - Shared.Database/Shared.Database.csproj | 19 - Test/GlobalUsings.cs | 5 - Test/RecoveryClaimRepositoryTests.cs | 60 - Test/Startup.cs | 9 - Test/Test.csproj | 1 - 80 files changed, 28 insertions(+), 16373 deletions(-) delete mode 100644 .dockerignore create mode 100644 Api/.dockerignore delete mode 100644 Api/BackgroundTask/BackgroundTaskExtensions.cs delete mode 100644 Api/BackgroundTask/BackgroundTaskQueue.cs delete mode 100644 Api/BackgroundTask/QueueHostedService.cs delete mode 100644 Api/Dynamics/DynamicsController.cs delete mode 100644 Api/Hosting/ServiceCollectionExtensions.cs rename {Model => Client}/Client/ICasHttpClient.cs (89%) rename {Model => Client}/Client/ICasService.cs (97%) rename {Model/Client/DTO => Client/Dto}/Invoice.cs (95%) rename {Model/Client/DTO => Client/Dto}/InvoiceLineDetail.cs (66%) delete mode 100644 Database/DLaB.EarlyBoundGeneratorV2.DefaultSettings.xml delete mode 100644 Database/Database.csproj delete mode 100644 Database/EntityOptionSetEnum.cs delete mode 100644 Database/GlobalUsings.cs delete mode 100644 Database/Model/DatabaseContext.Partial.cs delete mode 100644 Database/Model/DatabaseContext.cs delete mode 100644 Database/Model/Entities/DFA_ClientCode.cs delete mode 100644 Database/Model/Entities/DFA_ProjectClaim.cs delete mode 100644 Database/Model/Entities/EMCR_ExpenseProject.cs delete mode 100644 Database/Model/Entities/EMCR_ResponsibilityCentre.cs delete mode 100644 Database/Model/Entities/EMCR_ServiceLine.cs delete mode 100644 Database/Model/Entities/EMCR_Stob.cs delete mode 100644 Database/Model/Entities/SystemUser.cs delete mode 100644 Database/Model/EntityOptionSetEnum.cs delete mode 100644 Database/Model/Messages/AnalyzeSentiment.cs delete mode 100644 Database/Model/OptionSets/DFA_ClaimBpfSubStages.cs delete mode 100644 Database/Model/OptionSets/DFA_ClaimBusinessProcessStages.cs delete mode 100644 Database/Model/OptionSets/DFA_CodingBlockSubmissionStatus.cs delete mode 100644 Database/Model/OptionSets/DFA_PayGroup.cs delete mode 100644 Database/Model/OptionSets/DFA_RecoveryClaimType.cs delete mode 100644 Database/Model/OptionSets/EMCR_ExpenseProjectType.cs delete mode 100644 Database/Model/builderSettings.json delete mode 100644 Database/README.md delete mode 100644 Database/ServiceCollectionExtensions.cs delete mode 100644 Model/Client/DTO/Response.cs delete mode 100644 Model/DTO/ClientCode.cs delete mode 100644 Model/DTO/ExpenseProject.cs delete mode 100644 Model/DTO/RecoveryClaim.cs delete mode 100644 Model/DTO/ResponsibilityCentre.cs delete mode 100644 Model/DTO/ServiceLine.cs delete mode 100644 Model/DTO/Stob.cs delete mode 100644 Model/DTO/User.cs delete mode 100644 Model/EnumExtensions.cs delete mode 100644 Model/Global.cs delete mode 100644 Model/GlobalUsings.cs delete mode 100644 Model/StringExtensions.cs delete mode 100644 Resources/GlobalUsings.cs delete mode 100644 Resources/RecoveryClaimMapper.cs delete mode 100644 Resources/RecoveryClaimRepository.cs delete mode 100644 Resources/RecoveryClaimService.cs delete mode 100644 Resources/Resources.csproj delete mode 100644 Shared.Contract/BaseHandlers.cs delete mode 100644 Shared.Contract/Command.cs delete mode 100644 Shared.Contract/GlobalUsings.cs delete mode 100644 Shared.Contract/IBaseRepository.cs delete mode 100644 Shared.Contract/IDto.cs delete mode 100644 Shared.Contract/IQueryRepository.cs delete mode 100644 Shared.Contract/QueryableExtensions.cs delete mode 100644 Shared.Contract/References.cs delete mode 100644 Shared.Contract/Shared.Contract.csproj delete mode 100644 Shared.Contract/StateCode.cs delete mode 100644 Shared.Database/BaseRepository.cs delete mode 100644 Shared.Database/DataverseExtensions.cs delete mode 100644 Shared.Database/GlobalUsings.cs delete mode 100644 Shared.Database/Mappers/AutoMapperExtensions.cs delete mode 100644 Shared.Database/Mappers/SharedMapper.cs delete mode 100644 Shared.Database/ServiceCollectionExtensions.cs delete mode 100644 Shared.Database/Shared.Database.csproj delete mode 100644 Test/RecoveryClaimRepositoryTests.cs diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 811c336..0000000 --- a/.dockerignore +++ /dev/null @@ -1,13 +0,0 @@ -.dockerignore -.git -.gitattributes -.gitignore -.github -.vs -.openshift -*.json -**/bin/ -**/obj/ -Dockerfile -README.md -ssl \ No newline at end of file diff --git a/Api/.dockerignore b/Api/.dockerignore new file mode 100644 index 0000000..22c6fd5 --- /dev/null +++ b/Api/.dockerignore @@ -0,0 +1,3 @@ +.dockerignore +bin +obj diff --git a/Api/Api.csproj b/Api/Api.csproj index e42089e..9d4abe2 100644 --- a/Api/Api.csproj +++ b/Api/Api.csproj @@ -21,15 +21,12 @@ - - - @@ -46,11 +43,9 @@ - - @@ -61,6 +56,7 @@ - + + diff --git a/Api/BackgroundTask/BackgroundTaskExtensions.cs b/Api/BackgroundTask/BackgroundTaskExtensions.cs deleted file mode 100644 index c4f958e..0000000 --- a/Api/BackgroundTask/BackgroundTaskExtensions.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace Api; - -public static class BackgroundTaskExtensions -{ - public static IServiceCollection AddBackgroundTaskQueue(this IServiceCollection services) - { - services.AddSingleton(); - services.AddHostedService(); - return services; - } -} \ No newline at end of file diff --git a/Api/BackgroundTask/BackgroundTaskQueue.cs b/Api/BackgroundTask/BackgroundTaskQueue.cs deleted file mode 100644 index 18cbbbb..0000000 --- a/Api/BackgroundTask/BackgroundTaskQueue.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System.Threading.Channels; - -namespace Api; - -// Reference -// https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-9.0&tabs=visual-studio#queued-background-tasks - -public interface IBackgroundTaskQueue -{ - ValueTask QueueBackgroundWorkItemAsync(Func workItem); - ValueTask> DequeueAsync(CancellationToken cancellationToken); -} - -public class BackgroundTaskQueue : IBackgroundTaskQueue -{ - private readonly Channel> _queue; - - public BackgroundTaskQueue(int capacity = 100) - { - // Capacity should be set based on the expected application load and - // number of concurrent threads accessing the queue. - // BoundedChannelFullMode.Wait will cause calls to WriteAsync() to return a task, - // which completes only when space became available. This leads to backpressure, - // in case too many publishers/calls start accumulating. - var options = new BoundedChannelOptions(capacity) - { - FullMode = BoundedChannelFullMode.Wait - }; - _queue = Channel.CreateBounded>(options); - } - - public async ValueTask QueueBackgroundWorkItemAsync(Func workItem) - { - if (workItem == null) - { - throw new ArgumentNullException(nameof(workItem)); - } - - await _queue.Writer.WriteAsync(workItem); - } - - public async ValueTask> DequeueAsync(CancellationToken cancellationToken) - { - return await _queue.Reader.ReadAsync(cancellationToken); - } -} \ No newline at end of file diff --git a/Api/BackgroundTask/QueueHostedService.cs b/Api/BackgroundTask/QueueHostedService.cs deleted file mode 100644 index 621f913..0000000 --- a/Api/BackgroundTask/QueueHostedService.cs +++ /dev/null @@ -1,51 +0,0 @@ -namespace Api; - -public class QueuedHostedService : BackgroundService -{ - private readonly ILogger _logger; - - public QueuedHostedService(IBackgroundTaskQueue taskQueue, - ILogger logger) - { - TaskQueue = taskQueue; - _logger = logger; - } - - public IBackgroundTaskQueue TaskQueue { get; } - - protected override async Task ExecuteAsync(CancellationToken stoppingToken) - { - _logger.LogInformation( - $"Queued Hosted Service is running.{Environment.NewLine}" + - $"{Environment.NewLine}Tap W to add a work item to the " + - $"background queue.{Environment.NewLine}"); - - await BackgroundProcessing(stoppingToken); - } - - private async Task BackgroundProcessing(CancellationToken stoppingToken) - { - while (!stoppingToken.IsCancellationRequested) - { - var workItem = - await TaskQueue.DequeueAsync(stoppingToken); - - try - { - await workItem(stoppingToken); - } - catch (Exception ex) - { - _logger.LogError(ex, - "Error occurred executing {WorkItem}.", nameof(workItem)); - } - } - } - - public override async Task StopAsync(CancellationToken stoppingToken) - { - _logger.LogInformation("Queued Hosted Service is stopping."); - - await base.StopAsync(stoppingToken); - } -} \ No newline at end of file diff --git a/Api/Dynamics/DynamicsController.cs b/Api/Dynamics/DynamicsController.cs deleted file mode 100644 index d6b25d2..0000000 --- a/Api/Dynamics/DynamicsController.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace Api; - -[Route("api/[controller]")] -[ApiController] -public class DynamicsController(IRecoveryClaimService recoveryClaimService, IBackgroundTaskQueue taskQueue) : Controller -{ - [HttpGet("process-claims")] - public IActionResult ProcessClaims() - { - _ = taskQueue.QueueBackgroundWorkItemAsync(async job => - { - await recoveryClaimService.ProcessClaims(); - }); - return Ok(); - } -} diff --git a/Api/Hosting/ServiceCollectionExtensions.cs b/Api/Hosting/ServiceCollectionExtensions.cs deleted file mode 100644 index 6b60763..0000000 --- a/Api/Hosting/ServiceCollectionExtensions.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace Api; - -public static class ServiceCollectionExtensions -{ - public static IServiceCollection AddServices(this IServiceCollection services) - { - services.AddTransient(); - services.AddTransient(); - return services; - } - - public static IServiceCollection AddAutoMapperMappings(this IServiceCollection services) - { - // NOTE global and shared mapper should be first, since it has the prefix configurations and shared mappings - // TODO consider adding an assembly scan for all mappers - var mapperTypes = new[] { - typeof(SharedMapper), typeof(RecoveryClaimMapper), - }; - services.AddAutoMapper(cfg => cfg.ShouldUseConstructor = constructor => constructor.IsPublic, mapperTypes); - return services; - } -} diff --git a/Api/Program.cs b/Api/Program.cs index d521de8..5f59569 100644 --- a/Api/Program.cs +++ b/Api/Program.cs @@ -12,8 +12,6 @@ var appSettings = services.AddAppSettings(env); services.AddCasHttpClient(env.IsProduction()); -services.AddServices(); -services.AddAutoMapperMappings(); services.AddCorsPolicy(builder.Configuration.GetSection("cors").Get()); services.AddSsoAuthentication(appSettings.Configuration); services.AddSsoAuthorization(); @@ -22,8 +20,6 @@ services.AddControllers(); services.AddEndpointsApiExplorer(); services.AddSwaggerGen(); -services.AddBackgroundTaskQueue(); -services.AddDatabase(builder.Configuration); var app = builder.Build(); app.MapHealthChecks(); diff --git a/CASAdapter.sln b/CASAdapter.sln index bb1fbf8..4c9db0c 100644 --- a/CASAdapter.sln +++ b/CASAdapter.sln @@ -18,14 +18,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution", "Solution", "{02 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Model", "Model\Model.csproj", "{91CF816F-8FAF-4B2C-94AA-833E8313B7DA}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Database", "Database\Database.csproj", "{D5464973-64D3-45D4-A227-BC9CFC3D27A2}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shared.Contract", "Shared.Contract\Shared.Contract.csproj", "{040C03AC-70DD-6D2B-998C-6D9C1FF9109E}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shared.Database", "Shared.Database\Shared.Database.csproj", "{0800A76B-9285-2E64-E78E-A33BA325C215}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Resources", "Resources\Resources.csproj", "{EE70027C-907C-43C1-A3B1-36178530E8EB}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -48,22 +40,6 @@ Global {91CF816F-8FAF-4B2C-94AA-833E8313B7DA}.Debug|Any CPU.Build.0 = Debug|Any CPU {91CF816F-8FAF-4B2C-94AA-833E8313B7DA}.Release|Any CPU.ActiveCfg = Release|Any CPU {91CF816F-8FAF-4B2C-94AA-833E8313B7DA}.Release|Any CPU.Build.0 = Release|Any CPU - {D5464973-64D3-45D4-A227-BC9CFC3D27A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D5464973-64D3-45D4-A227-BC9CFC3D27A2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D5464973-64D3-45D4-A227-BC9CFC3D27A2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D5464973-64D3-45D4-A227-BC9CFC3D27A2}.Release|Any CPU.Build.0 = Release|Any CPU - {040C03AC-70DD-6D2B-998C-6D9C1FF9109E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {040C03AC-70DD-6D2B-998C-6D9C1FF9109E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {040C03AC-70DD-6D2B-998C-6D9C1FF9109E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {040C03AC-70DD-6D2B-998C-6D9C1FF9109E}.Release|Any CPU.Build.0 = Release|Any CPU - {0800A76B-9285-2E64-E78E-A33BA325C215}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0800A76B-9285-2E64-E78E-A33BA325C215}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0800A76B-9285-2E64-E78E-A33BA325C215}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0800A76B-9285-2E64-E78E-A33BA325C215}.Release|Any CPU.Build.0 = Release|Any CPU - {EE70027C-907C-43C1-A3B1-36178530E8EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EE70027C-907C-43C1-A3B1-36178530E8EB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EE70027C-907C-43C1-A3B1-36178530E8EB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EE70027C-907C-43C1-A3B1-36178530E8EB}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Client/Client/CasService.cs b/Client/Client/CasService.cs index 5f0d638..c1f7ed1 100644 --- a/Client/Client/CasService.cs +++ b/Client/Client/CasService.cs @@ -248,3 +248,5 @@ public async Task GetSupplierByNameAndPostalCode(string supplierName, } } } + +public record Response(string Content, HttpStatusCode StatusCode); diff --git a/Model/Client/ICasHttpClient.cs b/Client/Client/ICasHttpClient.cs similarity index 89% rename from Model/Client/ICasHttpClient.cs rename to Client/Client/ICasHttpClient.cs index 2579a66..15810ca 100644 --- a/Model/Client/ICasHttpClient.cs +++ b/Client/Client/ICasHttpClient.cs @@ -1,4 +1,4 @@ -namespace Model; +namespace Client; public interface ICasHttpClient { diff --git a/Model/Client/ICasService.cs b/Client/Client/ICasService.cs similarity index 97% rename from Model/Client/ICasService.cs rename to Client/Client/ICasService.cs index 0c424aa..9512058 100644 --- a/Model/Client/ICasService.cs +++ b/Client/Client/ICasService.cs @@ -1,4 +1,4 @@ -namespace Model; +namespace Client; public interface ICasService { diff --git a/Model/Client/DTO/Invoice.cs b/Client/Dto/Invoice.cs similarity index 95% rename from Model/Client/DTO/Invoice.cs rename to Client/Dto/Invoice.cs index 33860ae..144e490 100644 --- a/Model/Client/DTO/Invoice.cs +++ b/Client/Dto/Invoice.cs @@ -1,10 +1,8 @@ -namespace Model; - -public class Invoice +public class Invoice { public bool IsBlockSupplier { get; set; } - public string InvoiceType { get; set; } = "Standard"; + public string InvoiceType { get; set; } public string SupplierNumber { get; set; } @@ -16,13 +14,13 @@ public class Invoice public decimal InvoiceAmount { get; set; } - public string PayGroup { get; set; } = "GEN CHQ"; + public string PayGroup { get; set; } public DateTime DateInvoiceReceived { get; set; } public DateTime? DateGoodsReceived { get; set; } - public string RemittanceCode { get; set; } = "01"; + public string RemittanceCode { get; set; } public bool SpecialHandling { get; set; } @@ -38,9 +36,9 @@ public class Invoice public string City { get; set; } - public string Country { get; set; } = string.Empty; + public string Country { get; set; } - public string Province { get; set; } = string.Empty; + public string Province { get; set; } public string PostalCode { get; set; } @@ -48,7 +46,7 @@ public class Invoice public string Terms { get; set; } - public string PayAloneFlag { get; set; } = "N"; + public string PayAloneFlag { get; set; } public string PaymentAdviceComments { get; set; } @@ -62,7 +60,7 @@ public class Invoice public string InvoiceBatchName { get; set; } - public string CurrencyCode { get; set; } = "CAD"; + public string CurrencyCode { get; set; } public string? AccountNumber { get; set; } diff --git a/Model/Client/DTO/InvoiceLineDetail.cs b/Client/Dto/InvoiceLineDetail.cs similarity index 66% rename from Model/Client/DTO/InvoiceLineDetail.cs rename to Client/Dto/InvoiceLineDetail.cs index 73ff73d..7e1ebc3 100644 --- a/Model/Client/DTO/InvoiceLineDetail.cs +++ b/Client/Dto/InvoiceLineDetail.cs @@ -1,28 +1,26 @@ -namespace Model; - -public class InvoiceLineDetail +public class InvoiceLineDetail { public int InvoiceLineNumber { get; set; } - public string InvoiceLineType { get; set; } = "Item"; + public string InvoiceLineType { get; set; } - public string LineCode { get; set; } = "DR"; + public string LineCode { get; set; } public decimal InvoiceLineAmount { get; set; } public string DefaultDistributionAccount { get; set; } - public string Description { get; set; } = string.Empty; + public string Description { get; set; } - public string TaxClassificationCode { get; set; } = string.Empty; + public string TaxClassificationCode { get; set; } - public string DistributionSupplier { get; set; } = string.Empty; + public string DistributionSupplier { get; set; } - public string Info1 { get; set; } = string.Empty; + public string Info1 { get; set; } - public string Info2 { get; set; } = string.Empty; + public string Info2 { get; set; } - public string Info3 { get; set; } = string.Empty; + public string Info3 { get; set; } public string ToJSONString() { diff --git a/Client/Token/TokenDelegatingHandler.cs b/Client/Token/TokenDelegatingHandler.cs index 842a137..d5fcb0e 100644 --- a/Client/Token/TokenDelegatingHandler.cs +++ b/Client/Token/TokenDelegatingHandler.cs @@ -1,8 +1,8 @@ public class TokenDelegatingHandler(ITokenProvider tokenProvider) : DelegatingHandler { private readonly AsyncRetryPolicy _policy = Policy - .HandleResult(r => r.StatusCode is HttpStatusCode.Unauthorized or HttpStatusCode.Forbidden) - .RetryAsync((_, _) => tokenProvider.RefreshTokenAsync()); + .HandleResult(r => r.StatusCode is HttpStatusCode.Unauthorized or HttpStatusCode.Forbidden) + .RetryAsync((_, _) => tokenProvider.RefreshTokenAsync()); protected override async Task SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) => await _policy.ExecuteAsync(async () => diff --git a/DFA - CAS Adapter.postman_collection.json b/DFA - CAS Adapter.postman_collection.json index 34396be..815cce5 100644 --- a/DFA - CAS Adapter.postman_collection.json +++ b/DFA - CAS Adapter.postman_collection.json @@ -340,25 +340,6 @@ } }, "response": [] - }, - { - "name": "Process Claims", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "{{server}}/api/Dynamics/process-claims", - "host": [ - "{{server}}" - ], - "path": [ - "api", - "Dynamics", - "process-claims" - ] - } - }, - "response": [] } ], "auth": { diff --git a/Database/DLaB.EarlyBoundGeneratorV2.DefaultSettings.xml b/Database/DLaB.EarlyBoundGeneratorV2.DefaultSettings.xml deleted file mode 100644 index 406ec93..0000000 --- a/Database/DLaB.EarlyBoundGeneratorV2.DefaultSettings.xml +++ /dev/null @@ -1,137 +0,0 @@ - - - true - DLaB.ModelBuilderExtensions.CustomizeCodeDomService,DLaB.ModelBuilderExtensions - DLaB.ModelBuilderExtensions.CodeGenerationService,DLaB.ModelBuilderExtensions - DLaB.ModelBuilderExtensions.CodeWriterFilterService,DLaB.ModelBuilderExtensions - DLaB.ModelBuilderExtensions.CodeWriterMessageFilterService,DLaB.ModelBuilderExtensions - false - true - Entities - - - analyze - - true - true - true - true - - builderSettings.json - true - - true - DLaB.EarlyBoundGeneratorV2\DLaB.Dictionary.txt - false - true - true - true - false - - dfa_clientcode| -dfa_projectclaim| -emcr_expenseproject| -emcr_responsibilitycentre| -emcr_serviceline| -emcr_stob| -systemuser - - - - - true - false - true - true - true - true - true - false - false - true - false - false - true - _ - false - false - true - {0}_{1} - false - 2 - - - Model - - - false - true - true - false - false - AccessTeam| -ActiveState| -AssignedTo| -BusinessAs| -CardUci| -DefaultOnCase| -EmailAnd| -EmailSend| -EmailSender| -EMCR| -FeatureSet| -FedEx| -ForAn| -Geronimo| -InvoiceDate| -IsMsTeams| -IsPaiEnabled| -IsSopIntegration| -MsDynCe_| -MsDynMkt_| -MsDyUsd| -O365Admin| -OcSkillIdentMlModel| -OnHold| -OrderId| -OwnerOnAssign| -ParticipatesIn| -PartiesOnEmail| -PauseStates| -PredictiveAddress| -Resp| -Response| -Responsibility| -SentOn| -SettingsAndSummary| -SlaId| -SlaKpi| -Stob| -SyncOptIn| -Timeout| -TradeShow| -UserPuid| -VoiceMail - DLaB.EarlyBoundGeneratorV2\alphabets - false - true - false - false - false - false - - true - false - Messages - DLaB.ModelBuilderExtensions.MetadataProviderService,DLaB.ModelBuilderExtensions - DLaB.ModelBuilderExtensions.MetadataQueryProviderService,DLaB.ModelBuilderExtensions - DLaB.ModelBuilderExtensions.NamingService,DLaB.ModelBuilderExtensions - OptionSets - Database.Model - DatabaseContext - true - 2.2025.4.20 - true - 2.2025.4.20 - \ No newline at end of file diff --git a/Database/Database.csproj b/Database/Database.csproj deleted file mode 100644 index 8547881..0000000 --- a/Database/Database.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - - net9.0 - enable - enable - - - - - - - - - - - - diff --git a/Database/EntityOptionSetEnum.cs b/Database/EntityOptionSetEnum.cs deleted file mode 100644 index 9f90281..0000000 --- a/Database/EntityOptionSetEnum.cs +++ /dev/null @@ -1,66 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace DataverseModel -{ - - - internal sealed class EntityOptionSetEnum - { - - /// - /// Returns the integer version of an OptionSetValue - /// - public static System.Nullable GetEnum(Microsoft.Xrm.Sdk.Entity entity, string attributeLogicalName) - { - if (entity.Attributes.ContainsKey(attributeLogicalName)) - { - Microsoft.Xrm.Sdk.OptionSetValue value = entity.GetAttributeValue(attributeLogicalName); - if (value != null) - { - return value.Value; - } - } - return null; - } - - /// - /// Returns a collection of integer version's of an Multi-Select OptionSetValue for a given attribute on the passed entity - /// - public static System.Collections.Generic.IEnumerable GetMultiEnum(Microsoft.Xrm.Sdk.Entity entity, string attributeLogicalName) - - { - Microsoft.Xrm.Sdk.OptionSetValueCollection value = entity.GetAttributeValue(attributeLogicalName); - System.Collections.Generic.List list = new System.Collections.Generic.List(); - if (value == null) - { - return list; - } - list.AddRange(System.Linq.Enumerable.Select(value, v => (T)(object)v.Value)); - return list; - } - - /// - /// Returns a OptionSetValueCollection based on a list of Multi-Select OptionSetValues - /// - public static Microsoft.Xrm.Sdk.OptionSetValueCollection GetMultiEnum(Microsoft.Xrm.Sdk.Entity entity, string attributeLogicalName, System.Collections.Generic.IEnumerable values) - - { - if (values == null) - { - return null; - } - Microsoft.Xrm.Sdk.OptionSetValueCollection collection = new Microsoft.Xrm.Sdk.OptionSetValueCollection(); - collection.AddRange(System.Linq.Enumerable.Select(values, v => new Microsoft.Xrm.Sdk.OptionSetValue((int)(object)v))); - return collection; - } - } -} -#pragma warning restore CS1591 diff --git a/Database/GlobalUsings.cs b/Database/GlobalUsings.cs deleted file mode 100644 index c2d8050..0000000 --- a/Database/GlobalUsings.cs +++ /dev/null @@ -1,4 +0,0 @@ -global using Database.Model; -global using Microsoft.Extensions.Configuration; -global using Microsoft.Extensions.DependencyInjection; -global using Microsoft.PowerPlatform.Dataverse.Client; \ No newline at end of file diff --git a/Database/Model/DatabaseContext.Partial.cs b/Database/Model/DatabaseContext.Partial.cs deleted file mode 100644 index 2e09e1f..0000000 --- a/Database/Model/DatabaseContext.Partial.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Microsoft.Xrm.Sdk; - -namespace Database.Model; - -public partial class DatabaseContext -{ - private bool isInTransaction; - - public new SaveChangesResultCollection SaveChanges() - { - if (!isInTransaction) - { - return base.SaveChanges(); - } - - return null; - } - - public TransactionContext BeginTransaction() - { - if (isInTransaction) throw new InvalidOperationException("Already in a transaction"); - isInTransaction = true; - return new TransactionContext(this); - } - - public void CommitTransaction() - { - if (isInTransaction) - { - base.SaveChanges(); - isInTransaction = false; - } - } -} - -public class TransactionContext(DatabaseContext context) -{ - public void Commit() => context.CommitTransaction(); -} diff --git a/Database/Model/DatabaseContext.cs b/Database/Model/DatabaseContext.cs deleted file mode 100644 index 26b511a..0000000 --- a/Database/Model/DatabaseContext.cs +++ /dev/null @@ -1,231 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -[assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()] - -namespace Database.Model -{ - - - /// - /// Represents a source of entities bound to a Dataverse service. It tracks and manages changes made to the retrieved entities. - /// - public partial class DatabaseContext : Microsoft.Xrm.Sdk.Client.OrganizationServiceContext - { - - /// - /// Constructor. - /// - public DatabaseContext(Microsoft.Xrm.Sdk.IOrganizationService service) : - base(service) - { - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable DFA_ClientCodeSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable DFA_ProjectClaimSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable EMCR_ExpenseProjectSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable EMCR_ResponsibilityCentreSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable EMCR_ServiceLineSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable EMCR_StobSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable SystemUserSet - { - get - { - return this.CreateQuery(); - } - } - } - - /// - /// Attribute to handle storing the OptionSet's Metadata. - /// - [System.AttributeUsageAttribute(System.AttributeTargets.Field)] - public sealed class OptionSetMetadataAttribute : System.Attribute - { - - private object[] _nameObjects; - - private System.Collections.Generic.Dictionary _names; - - /// - /// Color of the OptionSetValue. - /// - public string Color { get; set; } - - /// - /// Description of the OptionSetValue. - /// - public string Description { get; set; } - - /// - /// Display order index of the OptionSetValue. - /// - public int DisplayIndex { get; set; } - - /// - /// External value of the OptionSetValue. - /// - public string ExternalValue { get; set; } - - /// - /// Name of the OptionSetValue. - /// - public string Name { get; set; } - - /// - /// Names of the OptionSetValue. - /// - public System.Collections.Generic.Dictionary Names - { - get - { - return _names ?? (_names = CreateNames()); - } - set - { - _names = value; - if (value == null) - { - _nameObjects = new object[0]; - } - else - { - _nameObjects = null; - } - } - } - - /// - /// Initializes a new instance of the class. - /// - /// Name of the value. - /// Display order index of the value. - /// Color of the value. - /// Description of the value. - /// External value of the value. - /// Names of the value. - public OptionSetMetadataAttribute(string name, int displayIndex, string color = null, string description = null, string externalValue = null, params object[] names) - { - this.Color = color; - this.Description = description; - this._nameObjects = names; - this.ExternalValue = externalValue; - this.DisplayIndex = displayIndex; - this.Name = name; - } - - private System.Collections.Generic.Dictionary CreateNames() - { - System.Collections.Generic.Dictionary names = new System.Collections.Generic.Dictionary(); - for (int i = 0; (i < _nameObjects.Length); i = (i + 2)) - { - names.Add(((int)(_nameObjects[i])), ((string)(_nameObjects[(i + 1)]))); - } - return names; - } - } - - /// - /// Extension class to handle retrieving of OptionSetMetadataAttribute. - /// - public static class OptionSetExtension - { - - /// - /// Returns the OptionSetMetadataAttribute for the given enum value - /// - /// OptionSet Enum Type - /// Enum Value with OptionSetMetadataAttribute - public static OptionSetMetadataAttribute GetMetadata(this T value) - where T : struct, System.IConvertible - { - System.Type enumType = typeof(T); - if (!enumType.IsEnum) - { - throw new System.ArgumentException("T must be an enum!"); - } - System.Reflection.MemberInfo[] members = enumType.GetMember(value.ToString()); - for (int i = 0; (i < members.Length); i++ - ) - { - System.Attribute attribute = System.Reflection.CustomAttributeExtensions.GetCustomAttribute(members[i], typeof(OptionSetMetadataAttribute)); - if (attribute != null) - { - return ((OptionSetMetadataAttribute)(attribute)); - } - } - throw new System.ArgumentException("T must be an enum adorned with an OptionSetMetadataAttribute!"); - } - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/Entities/DFA_ClientCode.cs b/Database/Model/Entities/DFA_ClientCode.cs deleted file mode 100644 index 590a633..0000000 --- a/Database/Model/Entities/DFA_ClientCode.cs +++ /dev/null @@ -1,844 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - /// - /// Status of the Client Code - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_ClientCode_StateCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 1, - } - - /// - /// Reason for the status of the Client Code - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_ClientCode_StatusCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 2, - } - - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("dfa_clientcode")] - public partial class DFA_ClientCode : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the dfa_clientcode entity - /// - public partial class Fields - { - public const string CreatedBy = "createdby"; - public const string CreatedByName = "createdbyname"; - public const string CreatedByYomiName = "createdbyyominame"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string DFA_ClientCodeId = "dfa_clientcodeid"; - public const string Id = "dfa_clientcodeid"; - public const string DFA_Code = "dfa_code"; - public const string DFA_Description = "dfa_description"; - public const string DFA_DFA_ClientCode_DFA_ProjectClaim_ClientCodeId = "DFA_DFA_ClientCode_DFA_ProjectClaim_ClientCodeId"; - public const string DFA_Name = "dfa_name"; - public const string ImportSequenceNumber = "importsequencenumber"; - public const string Lk_DFA_ClientCode_CreatedBy = "lk_dfa_clientcode_createdby"; - public const string Lk_DFA_ClientCode_CreatedOnBehalfBy = "lk_dfa_clientcode_createdonbehalfby"; - public const string Lk_DFA_ClientCode_ModifiedBy = "lk_dfa_clientcode_modifiedby"; - public const string Lk_DFA_ClientCode_ModifiedOnBehalfBy = "lk_dfa_clientcode_modifiedonbehalfby"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedByYomiName = "modifiedbyyominame"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string OverriddenCreatedOn = "overriddencreatedon"; - public const string OwnerId = "ownerid"; - public const string OwnerIdName = "owneridname"; - public const string OwnerIdYomiName = "owneridyominame"; - public const string OwningBusinessUnit = "owningbusinessunit"; - public const string OwningTeam = "owningteam"; - public const string OwningUser = "owninguser"; - public const string StateCode = "statecode"; - public const string StateCodename = "statecodename"; - public const string StatusCode = "statuscode"; - public const string StatusCodename = "statuscodename"; - public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; - public const string User_DFA_ClientCode = "user_dfa_clientcode"; - public const string UtcConversionTimeZoneCode = "utcconversiontimezonecode"; - public const string VersionNumber = "versionnumber"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public DFA_ClientCode(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public DFA_ClientCode(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public DFA_ClientCode(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public DFA_ClientCode() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "dfa_clientcodeid"; - - public const string PrimaryNameAttribute = "dfa_name"; - - public const string EntitySchemaName = "dfa_clientcode"; - - public const string EntityLogicalName = "dfa_clientcode"; - - public const string EntityLogicalCollectionName = "dfa_clientcodes"; - - public const string EntitySetName = "dfa_clientcodes"; - - /// - /// Unique identifier of the user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] - public string CreatedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for entity instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_clientcodeid")] - public System.Nullable DFA_ClientCodeId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_clientcodeid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_clientcodeid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_clientcodeid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.DFA_ClientCodeId = value; - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_code")] - public string DFA_Code - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_code"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_code", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_description")] - public string DFA_Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_description", value); - } - } - - /// - /// The name of the custom entity. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_name")] - public string DFA_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_name", value); - } - } - - /// - /// Sequence number of the import that created this record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] - public System.Nullable ImportSequenceNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("importsequencenumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("importsequencenumber", value); - } - } - - /// - /// Unique identifier of the user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] - public string ModifiedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time that the record was migrated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] - public System.Nullable OverriddenCreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overriddencreatedon"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("overriddencreatedon", value); - } - } - - /// - /// Owner Id - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] - public Microsoft.Xrm.Sdk.EntityReference OwnerId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("ownerid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("ownerid", value); - } - } - - /// - /// Name of the owner - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridname")] - public string OwnerIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ownerid")) - { - return this.FormattedValues["ownerid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Yomi name of the owner - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridyominame")] - public string OwnerIdYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ownerid")) - { - return this.FormattedValues["ownerid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for the business unit that owns the record - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] - public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owningbusinessunit"); - } - } - - /// - /// Unique identifier for the team that owns the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] - public Microsoft.Xrm.Sdk.EntityReference OwningTeam - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owningteam"); - } - } - - /// - /// Unique identifier for the user that owns the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] - public Microsoft.Xrm.Sdk.EntityReference OwningUser - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owninguser"); - } - } - - /// - /// Status of the Client Code - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] - public virtual DFA_ClientCode_StateCode? StateCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_ClientCode_StateCode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] - public string StateCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statecode")) - { - return this.FormattedValues["statecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Reason for the status of the Client Code - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] - public virtual DFA_ClientCode_StatusCode? StatusCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_ClientCode_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] - public string StatusCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statuscode")) - { - return this.FormattedValues["statuscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] - public System.Nullable TimeZoneRuleVersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("timezoneruleversionnumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("timezoneruleversionnumber", value); - } - } - - /// - /// Time zone code that was in use when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] - public System.Nullable UtcConversionTimeZoneCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("utcconversiontimezonecode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("utcconversiontimezonecode", value); - } - } - - /// - /// Version Number - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// 1:N dfa_dfa_clientcode_dfa_projectclaim_ClientCodeId - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_dfa_clientcode_dfa_projectclaim_ClientCodeId")] - public System.Collections.Generic.IEnumerable DFA_DFA_ClientCode_DFA_ProjectClaim_ClientCodeId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("dfa_dfa_clientcode_dfa_projectclaim_ClientCodeId", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("dfa_dfa_clientcode_dfa_projectclaim_ClientCodeId", null, value); - } - } - - /// - /// N:1 lk_dfa_clientcode_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_clientcode_createdby")] - public Database.Model.SystemUser Lk_DFA_ClientCode_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_dfa_clientcode_createdby", null); - } - } - - /// - /// N:1 lk_dfa_clientcode_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_clientcode_createdonbehalfby")] - public Database.Model.SystemUser Lk_DFA_ClientCode_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_dfa_clientcode_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_dfa_clientcode_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_dfa_clientcode_modifiedby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_clientcode_modifiedby")] - public Database.Model.SystemUser Lk_DFA_ClientCode_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_dfa_clientcode_modifiedby", null); - } - } - - /// - /// N:1 lk_dfa_clientcode_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_clientcode_modifiedonbehalfby")] - public Database.Model.SystemUser Lk_DFA_ClientCode_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_dfa_clientcode_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_dfa_clientcode_modifiedonbehalfby", null, value); - } - } - - /// - /// N:1 user_dfa_clientcode - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_dfa_clientcode")] - public Database.Model.SystemUser User_DFA_ClientCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("user_dfa_clientcode", null); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public DFA_ClientCode(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["dfa_clientcodeid"] = base.Id; - break; - case "dfa_clientcodeid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/Entities/DFA_ProjectClaim.cs b/Database/Model/Entities/DFA_ProjectClaim.cs deleted file mode 100644 index 57a0b8f..0000000 --- a/Database/Model/Entities/DFA_ProjectClaim.cs +++ /dev/null @@ -1,5400 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_ProjectClaim_DFA_ApprovalPendingRole - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Adjudicator", 0, "#0000ff")] - Adjudicator = 222710000, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Compliance Check", 1, "#0000ff")] - ComplianceCheck = 222710001, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Qualified Receiver", 2, "#0000ff")] - QualifiedReceiver = 222710002, - } - - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_ProjectClaim_DFA_Decision - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Approved", 0, "#0000ff")] - Approved = 222710000, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Approved with Exclusions", 3, "#0000ff")] - ApprovedWithExclusions = 222710003, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Ineligible", 1, "#0000ff")] - Ineligible = 222710001, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Withdrawn", 2, "#0000ff")] - Withdrawn = 222710002, - } - - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_ProjectClaim_DFA_DecisionCopy - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Approved", 0, "#0000ff")] - Approved = 222710000, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Approved with Exclusions", 3, "#0000ff")] - ApprovedWithExclusions = 222710003, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Ineligible", 1, "#0000ff")] - Ineligible = 222710001, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Withdrawn", 2, "#0000ff")] - Withdrawn = 222710002, - } - - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_ProjectClaim_DFA_FundedBy - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("CAS Payment", 0, "#0000ff")] - CasPayment = 222710000, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("From Advance", 1, "#0000ff")] - FromAdvance = 222710001, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Remaining Advance and CAS Payment", 2, "#0000ff")] - RemainingAdvanceAndCasPayment = 222710002, - } - - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_ProjectClaim_DFA_SubmittedBpf - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Pending", 0, "#0000ff")] - Pending = 222710000, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Received", 1, "#0000ff")] - Received = 222710001, - } - - /// - /// Status of the Recovery Claim - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_ProjectClaim_StateCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 1, - } - - /// - /// Reason for the status of the Recovery Claim - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_ProjectClaim_StatusCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Adjudicator", 6, "#0000ff")] - Adjudicator = 222710005, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Approval Pending", 3, "#0000ff")] - ApprovalPending = 222710002, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Closed", 5, "#0000ff")] - Closed_Active_222710004 = 222710004, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Closed", 10, "#0000ff")] - Closed_Active_222710009 = 222710009, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Compliance Check", 7, "#0000ff")] - ComplianceCheck = 222710006, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Decision Made", 4, "#0000ff")] - DecisionMade_Active_222710003 = 222710003, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Decision Made", 9, "#0000ff")] - DecisionMade_Active_222710008 = 222710008, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Draft", 0, "#0000ff")] - Draft = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Expense Authority", 11, "#0000ff")] - ExpenseAuthority = 222710010, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 12, "#0000ff")] - Inactive = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Qualified Receiver", 8, "#0000ff")] - QualifiedReceiver = 222710007, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Submitted", 1, "#0000ff")] - Submitted = 222710000, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Under Review", 2, "#0000ff")] - UnderReview = 222710001, - } - - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("dfa_projectclaim")] - public partial class DFA_ProjectClaim : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the dfa_projectclaim entity - /// - public partial class Fields - { - public const string CreatedBy = "createdby"; - public const string CreatedByName = "createdbyname"; - public const string CreatedByYomiName = "createdbyyominame"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string DFA_AdjudicatorAdditionalInForE = "dfa_adjudicatoradditionalinfore"; - public const string DFA_AdjudicatorAdditionalInForename = "dfa_adjudicatoradditionalinforename"; - public const string DFA_AdjudicatorBluebookRates = "dfa_adjudicatorbluebookrates"; - public const string DFA_AdjudicatorBluebookRatesName = "dfa_adjudicatorbluebookratesname"; - public const string DFA_AdjudicatorContracts = "dfa_adjudicatorcontracts"; - public const string DFA_AdjudicatorContractsName = "dfa_adjudicatorcontractsname"; - public const string DFA_AdjudicatorGeneralLedger = "dfa_adjudicatorgeneralledger"; - public const string DFA_AdjudicatorGeneralLedgerName = "dfa_adjudicatorgeneralledgername"; - public const string DFA_AdjudicatorOvertimeWageDocumentation = "dfa_adjudicatorovertimewagedocumentation"; - public const string DFA_AdjudicatorOvertimeWageDocumentationName = "dfa_adjudicatorovertimewagedocumentationname"; - public const string DFA_AdjudicatorProofOfPayment = "dfa_adjudicatorproofofpayment"; - public const string DFA_AdjudicatorProofOfPaymentName = "dfa_adjudicatorproofofpaymentname"; - public const string DFA_AdjudicatorReviewedInvoice = "dfa_adjudicatorreviewedinvoice"; - public const string DFA_AdjudicatorReviewedInvoiceName = "dfa_adjudicatorreviewedinvoicename"; - public const string DFA_AdjustmentClaimUnderReview = "dfa_adjustmentclaimunderreview"; - public const string DFA_AdjustmentClaimUnderReviewName = "dfa_adjustmentclaimunderreviewname"; - public const string DFA_AdvancedDrawDownAmount = "dfa_advanceddrawdownamount"; - public const string DFA_AdvancedDrawDownAmount_Base = "dfa_advanceddrawdownamount_base"; - public const string DFA_AdvancePaymentAmount = "dfa_advancepaymentamount"; - public const string DFA_AdvancePaymentAmount_Base = "dfa_advancepaymentamount_base"; - public const string DFA_ApprovalPendingAdditionalInfoRequested = "dfa_approvalpendingadditionalinforequested"; - public const string DFA_ApprovalPendingAdditionalInfoRequestedName = "dfa_approvalpendingadditionalinforequestedname"; - public const string DFA_ApprovalPendingInProgress = "dfa_approvalpendinginprogress"; - public const string DFA_ApprovalPendingInProgressName = "dfa_approvalpendinginprogressname"; - public const string DFA_ApprovalPendingRole = "dfa_approvalpendingrole"; - public const string DFA_ApprovalPendingRoleName = "dfa_approvalpendingrolename"; - public const string DFA_ApprovedTotal = "dfa_approvedtotal"; - public const string DFA_ApprovedTotal_Base = "dfa_approvedtotal_base"; - public const string DFA_ApprovedTotal_Date = "dfa_approvedtotal_date"; - public const string DFA_ApprovedTotal_State = "dfa_approvedtotal_state"; - public const string DFA_ApprovedTotalCopy = "dfa_approvedtotalcopy"; - public const string DFA_ApprovedTotalCopy_Base = "dfa_approvedtotalcopy_base"; - public const string DFA_ApprovedTotalMinusCostSharing = "dfa_approvedtotalminuscostsharing"; - public const string DFA_ApprovedTotalMinusCostSharing_Base = "dfa_approvedtotalminuscostsharing_base"; - public const string DFA_ApprovedTotalMinusCostSharingCopy = "dfa_approvedtotalminuscostsharingcopy"; - public const string DFA_ApprovedTotalMinusCostSharingCopy_Base = "dfa_approvedtotalminuscostsharingcopy_base"; - public const string DFA_AssignedToAdjudicator = "dfa_assignedtoadjudicator"; - public const string DFA_AssignedToAdjudicatorName = "dfa_assignedtoadjudicatorname"; - public const string DFA_BpfClosedAte = "dfa_bpfclosedate"; - public const string DFA_CaseId = "dfa_caseid"; - public const string DFA_CaseiDnaMe = "dfa_caseidname"; - public const string DFA_CasInvoiceAmount = "dfa_casinvoiceamount"; - public const string DFA_CasInvoiceAmount_Base = "dfa_casinvoiceamount_base"; - public const string DFA_CasInvoiceStatus = "dfa_casinvoicestatus"; - public const string DFA_CasPaymentAmount = "dfa_caspaymentamount"; - public const string DFA_CasPaymentAmount_Base = "dfa_caspaymentamount_base"; - public const string DFA_CasPaymentDate = "dfa_caspaymentdate"; - public const string DFA_CasPaymentNumber = "dfa_caspaymentnumber"; - public const string DFA_CasPaymentStatus = "dfa_caspaymentstatus"; - public const string DFA_ClaimAmount = "dfa_claimamount"; - public const string DFA_ClaimAmount_Base = "dfa_claimamount_base"; - public const string DFA_ClaimBpfStages = "dfa_claimbpfstages"; - public const string DFA_ClaimBpfStagesName = "dfa_claimbpfstagesname"; - public const string DFA_ClaimBpfSubStages = "dfa_claimbpfsubstages"; - public const string DFA_ClaimBpfSubStagesName = "dfa_claimbpfsubstagesname"; - public const string DFA_ClaimEligibleGstCopy = "dfa_claimeligiblegstcopy"; - public const string DFA_ClaimEligibleGstCopy_Base = "dfa_claimeligiblegstcopy_base"; - public const string DFA_ClaimPaidDate = "dfa_claimpaiddate"; - public const string DFA_ClaimReceivedByEMCRDate = "dfa_claimreceivedbyemcrdate"; - public const string DFA_ClaimReceivedDate = "dfa_claimreceiveddate"; - public const string DFA_ClaimTotal = "dfa_claimtotal"; - public const string DFA_ClaimTotal_Base = "dfa_claimtotal_base"; - public const string DFA_ClaimTotal_Date = "dfa_claimtotal_date"; - public const string DFA_ClaimTotal_State = "dfa_claimtotal_state"; - public const string DFA_ClaimTotalCopy = "dfa_claimtotalcopy"; - public const string DFA_ClaimTotalCopy_Base = "dfa_claimtotalcopy_base"; - public const string DFA_ClaimType = "dfa_claimtype"; - public const string DFA_ClaimTypeName = "dfa_claimtypename"; - public const string DFA_ClientCodeId = "dfa_clientcodeid"; - public const string DFA_ClientCodeIdName = "dfa_clientcodeidname"; - public const string DFA_CodingBlockSubmissionStatus = "dfa_codingblocksubmissionstatus"; - public const string DFA_CodingBlockSubmissionStatusName = "dfa_codingblocksubmissionstatusname"; - public const string DFA_ComplianceCheckAdditionalInForE = "dfa_compliancecheckadditionalinfore"; - public const string DFA_ComplianceCheckAdditionalInForename = "dfa_compliancecheckadditionalinforename"; - public const string DFA_ComplianceCheckBluebookRates = "dfa_compliancecheckbluebookrates"; - public const string DFA_ComplianceCheckBluebookRatesName = "dfa_compliancecheckbluebookratesname"; - public const string DFA_ComplianceCheckContracts = "dfa_compliancecheckcontracts"; - public const string DFA_ComplianceCheckContractsName = "dfa_compliancecheckcontractsname"; - public const string DFA_ComplianceCheckGeneralLedger = "dfa_compliancecheckgeneralledger"; - public const string DFA_ComplianceCheckGeneralLedgerName = "dfa_compliancecheckgeneralledgername"; - public const string DFA_ComplianceCheckOvertimeWageDocumentation = "dfa_compliancecheckovertimewagedocumentation"; - public const string DFA_ComplianceCheckOvertimeWageDocumentationName = "dfa_compliancecheckovertimewagedocumentationname"; - public const string DFA_ComplianceCheckProofOfPayment = "dfa_compliancecheckproofofpayment"; - public const string DFA_ComplianceCheckProofOfPaymentName = "dfa_compliancecheckproofofpaymentname"; - public const string DFA_ComplianceCheckReviewedInvoice = "dfa_compliancecheckreviewedinvoice"; - public const string DFA_ComplianceCheckReviewedInvoiceName = "dfa_compliancecheckreviewedinvoicename"; - public const string DFA_CostSharing = "dfa_costsharing"; - public const string DFA_CostSharingAdjustment = "dfa_costsharingadjustment"; - public const string DFA_CostSharingAdjustment_Base = "dfa_costsharingadjustment_base"; - public const string DFA_CostSharingAdjustmentValue = "dfa_costsharingadjustmentvalue"; - public const string DFA_CostSharingAdjustmentValue_Base = "dfa_costsharingadjustmentvalue_base"; - public const string DFA_CostSharingTemp = "dfa_costsharingtemp"; - public const string DFA_CreatedOnPortal = "dfa_createdonportal"; - public const string DFA_CreatedOnPortalName = "dfa_createdonportalname"; - public const string DFA_DateGoodsAndServicesReceived = "dfa_dategoodsandservicesreceived"; - public const string DFA_DateReceivedInProvince = "dfa_datereceivedinprovince"; - public const string DFA_DateSentForEAApproval = "dfa_datesentforeaapproval"; - public const string DFA_Decision = "dfa_decision"; - public const string DFA_DecisionCopy = "dfa_decisioncopy"; - public const string DFA_DecisionCopyName = "dfa_decisioncopyname"; - public const string DFA_DecisionName = "dfa_decisionname"; - public const string DFA_DFA_ClientCode_DFA_ProjectClaim_ClientCodeId = "dfa_dfa_clientcode_dfa_projectclaim_ClientCodeId"; - public const string DFA_EAName = "dfa_eaname"; - public const string DFA_EANameName = "dfa_eanamename"; - public const string DFA_EANameYomiName = "dfa_eanameyominame"; - public const string DFA_EligiblePayable = "dfa_eligiblepayable"; - public const string DFA_EligiblePayable_Base = "dfa_eligiblepayable_base"; - public const string DFA_EligibleRecoveryPayableAt90 = "dfa_eligiblerecoverypayableat90"; - public const string DFA_EligibleRecoveryPayableAt90_Base = "dfa_eligiblerecoverypayableat90_base"; - public const string DFA_EMCR_ExpenseProject_DFA_ProjectClaim_ProjectNumber = "dfa_emcr_expenseproject_dfa_projectclaim_ProjectNumber"; - public const string DFA_EMCR_ResponsibilityCentre_DFA_ProjectClaim_Resp = "dfa_emcr_responsibilitycentre_dfa_projectclaim_RESP"; - public const string DFA_EMCR_ServiceLine_DFA_ProjectClaim_ServiceLine = "dfa_emcr_serviceline_dfa_projectclaim_ServiceLine"; - public const string DFA_EMCR_Stob_DFA_ProjectClaim_Stob = "dfa_emcr_stob_dfa_projectclaim_STOB"; - public const string DFA_EmployeeNumber = "dfa_employeenumber"; - public const string DFA_ExpenseAuthority = "dfa_expenseauthority"; - public const string DFA_ExpenseAuthorityAdditionalInForE = "dfa_expenseauthorityadditionalinfore"; - public const string DFA_ExpenseAuthorityAdditionalInForename = "dfa_expenseauthorityadditionalinforename"; - public const string DFA_ExpenseAuthorityBluebookRates = "dfa_expenseauthoritybluebookrates"; - public const string DFA_ExpenseAuthorityBluebookRatesName = "dfa_expenseauthoritybluebookratesname"; - public const string DFA_ExpenseAuthorityContracts = "dfa_expenseauthoritycontracts"; - public const string DFA_ExpenseAuthorityContractsName = "dfa_expenseauthoritycontractsname"; - public const string DFA_ExpenseAuthorityGeneralLedger = "dfa_expenseauthoritygeneralledger"; - public const string DFA_ExpenseAuthorityGeneralLedgerName = "dfa_expenseauthoritygeneralledgername"; - public const string DFA_ExpenseAuthorityName = "dfa_expenseauthorityname"; - public const string DFA_ExpenseAuthorityOvertimeWageDocumentation = "dfa_expenseauthorityovertimewagedocumentation"; - public const string DFA_ExpenseAuthorityOvertimeWageDocumentationName = "dfa_expenseauthorityovertimewagedocumentationname"; - public const string DFA_ExpenseAuthorityProofOfPayment = "dfa_expenseauthorityproofofpayment"; - public const string DFA_ExpenseAuthorityProofOfPaymentName = "dfa_expenseauthorityproofofpaymentname"; - public const string DFA_ExpenseAuthorityReviewedInvoice = "dfa_expenseauthorityreviewedinvoice"; - public const string DFA_ExpenseAuthorityReviewedInvoiceName = "dfa_expenseauthorityreviewedinvoicename"; - public const string DFA_FinalClaim = "dfa_finalclaim"; - public const string DFA_FinalClaimName = "dfa_finalclaimname"; - public const string DFA_FundedBy = "dfa_fundedby"; - public const string DFA_FundedByName = "dfa_fundedbyname"; - public const string DFA_Gst5 = "dfa_gst5"; - public const string DFA_Gst5_Base = "dfa_gst5_base"; - public const string DFA_IncludedInAdvancedPaymentCalculations = "dfa_includedinadvancedpaymentcalculations"; - public const string DFA_IncludedInAdvancedPaymentCalculationsName = "dfa_includedinadvancedpaymentcalculationsname"; - public const string DFA_InvoiceChange = "dfa_invoicechange"; - public const string DFA_InvoiceChangeName = "dfa_invoicechangename"; - public const string DFA_InvoiceDate = "dfa_invoicedate"; - public const string DFA_InvoiceNumber = "dfa_invoicenumber"; - public const string DFA_InvoiceTotal = "dfa_invoicetotal"; - public const string DFA_InvoiceTotal_Base = "dfa_invoicetotal_base"; - public const string DFA_IsAdjustmentClaim = "dfa_isadjustmentclaim"; - public const string DFA_IsAdjustmentClaimName = "dfa_isadjustmentclaimname"; - public const string DFA_IsFirstClaim = "dfa_isfirstclaim"; - public const string DFA_IsFirstClaimName = "dfa_isfirstclaimname"; - public const string DFA_LastCodingBlockSubmissionError = "dfa_lastcodingblocksubmissionerror"; - public const string DFA_LessFirst1000 = "dfa_lessfirst1000"; - public const string DFA_LessFirst1000_Base = "dfa_lessfirst1000_base"; - public const string DFA_Name = "dfa_name"; - public const string DFA_OnetimeDeductionAmount = "dfa_onetimedeductionamount"; - public const string DFA_OnetimeDeductionAmount_Base = "dfa_onetimedeductionamount_base"; - public const string DFA_PaidClaimAmount = "dfa_paidclaimamount"; - public const string DFA_PaidClaimAmount_Base = "dfa_paidclaimamount_base"; - public const string DFA_PayGroupType = "dfa_paygrouptype"; - public const string DFA_PayGroupTypeName = "dfa_paygrouptypename"; - public const string DFA_PaymentAdviceComments = "dfa_paymentadvicecomments"; - public const string DFA_PortalSubmitted = "dfa_portalsubmitted"; - public const string DFA_PortalSubmittedName = "dfa_portalsubmittedname"; - public const string DFA_ProjectClaimId = "dfa_projectclaimid"; - public const string Id = "dfa_projectclaimid"; - public const string DFA_ProjectNumber = "dfa_projectnumber"; - public const string DFA_ProjectNumberName = "dfa_projectnumbername"; - public const string DFA_ProjectStatusReportId = "dfa_projectstatusreportid"; - public const string DFA_ProjectStatusReportIdName = "dfa_projectstatusreportidname"; - public const string DFA_Purpose = "dfa_purpose"; - public const string DFA_QualifiedReceiver = "dfa_qualifiedreceiver"; - public const string DFA_QualifiedReceiverAdditionalInForE = "dfa_qualifiedreceiveradditionalinfore"; - public const string DFA_QualifiedReceiverAdditionalInForename = "dfa_qualifiedreceiveradditionalinforename"; - public const string DFA_QualifiedReceiverBluebookRates = "dfa_qualifiedreceiverbluebookrates"; - public const string DFA_QualifiedReceiverBluebookRatesName = "dfa_qualifiedreceiverbluebookratesname"; - public const string DFA_QualifiedReceiverContracts = "dfa_qualifiedreceivercontracts"; - public const string DFA_QualifiedReceiverContractsName = "dfa_qualifiedreceivercontractsname"; - public const string DFA_QualifiedReceiverGeneralLedger = "dfa_qualifiedreceivergeneralledger"; - public const string DFA_QualifiedReceiverGeneralLedgerName = "dfa_qualifiedreceivergeneralledgername"; - public const string DFA_QualifiedReceiverName = "dfa_qualifiedreceivername"; - public const string DFA_QualifiedReceiverOvertimeWageDocumentAtIo = "dfa_qualifiedreceiverovertimewagedocumentatio"; - public const string DFA_QualifiedReceiverOvertimeWageDocumentationAmE = "dfa_qualifiedreceiverovertimewagedocumentationame"; - public const string DFA_QualifiedReceiverProofOfPayment = "dfa_qualifiedreceiverproofofpayment"; - public const string DFA_QualifiedReceiverProofOfPaymentName = "dfa_qualifiedreceiverproofofpaymentname"; - public const string DFA_QualifiedReceiverReviewedInvoice = "dfa_qualifiedreceiverreviewedinvoice"; - public const string DFA_QualifiedReceiverReviewedInvoiceName = "dfa_qualifiedreceiverreviewedinvoicename"; - public const string DFA_QualifiedReceiverYomiName = "dfa_qualifiedreceiveryominame"; - public const string DFA_ReadyForEAReview = "dfa_readyforeareview"; - public const string DFA_ReadyForEAReviewName = "dfa_readyforeareviewname"; - public const string DFA_RecommendAtaIon = "dfa_recommendataion"; - public const string DFA_RecoveryPlanId = "dfa_recoveryplanid"; - public const string DFA_RecoveryPlanIdName = "dfa_recoveryplanidname"; - public const string DFA_Resp = "dfa_resp"; - public const string DFA_RespName = "dfa_respname"; - public const string DFA_S3ValidationPassed = "dfa_s3validationpassed"; - public const string DFA_S3ValidationPassedName = "dfa_s3validationpassedname"; - public const string DFA_S3ValidationResult = "dfa_s3validationresult"; - public const string DFA_S3ValidationTrigger = "dfa_s3validationtrigger"; - public const string DFA_SelectedSupplierApiResponse = "dfa_selectedsupplierapiresponse"; - public const string DFA_ServiceLine = "dfa_serviceline"; - public const string DFA_ServiceLineName = "dfa_servicelinename"; - public const string DFA_Site = "dfa_site"; - public const string DFA_StageAdjudicator = "dfa_stageadjudicator"; - public const string DFA_StageApprovedPending = "dfa_stageapprovedpending"; - public const string DFA_StageClosed = "dfa_stageclosed"; - public const string DFA_StageComplianceCheck = "dfa_stagecompliancecheck"; - public const string DFA_StageDecisionMade = "dfa_stagedecisionmade"; - public const string DFA_StageDraft = "dfa_stagedraft"; - public const string DFA_StageExpenseAuthority = "dfa_stageexpenseauthority"; - public const string DFA_StageQualifiedReceiver = "dfa_stagequalifiedreceiver"; - public const string DFA_StageSubmitted = "dfa_stagesubmitted"; - public const string DFA_StageUnderReview = "dfa_stageunderreview"; - public const string DFA_Stob = "dfa_stob"; - public const string DFA_StobName = "dfa_stobname"; - public const string DFA_Submitted = "dfa_submitted"; - public const string DFA_SubmittedBpf = "dfa_submittedbpf"; - public const string DFA_SubmittedBpfName = "dfa_submittedbpfname"; - public const string DFA_SubmittedName = "dfa_submittedname"; - public const string DFA_SupplierName = "dfa_suppliername"; - public const string DFA_SupplierNumber = "dfa_suppliernumber"; - public const string DFA_SystemUser_DFA_ProjectClaim_EAnaMe = "dfa_systemuser_dfa_projectclaim_EAName"; - public const string DFA_SystemUser_DFA_ProjectClaim_QualifiedReceiver = "dfa_systemuser_dfa_projectclaim_QualifiedReceiver"; - public const string DFA_TempApproval = "dfa_tempapproval"; - public const string DFA_TempApprovalName = "dfa_tempapprovalname"; - public const string DFA_TotalActualClaim = "dfa_totalactualclaim"; - public const string DFA_TotalActualClaim_Base = "dfa_totalactualclaim_base"; - public const string DFA_TotalActualClaim_Date = "dfa_totalactualclaim_date"; - public const string DFA_TotalActualClaim_State = "dfa_totalactualclaim_state"; - public const string DFA_TotalActualClaimCopy = "dfa_totalactualclaimcopy"; - public const string DFA_TotalActualClaimCopy_Base = "dfa_totalactualclaimcopy_base"; - public const string DFA_TotalActualInvoice = "dfa_totalactualinvoice"; - public const string DFA_TotalActualInvoice_Base = "dfa_totalactualinvoice_base"; - public const string DFA_TotalApproved = "dfa_totalapproved"; - public const string DFA_TotalApproved_Base = "dfa_totalapproved_base"; - public const string DFA_TotalApproved_Date = "dfa_totalapproved_date"; - public const string DFA_TotalApproved_State = "dfa_totalapproved_state"; - public const string DFA_TotalBeforeTax = "dfa_totalbeforetax"; - public const string DFA_TotalBeforeTax_Base = "dfa_totalbeforetax_base"; - public const string DFA_TotalEligibleGst = "dfa_totaleligiblegst"; - public const string DFA_TotalEligibleGst_Base = "dfa_totaleligiblegst_base"; - public const string DFA_TotalEligibleGst_Date = "dfa_totaleligiblegst_date"; - public const string DFA_TotalEligibleGst_State = "dfa_totaleligiblegst_state"; - public const string DFA_TotalEligibleGstCopy = "dfa_totaleligiblegstcopy"; - public const string DFA_TotalEligibleGstCopy_Base = "dfa_totaleligiblegstcopy_base"; - public const string DFA_TotalGrossGst = "dfa_totalgrossgst"; - public const string DFA_TotalGrossGst_Base = "dfa_totalgrossgst_base"; - public const string DFA_TotalGrossGst_Date = "dfa_totalgrossgst_date"; - public const string DFA_TotalGrossGst_State = "dfa_totalgrossgst_state"; - public const string DFA_TotalGrossGstCopy = "dfa_totalgrossgstcopy"; - public const string DFA_TotalGrossGstCopy_Base = "dfa_totalgrossgstcopy_base"; - public const string DFA_TotalNetInvoicedBeingClaimed = "dfa_totalnetinvoicedbeingclaimed"; - public const string DFA_TotalNetInvoicedBeingClaimed_Base = "dfa_totalnetinvoicedbeingclaimed_base"; - public const string DFA_TotalNetInvoicedBeingClaimed_Date = "dfa_totalnetinvoicedbeingclaimed_date"; - public const string DFA_TotalNetInvoicedBeingClaimed_State = "dfa_totalnetinvoicedbeingclaimed_state"; - public const string DFA_TotalNetInvoicedBeingClaimedCopy = "dfa_totalnetinvoicedbeingclaimedcopy"; - public const string DFA_TotalNetInvoicedBeingClaimedCopy_Base = "dfa_totalnetinvoicedbeingclaimedcopy_base"; - public const string DFA_TotalOfTotalEligible = "dfa_totaloftotaleligible"; - public const string DFA_TotalOfTotalEligible_Base = "dfa_totaloftotaleligible_base"; - public const string DFA_TotalPaid = "dfa_totalpaid"; - public const string DFA_TotalPaid_Base = "dfa_totalpaid_base"; - public const string DFA_TotalPst = "dfa_totalpst"; - public const string DFA_TotalPst_Base = "dfa_totalpst_base"; - public const string DFA_TotalPst_Date = "dfa_totalpst_date"; - public const string DFA_TotalPst_State = "dfa_totalpst_state"; - public const string DFA_TotalPstCopy = "dfa_totalpstcopy"; - public const string DFA_TotalPstCopy_Base = "dfa_totalpstcopy_base"; - public const string DFA_UnderReviewAdditionalInfoRequested = "dfa_underreviewadditionalinforequested"; - public const string DFA_UnderReviewAdditionalInfoRequestedName = "dfa_underreviewadditionalinforequestedname"; - public const string DFA_UnderReviewInProgress = "dfa_underreviewinprogress"; - public const string DFA_UnderReviewInProgressName = "dfa_underreviewinprogressname"; - public const string ExchangerAte = "exchangerate"; - public const string ImportSequenceNumber = "importsequencenumber"; - public const string Lk_DFA_ProjectClaim_CreatedBy = "lk_dfa_projectclaim_createdby"; - public const string Lk_DFA_ProjectClaim_CreatedOnBehalfBy = "lk_dfa_projectclaim_createdonbehalfby"; - public const string Lk_DFA_ProjectClaim_ModifiedBy = "lk_dfa_projectclaim_modifiedby"; - public const string Lk_DFA_ProjectClaim_ModifiedOnBehalfBy = "lk_dfa_projectclaim_modifiedonbehalfby"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedByYomiName = "modifiedbyyominame"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string OverriddenCreatedOn = "overriddencreatedon"; - public const string OwnerId = "ownerid"; - public const string OwnerIdName = "owneridname"; - public const string OwnerIdYomiName = "owneridyominame"; - public const string OwningBusinessUnit = "owningbusinessunit"; - public const string OwningTeam = "owningteam"; - public const string OwningUser = "owninguser"; - public const string ProcessId = "processid"; - public const string StageId = "stageid"; - public const string StateCode = "statecode"; - public const string StateCodename = "statecodename"; - public const string StatusCode = "statuscode"; - public const string StatusCodename = "statuscodename"; - public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; - public const string TransactionCurrencyId = "transactioncurrencyid"; - public const string TransactionCurrencyIdName = "transactioncurrencyidname"; - public const string TraversedPath = "traversedpath"; - public const string User_DFA_ProjectClaim = "user_dfa_projectclaim"; - public const string UtcConversionTimeZoneCode = "utcconversiontimezonecode"; - public const string VersionNumber = "versionnumber"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public DFA_ProjectClaim(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public DFA_ProjectClaim(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public DFA_ProjectClaim(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - public const string AlternateKeys = "dfa_name"; - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public DFA_ProjectClaim() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "dfa_projectclaimid"; - - public const string PrimaryNameAttribute = "dfa_name"; - - public const string EntitySchemaName = "dfa_projectclaim"; - - public const string EntityLogicalName = "dfa_projectclaim"; - - public const string EntityLogicalCollectionName = "dfa_projectclaims"; - - public const string EntitySetName = "dfa_projectclaims"; - - /// - /// Unique identifier of the user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] - public string CreatedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatoradditionalinfore")] - public System.Nullable DFA_AdjudicatorAdditionalInForE - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_adjudicatoradditionalinfore"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_adjudicatoradditionalinfore", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatoradditionalinforename")] - public string DFA_AdjudicatorAdditionalInForename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_adjudicatoradditionalinfore")) - { - return this.FormattedValues["dfa_adjudicatoradditionalinfore"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatorbluebookrates")] - public System.Nullable DFA_AdjudicatorBluebookRates - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_adjudicatorbluebookrates"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_adjudicatorbluebookrates", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatorbluebookratesname")] - public string DFA_AdjudicatorBluebookRatesName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_adjudicatorbluebookrates")) - { - return this.FormattedValues["dfa_adjudicatorbluebookrates"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatorcontracts")] - public System.Nullable DFA_AdjudicatorContracts - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_adjudicatorcontracts"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_adjudicatorcontracts", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatorcontractsname")] - public string DFA_AdjudicatorContractsName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_adjudicatorcontracts")) - { - return this.FormattedValues["dfa_adjudicatorcontracts"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatorgeneralledger")] - public System.Nullable DFA_AdjudicatorGeneralLedger - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_adjudicatorgeneralledger"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_adjudicatorgeneralledger", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatorgeneralledgername")] - public string DFA_AdjudicatorGeneralLedgerName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_adjudicatorgeneralledger")) - { - return this.FormattedValues["dfa_adjudicatorgeneralledger"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatorovertimewagedocumentation")] - public System.Nullable DFA_AdjudicatorOvertimeWageDocumentation - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_adjudicatorovertimewagedocumentation"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_adjudicatorovertimewagedocumentation", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatorovertimewagedocumentationname")] - public string DFA_AdjudicatorOvertimeWageDocumentationName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_adjudicatorovertimewagedocumentation")) - { - return this.FormattedValues["dfa_adjudicatorovertimewagedocumentation"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatorproofofpayment")] - public System.Nullable DFA_AdjudicatorProofOfPayment - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_adjudicatorproofofpayment"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_adjudicatorproofofpayment", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatorproofofpaymentname")] - public string DFA_AdjudicatorProofOfPaymentName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_adjudicatorproofofpayment")) - { - return this.FormattedValues["dfa_adjudicatorproofofpayment"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatorreviewedinvoice")] - public System.Nullable DFA_AdjudicatorReviewedInvoice - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_adjudicatorreviewedinvoice"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_adjudicatorreviewedinvoice", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjudicatorreviewedinvoicename")] - public string DFA_AdjudicatorReviewedInvoiceName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_adjudicatorreviewedinvoice")) - { - return this.FormattedValues["dfa_adjudicatorreviewedinvoice"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjustmentclaimunderreview")] - public System.Nullable DFA_AdjustmentClaimUnderReview - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_adjustmentclaimunderreview"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_adjustmentclaimunderreview", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_adjustmentclaimunderreviewname")] - public string DFA_AdjustmentClaimUnderReviewName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_adjustmentclaimunderreview")) - { - return this.FormattedValues["dfa_adjustmentclaimunderreview"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_advanceddrawdownamount")] - public Microsoft.Xrm.Sdk.Money DFA_AdvancedDrawDownAmount - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_advanceddrawdownamount"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_advanceddrawdownamount", value); - } - } - - /// - /// Value of the Advanced Drawdown Amount in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_advanceddrawdownamount_base")] - public Microsoft.Xrm.Sdk.Money DFA_AdvancedDrawDownAmount_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_advanceddrawdownamount_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_advancepaymentamount")] - public Microsoft.Xrm.Sdk.Money DFA_AdvancePaymentAmount - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_advancepaymentamount"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_advancepaymentamount", value); - } - } - - /// - /// Value of the Advance Payment Amount in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_advancepaymentamount_base")] - public Microsoft.Xrm.Sdk.Money DFA_AdvancePaymentAmount_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_advancepaymentamount_base"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_advancepaymentamount_base", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvalpendingadditionalinforequested")] - public System.Nullable DFA_ApprovalPendingAdditionalInfoRequested - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_approvalpendingadditionalinforequested"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_approvalpendingadditionalinforequested", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvalpendingadditionalinforequestedname")] - public string DFA_ApprovalPendingAdditionalInfoRequestedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_approvalpendingadditionalinforequested")) - { - return this.FormattedValues["dfa_approvalpendingadditionalinforequested"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvalpendinginprogress")] - public System.Nullable DFA_ApprovalPendingInProgress - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_approvalpendinginprogress"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_approvalpendinginprogress", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvalpendinginprogressname")] - public string DFA_ApprovalPendingInProgressName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_approvalpendinginprogress")) - { - return this.FormattedValues["dfa_approvalpendinginprogress"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvalpendingrole")] - public virtual DFA_ProjectClaim_DFA_ApprovalPendingRole? DFA_ApprovalPendingRole - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_ProjectClaim_DFA_ApprovalPendingRole?)(EntityOptionSetEnum.GetEnum(this, "dfa_approvalpendingrole"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_approvalpendingrole", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvalpendingrolename")] - public string DFA_ApprovalPendingRoleName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_approvalpendingrole")) - { - return this.FormattedValues["dfa_approvalpendingrole"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvedtotal")] - public Microsoft.Xrm.Sdk.Money DFA_ApprovedTotal - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_approvedtotal"); - } - } - - /// - /// Value of the Approved Total in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvedtotal_base")] - public Microsoft.Xrm.Sdk.Money DFA_ApprovedTotal_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_approvedtotal_base"); - } - } - - /// - /// Last Updated time of rollup field Approved Total. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvedtotal_date")] - public System.Nullable DFA_ApprovedTotal_Date - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_approvedtotal_date"); - } - } - - /// - /// State of rollup field Approved Total. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvedtotal_state")] - public System.Nullable DFA_ApprovedTotal_State - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_approvedtotal_state"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvedtotalcopy")] - public Microsoft.Xrm.Sdk.Money DFA_ApprovedTotalCopy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_approvedtotalcopy"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_approvedtotalcopy", value); - } - } - - /// - /// Value of the Approved Total Copy in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvedtotalcopy_base")] - public Microsoft.Xrm.Sdk.Money DFA_ApprovedTotalCopy_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_approvedtotalcopy_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvedtotalminuscostsharing")] - public Microsoft.Xrm.Sdk.Money DFA_ApprovedTotalMinusCostSharing - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_approvedtotalminuscostsharing"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_approvedtotalminuscostsharing", value); - } - } - - /// - /// Value of the Approved Total minus Cost Sharing in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvedtotalminuscostsharing_base")] - public Microsoft.Xrm.Sdk.Money DFA_ApprovedTotalMinusCostSharing_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_approvedtotalminuscostsharing_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvedtotalminuscostsharingcopy")] - public Microsoft.Xrm.Sdk.Money DFA_ApprovedTotalMinusCostSharingCopy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_approvedtotalminuscostsharingcopy"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_approvedtotalminuscostsharingcopy", value); - } - } - - /// - /// Value of the Approved Total minus Cost Sharing Copy in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_approvedtotalminuscostsharingcopy_base")] - public Microsoft.Xrm.Sdk.Money DFA_ApprovedTotalMinusCostSharingCopy_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_approvedtotalminuscostsharingcopy_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_assignedtoadjudicator")] - public System.Nullable DFA_AssignedToAdjudicator - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_assignedtoadjudicator"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_assignedtoadjudicator", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_assignedtoadjudicatorname")] - public string DFA_AssignedToAdjudicatorName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_assignedtoadjudicator")) - { - return this.FormattedValues["dfa_assignedtoadjudicator"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_bpfclosedate")] - public System.Nullable DFA_BpfClosedAte - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_bpfclosedate"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_bpfclosedate", value); - } - } - - /// - /// Unique identifier for Case associated with Recovery Claim. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_caseid")] - public Microsoft.Xrm.Sdk.EntityReference DFA_CaseId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_caseid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_caseid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_caseidname")] - public string DFA_CaseiDnaMe - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_caseid")) - { - return this.FormattedValues["dfa_caseid"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_casinvoiceamount")] - public Microsoft.Xrm.Sdk.Money DFA_CasInvoiceAmount - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_casinvoiceamount"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_casinvoiceamount", value); - } - } - - /// - /// Value of the CAS Invoice Amount in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_casinvoiceamount_base")] - public Microsoft.Xrm.Sdk.Money DFA_CasInvoiceAmount_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_casinvoiceamount_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_casinvoicestatus")] - public string DFA_CasInvoiceStatus - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_casinvoicestatus"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_casinvoicestatus", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_caspaymentamount")] - public Microsoft.Xrm.Sdk.Money DFA_CasPaymentAmount - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_caspaymentamount"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_caspaymentamount", value); - } - } - - /// - /// Value of the CAS Payment Amount in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_caspaymentamount_base")] - public Microsoft.Xrm.Sdk.Money DFA_CasPaymentAmount_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_caspaymentamount_base"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_caspaymentamount_base", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_caspaymentdate")] - public System.Nullable DFA_CasPaymentDate - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_caspaymentdate"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_caspaymentdate", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_caspaymentnumber")] - public string DFA_CasPaymentNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_caspaymentnumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_caspaymentnumber", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_caspaymentstatus")] - public string DFA_CasPaymentStatus - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_caspaymentstatus"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_caspaymentstatus", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimamount")] - public Microsoft.Xrm.Sdk.Money DFA_ClaimAmount - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_claimamount"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_claimamount", value); - } - } - - /// - /// Value of the Claim Amount in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimamount_base")] - public Microsoft.Xrm.Sdk.Money DFA_ClaimAmount_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_claimamount_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimbpfstages")] - public virtual DFA_ClaimBusinessProcessStages? DFA_ClaimBpfStages - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_ClaimBusinessProcessStages?)(EntityOptionSetEnum.GetEnum(this, "dfa_claimbpfstages"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_claimbpfstages", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimbpfstagesname")] - public string DFA_ClaimBpfStagesName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_claimbpfstages")) - { - return this.FormattedValues["dfa_claimbpfstages"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimbpfsubstages")] - public virtual DFA_ClaimBpfSubStages? DFA_ClaimBpfSubStages - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_ClaimBpfSubStages?)(EntityOptionSetEnum.GetEnum(this, "dfa_claimbpfsubstages"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_claimbpfsubstages", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimbpfsubstagesname")] - public string DFA_ClaimBpfSubStagesName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_claimbpfsubstages")) - { - return this.FormattedValues["dfa_claimbpfsubstages"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimeligiblegstcopy")] - public Microsoft.Xrm.Sdk.Money DFA_ClaimEligibleGstCopy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_claimeligiblegstcopy"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_claimeligiblegstcopy", value); - } - } - - /// - /// Value of the Claim Eligible GST Copy in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimeligiblegstcopy_base")] - public Microsoft.Xrm.Sdk.Money DFA_ClaimEligibleGstCopy_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_claimeligiblegstcopy_base"); - } - } - - /// - /// The date the payment was made to the governing body. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimpaiddate")] - public System.Nullable DFA_ClaimPaidDate - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_claimpaiddate"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_claimpaiddate", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimreceivedbyemcrdate")] - public System.Nullable DFA_ClaimReceivedByEMCRDate - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_claimreceivedbyemcrdate"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_claimreceivedbyemcrdate", value); - } - } - - /// - /// The date the claim was submitted from the portal. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimreceiveddate")] - public System.Nullable DFA_ClaimReceivedDate - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_claimreceiveddate"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_claimreceiveddate", value); - } - } - - /// - /// The amount that is being claimed from all the invoices; the total of 'Total being claimed'. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimtotal")] - public Microsoft.Xrm.Sdk.Money DFA_ClaimTotal - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_claimtotal"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_claimtotal", value); - } - } - - /// - /// Value of the Claim Total in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimtotal_base")] - public Microsoft.Xrm.Sdk.Money DFA_ClaimTotal_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_claimtotal_base"); - } - } - - /// - /// Last Updated time of rollup field Claim total. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimtotal_date")] - public System.Nullable DFA_ClaimTotal_Date - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_claimtotal_date"); - } - } - - /// - /// State of rollup field Claim total. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimtotal_state")] - public System.Nullable DFA_ClaimTotal_State - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_claimtotal_state"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimtotalcopy")] - public Microsoft.Xrm.Sdk.Money DFA_ClaimTotalCopy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_claimtotalcopy"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_claimtotalcopy", value); - } - } - - /// - /// Value of the Claim Total Copy in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimtotalcopy_base")] - public Microsoft.Xrm.Sdk.Money DFA_ClaimTotalCopy_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_claimtotalcopy_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimtype")] - public virtual DFA_RecoveryClaimType? DFA_ClaimType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_RecoveryClaimType?)(EntityOptionSetEnum.GetEnum(this, "dfa_claimtype"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_claimtype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_claimtypename")] - public string DFA_ClaimTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_claimtype")) - { - return this.FormattedValues["dfa_claimtype"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_clientcodeid")] - public Microsoft.Xrm.Sdk.EntityReference DFA_ClientCodeId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_clientcodeid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_clientcodeid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_clientcodeidname")] - public string DFA_ClientCodeIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_clientcodeid")) - { - return this.FormattedValues["dfa_clientcodeid"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_codingblocksubmissionstatus")] - public virtual DFA_CodingBlockSubmissionStatus? DFA_CodingBlockSubmissionStatus - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_CodingBlockSubmissionStatus?)(EntityOptionSetEnum.GetEnum(this, "dfa_codingblocksubmissionstatus"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_codingblocksubmissionstatus", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_codingblocksubmissionstatusname")] - public string DFA_CodingBlockSubmissionStatusName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_codingblocksubmissionstatus")) - { - return this.FormattedValues["dfa_codingblocksubmissionstatus"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckadditionalinfore")] - public System.Nullable DFA_ComplianceCheckAdditionalInForE - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_compliancecheckadditionalinfore"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_compliancecheckadditionalinfore", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckadditionalinforename")] - public string DFA_ComplianceCheckAdditionalInForename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_compliancecheckadditionalinfore")) - { - return this.FormattedValues["dfa_compliancecheckadditionalinfore"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckbluebookrates")] - public System.Nullable DFA_ComplianceCheckBluebookRates - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_compliancecheckbluebookrates"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_compliancecheckbluebookrates", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckbluebookratesname")] - public string DFA_ComplianceCheckBluebookRatesName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_compliancecheckbluebookrates")) - { - return this.FormattedValues["dfa_compliancecheckbluebookrates"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckcontracts")] - public System.Nullable DFA_ComplianceCheckContracts - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_compliancecheckcontracts"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_compliancecheckcontracts", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckcontractsname")] - public string DFA_ComplianceCheckContractsName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_compliancecheckcontracts")) - { - return this.FormattedValues["dfa_compliancecheckcontracts"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckgeneralledger")] - public System.Nullable DFA_ComplianceCheckGeneralLedger - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_compliancecheckgeneralledger"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_compliancecheckgeneralledger", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckgeneralledgername")] - public string DFA_ComplianceCheckGeneralLedgerName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_compliancecheckgeneralledger")) - { - return this.FormattedValues["dfa_compliancecheckgeneralledger"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckovertimewagedocumentation")] - public System.Nullable DFA_ComplianceCheckOvertimeWageDocumentation - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_compliancecheckovertimewagedocumentation"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_compliancecheckovertimewagedocumentation", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckovertimewagedocumentationname")] - public string DFA_ComplianceCheckOvertimeWageDocumentationName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_compliancecheckovertimewagedocumentation")) - { - return this.FormattedValues["dfa_compliancecheckovertimewagedocumentation"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckproofofpayment")] - public System.Nullable DFA_ComplianceCheckProofOfPayment - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_compliancecheckproofofpayment"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_compliancecheckproofofpayment", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckproofofpaymentname")] - public string DFA_ComplianceCheckProofOfPaymentName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_compliancecheckproofofpayment")) - { - return this.FormattedValues["dfa_compliancecheckproofofpayment"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckreviewedinvoice")] - public System.Nullable DFA_ComplianceCheckReviewedInvoice - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_compliancecheckreviewedinvoice"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_compliancecheckreviewedinvoice", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_compliancecheckreviewedinvoicename")] - public string DFA_ComplianceCheckReviewedInvoiceName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_compliancecheckreviewedinvoice")) - { - return this.FormattedValues["dfa_compliancecheckreviewedinvoice"]; - } - else - { - return default(string); - } - } - } - - /// - /// This is the reimbursement % approved by DFA based on the Estimated Reimbursement % or the result of the Cost Share Calculation. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_costsharing")] - public System.Nullable DFA_CostSharing - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_costsharing"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_costsharing", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_costsharingadjustment")] - public Microsoft.Xrm.Sdk.Money DFA_CostSharingAdjustment - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_costsharingadjustment"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_costsharingadjustment", value); - } - } - - /// - /// Value of the Cost Sharing Adjustment in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_costsharingadjustment_base")] - public Microsoft.Xrm.Sdk.Money DFA_CostSharingAdjustment_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_costsharingadjustment_base"); - } - } - - /// - /// The amount that is to be paid as a result of changing the approved reimbursement %. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_costsharingadjustmentvalue")] - public Microsoft.Xrm.Sdk.Money DFA_CostSharingAdjustmentValue - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_costsharingadjustmentvalue"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_costsharingadjustmentvalue", value); - } - } - - /// - /// Value of the Cost Sharing Adjustment Value in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_costsharingadjustmentvalue_base")] - public Microsoft.Xrm.Sdk.Money DFA_CostSharingAdjustmentValue_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_costsharingadjustmentvalue_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_costsharingtemp")] - public System.Nullable DFA_CostSharingTemp - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_costsharingtemp"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_costsharingtemp", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_createdonportal")] - public System.Nullable DFA_CreatedOnPortal - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_createdonportal"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_createdonportal", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_createdonportalname")] - public string DFA_CreatedOnPortalName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_createdonportal")) - { - return this.FormattedValues["dfa_createdonportal"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_dategoodsandservicesreceived")] - public System.Nullable DFA_DateGoodsAndServicesReceived - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_dategoodsandservicesreceived"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_dategoodsandservicesreceived", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_datereceivedinprovince")] - public System.Nullable DFA_DateReceivedInProvince - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_datereceivedinprovince"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_datereceivedinprovince", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_datesentforeaapproval")] - public System.Nullable DFA_DateSentForEAApproval - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_datesentforeaapproval"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_datesentforeaapproval", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_decision")] - public virtual DFA_ProjectClaim_DFA_Decision? DFA_Decision - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_ProjectClaim_DFA_Decision?)(EntityOptionSetEnum.GetEnum(this, "dfa_decision"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_decision", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_decisioncopy")] - public virtual DFA_ProjectClaim_DFA_DecisionCopy? DFA_DecisionCopy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_ProjectClaim_DFA_DecisionCopy?)(EntityOptionSetEnum.GetEnum(this, "dfa_decisioncopy"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_decisioncopy", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_decisioncopyname")] - public string DFA_DecisionCopyName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_decisioncopy")) - { - return this.FormattedValues["dfa_decisioncopy"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_decisionname")] - public string DFA_DecisionName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_decision")) - { - return this.FormattedValues["dfa_decision"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_eaname")] - public Microsoft.Xrm.Sdk.EntityReference DFA_EAName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_eaname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_eaname", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_eanamename")] - public string DFA_EANameName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_eaname")) - { - return this.FormattedValues["dfa_eaname"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_eanameyominame")] - public string DFA_EANameYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_eaname")) - { - return this.FormattedValues["dfa_eaname"]; - } - else - { - return default(string); - } - } - } - - /// - /// The amount the LG/IGB is to be paid. -///If this is an adjustable claim, then equal to the adjustable amount. -///Else, it is equal to the total amount after deductibles. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_eligiblepayable")] - public Microsoft.Xrm.Sdk.Money DFA_EligiblePayable - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_eligiblepayable"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_eligiblepayable", value); - } - } - - /// - /// Value of the Eligible payable in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_eligiblepayable_base")] - public Microsoft.Xrm.Sdk.Money DFA_EligiblePayable_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_eligiblepayable_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_eligiblerecoverypayableat90")] - public Microsoft.Xrm.Sdk.Money DFA_EligibleRecoveryPayableAt90 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_eligiblerecoverypayableat90"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_eligiblerecoverypayableat90", value); - } - } - - /// - /// Value of the Eligible recovery payable at 90% in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_eligiblerecoverypayableat90_base")] - public Microsoft.Xrm.Sdk.Money DFA_EligibleRecoveryPayableAt90_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_eligiblerecoverypayableat90_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_employeenumber")] - public string DFA_EmployeeNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_employeenumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_employeenumber", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthority")] - public System.Nullable DFA_ExpenseAuthority - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_expenseauthority"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_expenseauthority", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthorityadditionalinfore")] - public System.Nullable DFA_ExpenseAuthorityAdditionalInForE - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_expenseauthorityadditionalinfore"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_expenseauthorityadditionalinfore", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthorityadditionalinforename")] - public string DFA_ExpenseAuthorityAdditionalInForename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_expenseauthorityadditionalinfore")) - { - return this.FormattedValues["dfa_expenseauthorityadditionalinfore"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthoritybluebookrates")] - public System.Nullable DFA_ExpenseAuthorityBluebookRates - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_expenseauthoritybluebookrates"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_expenseauthoritybluebookrates", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthoritybluebookratesname")] - public string DFA_ExpenseAuthorityBluebookRatesName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_expenseauthoritybluebookrates")) - { - return this.FormattedValues["dfa_expenseauthoritybluebookrates"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthoritycontracts")] - public System.Nullable DFA_ExpenseAuthorityContracts - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_expenseauthoritycontracts"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_expenseauthoritycontracts", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthoritycontractsname")] - public string DFA_ExpenseAuthorityContractsName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_expenseauthoritycontracts")) - { - return this.FormattedValues["dfa_expenseauthoritycontracts"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthoritygeneralledger")] - public System.Nullable DFA_ExpenseAuthorityGeneralLedger - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_expenseauthoritygeneralledger"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_expenseauthoritygeneralledger", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthoritygeneralledgername")] - public string DFA_ExpenseAuthorityGeneralLedgerName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_expenseauthoritygeneralledger")) - { - return this.FormattedValues["dfa_expenseauthoritygeneralledger"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthorityname")] - public string DFA_ExpenseAuthorityName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_expenseauthority")) - { - return this.FormattedValues["dfa_expenseauthority"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthorityovertimewagedocumentation")] - public System.Nullable DFA_ExpenseAuthorityOvertimeWageDocumentation - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_expenseauthorityovertimewagedocumentation"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_expenseauthorityovertimewagedocumentation", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthorityovertimewagedocumentationname")] - public string DFA_ExpenseAuthorityOvertimeWageDocumentationName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_expenseauthorityovertimewagedocumentation")) - { - return this.FormattedValues["dfa_expenseauthorityovertimewagedocumentation"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthorityproofofpayment")] - public System.Nullable DFA_ExpenseAuthorityProofOfPayment - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_expenseauthorityproofofpayment"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_expenseauthorityproofofpayment", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthorityproofofpaymentname")] - public string DFA_ExpenseAuthorityProofOfPaymentName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_expenseauthorityproofofpayment")) - { - return this.FormattedValues["dfa_expenseauthorityproofofpayment"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthorityreviewedinvoice")] - public System.Nullable DFA_ExpenseAuthorityReviewedInvoice - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_expenseauthorityreviewedinvoice"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_expenseauthorityreviewedinvoice", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_expenseauthorityreviewedinvoicename")] - public string DFA_ExpenseAuthorityReviewedInvoiceName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_expenseauthorityreviewedinvoice")) - { - return this.FormattedValues["dfa_expenseauthorityreviewedinvoice"]; - } - else - { - return default(string); - } - } - } - - /// - /// Indicates if this is the last claim on the project that the governing body will be submitting. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_finalclaim")] - public System.Nullable DFA_FinalClaim - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_finalclaim"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_finalclaim", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_finalclaimname")] - public string DFA_FinalClaimName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_finalclaim")) - { - return this.FormattedValues["dfa_finalclaim"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_fundedby")] - public virtual DFA_ProjectClaim_DFA_FundedBy? DFA_FundedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_ProjectClaim_DFA_FundedBy?)(EntityOptionSetEnum.GetEnum(this, "dfa_fundedby"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_fundedby", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_fundedbyname")] - public string DFA_FundedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_fundedby")) - { - return this.FormattedValues["dfa_fundedby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_gst5")] - public Microsoft.Xrm.Sdk.Money DFA_Gst5 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_gst5"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_gst5", value); - } - } - - /// - /// Value of the GST 5% in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_gst5_base")] - public Microsoft.Xrm.Sdk.Money DFA_Gst5_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_gst5_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_includedinadvancedpaymentcalculations")] - public System.Nullable DFA_IncludedInAdvancedPaymentCalculations - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_includedinadvancedpaymentcalculations"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_includedinadvancedpaymentcalculations", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_includedinadvancedpaymentcalculationsname")] - public string DFA_IncludedInAdvancedPaymentCalculationsName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_includedinadvancedpaymentcalculations")) - { - return this.FormattedValues["dfa_includedinadvancedpaymentcalculations"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_invoicechange")] - public System.Nullable DFA_InvoiceChange - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_invoicechange"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_invoicechange", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_invoicechangename")] - public string DFA_InvoiceChangeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_invoicechange")) - { - return this.FormattedValues["dfa_invoicechange"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_invoicedate")] - public System.Nullable DFA_InvoiceDate - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_invoicedate"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_invoicedate", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_invoicenumber")] - public string DFA_InvoiceNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_invoicenumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_invoicenumber", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_invoicetotal")] - public Microsoft.Xrm.Sdk.Money DFA_InvoiceTotal - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_invoicetotal"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_invoicetotal", value); - } - } - - /// - /// Value of the Invoice Total in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_invoicetotal_base")] - public Microsoft.Xrm.Sdk.Money DFA_InvoiceTotal_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_invoicetotal_base"); - } - } - - /// - /// Indicates if it is a payment for the difference after a cost share recalculation. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_isadjustmentclaim")] - public System.Nullable DFA_IsAdjustmentClaim - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_isadjustmentclaim"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_isadjustmentclaim", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_isadjustmentclaimname")] - public string DFA_IsAdjustmentClaimName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_isadjustmentclaim")) - { - return this.FormattedValues["dfa_isadjustmentclaim"]; - } - else - { - return default(string); - } - } - } - - /// - /// If it is the first approved claim, then the $1,000 deductible is applied. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_isfirstclaim")] - public System.Nullable DFA_IsFirstClaim - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_isfirstclaim"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_isfirstclaim", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_isfirstclaimname")] - public string DFA_IsFirstClaimName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_isfirstclaim")) - { - return this.FormattedValues["dfa_isfirstclaim"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_lastcodingblocksubmissionerror")] - public string DFA_LastCodingBlockSubmissionError - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_lastcodingblocksubmissionerror"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_lastcodingblocksubmissionerror", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_lessfirst1000")] - public Microsoft.Xrm.Sdk.Money DFA_LessFirst1000 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_lessfirst1000"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_lessfirst1000", value); - } - } - - /// - /// Value of the Less first $1,000 in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_lessfirst1000_base")] - public Microsoft.Xrm.Sdk.Money DFA_LessFirst1000_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_lessfirst1000_base"); - } - } - - /// - /// An incremental number assigned to the claim in the portal. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_name")] - public string DFA_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_name", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_onetimedeductionamount")] - public Microsoft.Xrm.Sdk.Money DFA_OnetimeDeductionAmount - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_onetimedeductionamount"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_onetimedeductionamount", value); - } - } - - /// - /// Value of the One time Deduction Amount in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_onetimedeductionamount_base")] - public Microsoft.Xrm.Sdk.Money DFA_OnetimeDeductionAmount_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_onetimedeductionamount_base"); - } - } - - /// - /// The actual amount paid to the governing body. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_paidclaimamount")] - public Microsoft.Xrm.Sdk.Money DFA_PaidClaimAmount - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_paidclaimamount"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_paidclaimamount", value); - } - } - - /// - /// Value of the Paid claim amount in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_paidclaimamount_base")] - public Microsoft.Xrm.Sdk.Money DFA_PaidClaimAmount_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_paidclaimamount_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_paygrouptype")] - public virtual DFA_PayGroup? DFA_PayGroupType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_PayGroup?)(EntityOptionSetEnum.GetEnum(this, "dfa_paygrouptype"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_paygrouptype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_paygrouptypename")] - public string DFA_PayGroupTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_paygrouptype")) - { - return this.FormattedValues["dfa_paygrouptype"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_paymentadvicecomments")] - public string DFA_PaymentAdviceComments - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_paymentadvicecomments"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_paymentadvicecomments", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_portalsubmitted")] - public System.Nullable DFA_PortalSubmitted - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_portalsubmitted"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_portalsubmitted", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_portalsubmittedname")] - public string DFA_PortalSubmittedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_portalsubmitted")) - { - return this.FormattedValues["dfa_portalsubmitted"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for entity instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_projectclaimid")] - public System.Nullable DFA_ProjectClaimId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_projectclaimid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_projectclaimid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_projectclaimid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.DFA_ProjectClaimId = value; - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_projectnumber")] - public Microsoft.Xrm.Sdk.EntityReference DFA_ProjectNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_projectnumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_projectnumber", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_projectnumbername")] - public string DFA_ProjectNumberName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_projectnumber")) - { - return this.FormattedValues["dfa_projectnumber"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_projectstatusreportid")] - public Microsoft.Xrm.Sdk.EntityReference DFA_ProjectStatusReportId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_projectstatusreportid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_projectstatusreportid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_projectstatusreportidname")] - public string DFA_ProjectStatusReportIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_projectstatusreportid")) - { - return this.FormattedValues["dfa_projectstatusreportid"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_purpose")] - public string DFA_Purpose - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_purpose"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_purpose", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceiver")] - public Microsoft.Xrm.Sdk.EntityReference DFA_QualifiedReceiver - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_qualifiedreceiver"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_qualifiedreceiver", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceiveradditionalinfore")] - public System.Nullable DFA_QualifiedReceiverAdditionalInForE - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_qualifiedreceiveradditionalinfore"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_qualifiedreceiveradditionalinfore", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceiveradditionalinforename")] - public string DFA_QualifiedReceiverAdditionalInForename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_qualifiedreceiveradditionalinfore")) - { - return this.FormattedValues["dfa_qualifiedreceiveradditionalinfore"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceiverbluebookrates")] - public System.Nullable DFA_QualifiedReceiverBluebookRates - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_qualifiedreceiverbluebookrates"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_qualifiedreceiverbluebookrates", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceiverbluebookratesname")] - public string DFA_QualifiedReceiverBluebookRatesName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_qualifiedreceiverbluebookrates")) - { - return this.FormattedValues["dfa_qualifiedreceiverbluebookrates"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceivercontracts")] - public System.Nullable DFA_QualifiedReceiverContracts - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_qualifiedreceivercontracts"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_qualifiedreceivercontracts", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceivercontractsname")] - public string DFA_QualifiedReceiverContractsName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_qualifiedreceivercontracts")) - { - return this.FormattedValues["dfa_qualifiedreceivercontracts"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceivergeneralledger")] - public System.Nullable DFA_QualifiedReceiverGeneralLedger - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_qualifiedreceivergeneralledger"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_qualifiedreceivergeneralledger", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceivergeneralledgername")] - public string DFA_QualifiedReceiverGeneralLedgerName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_qualifiedreceivergeneralledger")) - { - return this.FormattedValues["dfa_qualifiedreceivergeneralledger"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceivername")] - public string DFA_QualifiedReceiverName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_qualifiedreceiver")) - { - return this.FormattedValues["dfa_qualifiedreceiver"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceiverovertimewagedocumentatio")] - public System.Nullable DFA_QualifiedReceiverOvertimeWageDocumentAtIo - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_qualifiedreceiverovertimewagedocumentatio"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_qualifiedreceiverovertimewagedocumentatio", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceiverovertimewagedocumentationame")] - public string DFA_QualifiedReceiverOvertimeWageDocumentationAmE - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_qualifiedreceiverovertimewagedocumentatio")) - { - return this.FormattedValues["dfa_qualifiedreceiverovertimewagedocumentatio"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceiverproofofpayment")] - public System.Nullable DFA_QualifiedReceiverProofOfPayment - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_qualifiedreceiverproofofpayment"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_qualifiedreceiverproofofpayment", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceiverproofofpaymentname")] - public string DFA_QualifiedReceiverProofOfPaymentName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_qualifiedreceiverproofofpayment")) - { - return this.FormattedValues["dfa_qualifiedreceiverproofofpayment"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceiverreviewedinvoice")] - public System.Nullable DFA_QualifiedReceiverReviewedInvoice - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_qualifiedreceiverreviewedinvoice"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_qualifiedreceiverreviewedinvoice", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceiverreviewedinvoicename")] - public string DFA_QualifiedReceiverReviewedInvoiceName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_qualifiedreceiverreviewedinvoice")) - { - return this.FormattedValues["dfa_qualifiedreceiverreviewedinvoice"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceiveryominame")] - public string DFA_QualifiedReceiverYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_qualifiedreceiver")) - { - return this.FormattedValues["dfa_qualifiedreceiver"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_readyforeareview")] - public System.Nullable DFA_ReadyForEAReview - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_readyforeareview"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_readyforeareview", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_readyforeareviewname")] - public string DFA_ReadyForEAReviewName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_readyforeareview")) - { - return this.FormattedValues["dfa_readyforeareview"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_recommendataion")] - public string DFA_RecommendAtaIon - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_recommendataion"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_recommendataion", value); - } - } - - /// - /// Unique identifier for Recovery Plan associated with Recovery Claim. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_recoveryplanid")] - public Microsoft.Xrm.Sdk.EntityReference DFA_RecoveryPlanId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_recoveryplanid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_recoveryplanid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_recoveryplanidname")] - public string DFA_RecoveryPlanIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_recoveryplanid")) - { - return this.FormattedValues["dfa_recoveryplanid"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_resp")] - public Microsoft.Xrm.Sdk.EntityReference DFA_Resp - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_resp"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_resp", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_respname")] - public string DFA_RespName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_resp")) - { - return this.FormattedValues["dfa_resp"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_s3validationpassed")] - public System.Nullable DFA_S3ValidationPassed - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_s3validationpassed"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_s3validationpassed", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_s3validationpassedname")] - public string DFA_S3ValidationPassedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_s3validationpassed")) - { - return this.FormattedValues["dfa_s3validationpassed"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_s3validationresult")] - public string DFA_S3ValidationResult - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_s3validationresult"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_s3validationresult", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_s3validationtrigger")] - public System.Nullable DFA_S3ValidationTrigger - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_s3validationtrigger"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_s3validationtrigger", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_selectedsupplierapiresponse")] - public string DFA_SelectedSupplierApiResponse - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_selectedsupplierapiresponse"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_selectedsupplierapiresponse", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_serviceline")] - public Microsoft.Xrm.Sdk.EntityReference DFA_ServiceLine - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_serviceline"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_serviceline", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_servicelinename")] - public string DFA_ServiceLineName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_serviceline")) - { - return this.FormattedValues["dfa_serviceline"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_site")] - public string DFA_Site - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_site"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_site", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_stageadjudicator")] - public System.Nullable DFA_StageAdjudicator - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_stageadjudicator"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_stageadjudicator", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_stageapprovedpending")] - public System.Nullable DFA_StageApprovedPending - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_stageapprovedpending"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_stageapprovedpending", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_stageclosed")] - public System.Nullable DFA_StageClosed - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_stageclosed"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_stageclosed", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_stagecompliancecheck")] - public System.Nullable DFA_StageComplianceCheck - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_stagecompliancecheck"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_stagecompliancecheck", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_stagedecisionmade")] - public System.Nullable DFA_StageDecisionMade - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_stagedecisionmade"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_stagedecisionmade", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_stagedraft")] - public System.Nullable DFA_StageDraft - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_stagedraft"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_stagedraft", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_stageexpenseauthority")] - public System.Nullable DFA_StageExpenseAuthority - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_stageexpenseauthority"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_stageexpenseauthority", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_stagequalifiedreceiver")] - public System.Nullable DFA_StageQualifiedReceiver - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_stagequalifiedreceiver"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_stagequalifiedreceiver", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_stagesubmitted")] - public System.Nullable DFA_StageSubmitted - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_stagesubmitted"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_stagesubmitted", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_stageunderreview")] - public System.Nullable DFA_StageUnderReview - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_stageunderreview"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_stageunderreview", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_stob")] - public Microsoft.Xrm.Sdk.EntityReference DFA_Stob - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_stob"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_stob", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_stobname")] - public string DFA_StobName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_stob")) - { - return this.FormattedValues["dfa_stob"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_submitted")] - public System.Nullable DFA_Submitted - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_submitted"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_submitted", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_submittedbpf")] - public virtual DFA_ProjectClaim_DFA_SubmittedBpf? DFA_SubmittedBpf - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_ProjectClaim_DFA_SubmittedBpf?)(EntityOptionSetEnum.GetEnum(this, "dfa_submittedbpf"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_submittedbpf", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_submittedbpfname")] - public string DFA_SubmittedBpfName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_submittedbpf")) - { - return this.FormattedValues["dfa_submittedbpf"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_submittedname")] - public string DFA_SubmittedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_submitted")) - { - return this.FormattedValues["dfa_submitted"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_suppliername")] - public string DFA_SupplierName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_suppliername"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_suppliername", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_suppliernumber")] - public string DFA_SupplierNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_suppliernumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_suppliernumber", value); - } - } - - /// - /// To be deleted when the correct field in the BPF is created - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_tempapproval")] - public System.Nullable DFA_TempApproval - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_tempapproval"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_tempapproval", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_tempapprovalname")] - public string DFA_TempApprovalName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_tempapproval")) - { - return this.FormattedValues["dfa_tempapproval"]; - } - else - { - return default(string); - } - } - } - - /// - /// The total of 'Actual invoice total' from all the invoices on this claim: (Net invoiced being claimed) + (PST) + (Gross GST) = Actual invoice total - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalactualclaim")] - public Microsoft.Xrm.Sdk.Money DFA_TotalActualClaim - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalactualclaim"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totalactualclaim", value); - } - } - - /// - /// Value of the Total Actual Claim in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalactualclaim_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalActualClaim_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalactualclaim_base"); - } - } - - /// - /// Last Updated time of rollup field Total Actual Claim. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalactualclaim_date")] - public System.Nullable DFA_TotalActualClaim_Date - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_totalactualclaim_date"); - } - } - - /// - /// State of rollup field Total Actual Claim. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalactualclaim_state")] - public System.Nullable DFA_TotalActualClaim_State - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_totalactualclaim_state"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalactualclaimcopy")] - public Microsoft.Xrm.Sdk.Money DFA_TotalActualClaimCopy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalactualclaimcopy"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totalactualclaimcopy", value); - } - } - - /// - /// Value of the Total Actual Claim Copy in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalactualclaimcopy_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalActualClaimCopy_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalactualclaimcopy_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalactualinvoice")] - public Microsoft.Xrm.Sdk.Money DFA_TotalActualInvoice - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalactualinvoice"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totalactualinvoice", value); - } - } - - /// - /// Value of the Total actual invoice in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalactualinvoice_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalActualInvoice_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalactualinvoice_base"); - } - } - - /// - /// The total from all the invoices from all the approved and partially approved invoices. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalapproved")] - public Microsoft.Xrm.Sdk.Money DFA_TotalApproved - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalapproved"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totalapproved", value); - } - } - - /// - /// Value of the Total approved in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalapproved_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalApproved_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalapproved_base"); - } - } - - /// - /// Last Updated time of rollup field Approved claim total. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalapproved_date")] - public System.Nullable DFA_TotalApproved_Date - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_totalapproved_date"); - } - } - - /// - /// State of rollup field Approved claim total. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalapproved_state")] - public System.Nullable DFA_TotalApproved_State - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_totalapproved_state"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalbeforetax")] - public Microsoft.Xrm.Sdk.Money DFA_TotalBeforeTax - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalbeforetax"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totalbeforetax", value); - } - } - - /// - /// Value of the Total Before Tax in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalbeforetax_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalBeforeTax_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalbeforetax_base"); - } - } - - /// - /// If the governing body type is eligible for GST reimbursement, then this displays the total eligible GST from all the invoices on this claim. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totaleligiblegst")] - public Microsoft.Xrm.Sdk.Money DFA_TotalEligibleGst - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totaleligiblegst"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totaleligiblegst", value); - } - } - - /// - /// Value of the Total eligible GST in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totaleligiblegst_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalEligibleGst_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totaleligiblegst_base"); - } - } - - /// - /// Last Updated time of rollup field Total eligible GST. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totaleligiblegst_date")] - public System.Nullable DFA_TotalEligibleGst_Date - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_totaleligiblegst_date"); - } - } - - /// - /// State of rollup field Total eligible GST. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totaleligiblegst_state")] - public System.Nullable DFA_TotalEligibleGst_State - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_totaleligiblegst_state"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totaleligiblegstcopy")] - public Microsoft.Xrm.Sdk.Money DFA_TotalEligibleGstCopy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totaleligiblegstcopy"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totaleligiblegstcopy", value); - } - } - - /// - /// Value of the Total Eligible GST Copy in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totaleligiblegstcopy_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalEligibleGstCopy_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totaleligiblegstcopy_base"); - } - } - - /// - /// The total GST from all the invoices on this claim. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalgrossgst")] - public Microsoft.Xrm.Sdk.Money DFA_TotalGrossGst - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalgrossgst"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totalgrossgst", value); - } - } - - /// - /// Value of the Total gross GST in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalgrossgst_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalGrossGst_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalgrossgst_base"); - } - } - - /// - /// Last Updated time of rollup field Total gross GST. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalgrossgst_date")] - public System.Nullable DFA_TotalGrossGst_Date - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_totalgrossgst_date"); - } - } - - /// - /// State of rollup field Total gross GST. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalgrossgst_state")] - public System.Nullable DFA_TotalGrossGst_State - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_totalgrossgst_state"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalgrossgstcopy")] - public Microsoft.Xrm.Sdk.Money DFA_TotalGrossGstCopy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalgrossgstcopy"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totalgrossgstcopy", value); - } - } - - /// - /// Value of the Total gross GST Copy in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalgrossgstcopy_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalGrossGstCopy_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalgrossgstcopy_base"); - } - } - - /// - /// The total from all the invoices on this claim; the total of all 'Net invoiced being claimed'. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalnetinvoicedbeingclaimed")] - public Microsoft.Xrm.Sdk.Money DFA_TotalNetInvoicedBeingClaimed - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalnetinvoicedbeingclaimed"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totalnetinvoicedbeingclaimed", value); - } - } - - /// - /// Value of the Total net invoiced being claimed in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalnetinvoicedbeingclaimed_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalNetInvoicedBeingClaimed_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalnetinvoicedbeingclaimed_base"); - } - } - - /// - /// Last Updated time of rollup field Total net invoices being claimed. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalnetinvoicedbeingclaimed_date")] - public System.Nullable DFA_TotalNetInvoicedBeingClaimed_Date - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_totalnetinvoicedbeingclaimed_date"); - } - } - - /// - /// State of rollup field Total net invoices being claimed. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalnetinvoicedbeingclaimed_state")] - public System.Nullable DFA_TotalNetInvoicedBeingClaimed_State - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_totalnetinvoicedbeingclaimed_state"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalnetinvoicedbeingclaimedcopy")] - public Microsoft.Xrm.Sdk.Money DFA_TotalNetInvoicedBeingClaimedCopy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalnetinvoicedbeingclaimedcopy"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totalnetinvoicedbeingclaimedcopy", value); - } - } - - /// - /// Value of the Total net invoiced being claimed Copy in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalnetinvoicedbeingclaimedcopy_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalNetInvoicedBeingClaimedCopy_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalnetinvoicedbeingclaimedcopy_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totaloftotaleligible")] - public Microsoft.Xrm.Sdk.Money DFA_TotalOfTotalEligible - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totaloftotaleligible"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totaloftotaleligible", value); - } - } - - /// - /// Value of the Total of total eligible in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totaloftotaleligible_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalOfTotalEligible_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totaloftotaleligible_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalpaid")] - public Microsoft.Xrm.Sdk.Money DFA_TotalPaid - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalpaid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totalpaid", value); - } - } - - /// - /// Value of the Total paid in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalpaid_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalPaid_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalpaid_base"); - } - } - - /// - /// The total PST from all the invoices on this claim. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalpst")] - public Microsoft.Xrm.Sdk.Money DFA_TotalPst - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalpst"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totalpst", value); - } - } - - /// - /// Value of the Total PST in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalpst_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalPst_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalpst_base"); - } - } - - /// - /// Last Updated time of rollup field Total PST. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalpst_date")] - public System.Nullable DFA_TotalPst_Date - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_totalpst_date"); - } - } - - /// - /// State of rollup field Total PST. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalpst_state")] - public System.Nullable DFA_TotalPst_State - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_totalpst_state"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalpstcopy")] - public Microsoft.Xrm.Sdk.Money DFA_TotalPstCopy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalpstcopy"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_totalpstcopy", value); - } - } - - /// - /// Value of the Total PST Copy in base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_totalpstcopy_base")] - public Microsoft.Xrm.Sdk.Money DFA_TotalPstCopy_Base - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dfa_totalpstcopy_base"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_underreviewadditionalinforequested")] - public System.Nullable DFA_UnderReviewAdditionalInfoRequested - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_underreviewadditionalinforequested"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_underreviewadditionalinforequested", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_underreviewadditionalinforequestedname")] - public string DFA_UnderReviewAdditionalInfoRequestedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_underreviewadditionalinforequested")) - { - return this.FormattedValues["dfa_underreviewadditionalinforequested"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_underreviewinprogress")] - public System.Nullable DFA_UnderReviewInProgress - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dfa_underreviewinprogress"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dfa_underreviewinprogress", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_underreviewinprogressname")] - public string DFA_UnderReviewInProgressName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dfa_underreviewinprogress")) - { - return this.FormattedValues["dfa_underreviewinprogress"]; - } - else - { - return default(string); - } - } - } - - /// - /// Exchange rate for the currency associated with the entity with respect to the base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] - public System.Nullable ExchangerAte - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("exchangerate"); - } - } - - /// - /// Sequence number of the import that created this record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] - public System.Nullable ImportSequenceNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("importsequencenumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("importsequencenumber", value); - } - } - - /// - /// Unique identifier of the user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] - public string ModifiedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time that the record was migrated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] - public System.Nullable OverriddenCreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overriddencreatedon"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("overriddencreatedon", value); - } - } - - /// - /// Owner Id - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] - public Microsoft.Xrm.Sdk.EntityReference OwnerId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("ownerid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("ownerid", value); - } - } - - /// - /// Name of the owner - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridname")] - public string OwnerIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ownerid")) - { - return this.FormattedValues["ownerid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Yomi name of the owner - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridyominame")] - public string OwnerIdYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ownerid")) - { - return this.FormattedValues["ownerid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for the business unit that owns the record - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] - public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owningbusinessunit"); - } - } - - /// - /// Unique identifier for the team that owns the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] - public Microsoft.Xrm.Sdk.EntityReference OwningTeam - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owningteam"); - } - } - - /// - /// Unique identifier for the user that owns the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] - public Microsoft.Xrm.Sdk.EntityReference OwningUser - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owninguser"); - } - } - - /// - /// Contains the id of the process associated with the entity. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] - public System.Nullable ProcessId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("processid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("processid", value); - } - } - - /// - /// Contains the id of the stage where the entity is located. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] - public System.Nullable StageId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("stageid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("stageid", value); - } - } - - /// - /// Status of the Recovery Claim - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] - public virtual DFA_ProjectClaim_StateCode? StateCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_ProjectClaim_StateCode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] - public string StateCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statecode")) - { - return this.FormattedValues["statecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Reason for the status of the Recovery Claim - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] - public virtual DFA_ProjectClaim_StatusCode? StatusCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DFA_ProjectClaim_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] - public string StatusCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statuscode")) - { - return this.FormattedValues["statuscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] - public System.Nullable TimeZoneRuleVersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("timezoneruleversionnumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("timezoneruleversionnumber", value); - } - } - - /// - /// Unique identifier of the currency associated with the entity. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] - public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("transactioncurrencyid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("transactioncurrencyid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyidname")] - public string TransactionCurrencyIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("transactioncurrencyid")) - { - return this.FormattedValues["transactioncurrencyid"]; - } - else - { - return default(string); - } - } - } - - /// - /// A comma separated list of string values representing the unique identifiers of stages in a Business Process Flow Instance in the order that they occur. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traversedpath")] - public string TraversedPath - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("traversedpath"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("traversedpath", value); - } - } - - /// - /// Time zone code that was in use when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] - public System.Nullable UtcConversionTimeZoneCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("utcconversiontimezonecode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("utcconversiontimezonecode", value); - } - } - - /// - /// Version Number - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// N:1 dfa_dfa_clientcode_dfa_projectclaim_ClientCodeId - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_clientcodeid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_dfa_clientcode_dfa_projectclaim_ClientCodeId")] - public Database.Model.DFA_ClientCode DFA_DFA_ClientCode_DFA_ProjectClaim_ClientCodeId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("dfa_dfa_clientcode_dfa_projectclaim_ClientCodeId", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("dfa_dfa_clientcode_dfa_projectclaim_ClientCodeId", null, value); - } - } - - /// - /// N:1 dfa_emcr_expenseproject_dfa_projectclaim_ProjectNumber - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_projectnumber")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_emcr_expenseproject_dfa_projectclaim_ProjectNumber")] - public Database.Model.EMCR_ExpenseProject DFA_EMCR_ExpenseProject_DFA_ProjectClaim_ProjectNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("dfa_emcr_expenseproject_dfa_projectclaim_ProjectNumber", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("dfa_emcr_expenseproject_dfa_projectclaim_ProjectNumber", null, value); - } - } - - /// - /// N:1 dfa_emcr_responsibilitycentre_dfa_projectclaim_RESP - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_resp")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_emcr_responsibilitycentre_dfa_projectclaim_RESP")] - public Database.Model.EMCR_ResponsibilityCentre DFA_EMCR_ResponsibilityCentre_DFA_ProjectClaim_Resp - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("dfa_emcr_responsibilitycentre_dfa_projectclaim_RESP", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("dfa_emcr_responsibilitycentre_dfa_projectclaim_RESP", null, value); - } - } - - /// - /// N:1 dfa_emcr_serviceline_dfa_projectclaim_ServiceLine - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_serviceline")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_emcr_serviceline_dfa_projectclaim_ServiceLine")] - public Database.Model.EMCR_ServiceLine DFA_EMCR_ServiceLine_DFA_ProjectClaim_ServiceLine - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("dfa_emcr_serviceline_dfa_projectclaim_ServiceLine", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("dfa_emcr_serviceline_dfa_projectclaim_ServiceLine", null, value); - } - } - - /// - /// N:1 dfa_emcr_stob_dfa_projectclaim_STOB - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_stob")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_emcr_stob_dfa_projectclaim_STOB")] - public Database.Model.EMCR_Stob DFA_EMCR_Stob_DFA_ProjectClaim_Stob - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("dfa_emcr_stob_dfa_projectclaim_STOB", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("dfa_emcr_stob_dfa_projectclaim_STOB", null, value); - } - } - - /// - /// N:1 dfa_systemuser_dfa_projectclaim_EAName - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_eaname")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_systemuser_dfa_projectclaim_EAName")] - public Database.Model.SystemUser DFA_SystemUser_DFA_ProjectClaim_EAnaMe - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("dfa_systemuser_dfa_projectclaim_EAName", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("dfa_systemuser_dfa_projectclaim_EAName", null, value); - } - } - - /// - /// N:1 dfa_systemuser_dfa_projectclaim_QualifiedReceiver - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfa_qualifiedreceiver")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_systemuser_dfa_projectclaim_QualifiedReceiver")] - public Database.Model.SystemUser DFA_SystemUser_DFA_ProjectClaim_QualifiedReceiver - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("dfa_systemuser_dfa_projectclaim_QualifiedReceiver", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("dfa_systemuser_dfa_projectclaim_QualifiedReceiver", null, value); - } - } - - /// - /// N:1 lk_dfa_projectclaim_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_projectclaim_createdby")] - public Database.Model.SystemUser Lk_DFA_ProjectClaim_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_dfa_projectclaim_createdby", null); - } - } - - /// - /// N:1 lk_dfa_projectclaim_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_projectclaim_createdonbehalfby")] - public Database.Model.SystemUser Lk_DFA_ProjectClaim_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_dfa_projectclaim_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_dfa_projectclaim_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_dfa_projectclaim_modifiedby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_projectclaim_modifiedby")] - public Database.Model.SystemUser Lk_DFA_ProjectClaim_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_dfa_projectclaim_modifiedby", null); - } - } - - /// - /// N:1 lk_dfa_projectclaim_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_projectclaim_modifiedonbehalfby")] - public Database.Model.SystemUser Lk_DFA_ProjectClaim_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_dfa_projectclaim_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_dfa_projectclaim_modifiedonbehalfby", null, value); - } - } - - /// - /// N:1 user_dfa_projectclaim - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_dfa_projectclaim")] - public Database.Model.SystemUser User_DFA_ProjectClaim - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("user_dfa_projectclaim", null); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public DFA_ProjectClaim(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["dfa_projectclaimid"] = base.Id; - break; - case "dfa_projectclaimid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/Entities/EMCR_ExpenseProject.cs b/Database/Model/Entities/EMCR_ExpenseProject.cs deleted file mode 100644 index 618f028..0000000 --- a/Database/Model/Entities/EMCR_ExpenseProject.cs +++ /dev/null @@ -1,880 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - /// - /// Status of the Expense Project - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum EMCR_ExpenseProject_StateCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 1, - } - - /// - /// Reason for the status of the Expense Project - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum EMCR_ExpenseProject_StatusCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 2, - } - - /// - /// Expense Project - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("emcr_expenseproject")] - public partial class EMCR_ExpenseProject : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the emcr_expenseproject entity - /// - public partial class Fields - { - public const string CreatedBy = "createdby"; - public const string CreatedByName = "createdbyname"; - public const string CreatedByYomiName = "createdbyyominame"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string DFA_EMCR_ExpenseProject_DFA_ProjectClaim_ProjectNumber = "DFA_EMCR_ExpenseProject_DFA_ProjectClaim_ProjectNumber"; - public const string EMCR_Code = "emcr_code"; - public const string EMCR_Description = "emcr_description"; - public const string ReferencingEMCR_ExpenseProject_ParentExpenseProject_EMCR_ExpenseProject = "emcr_expenseproject_parentexpenseproject_emcr_expenseproject"; - public const string EMCR_ExpenseProjectId = "emcr_expenseprojectid"; - public const string Id = "emcr_expenseprojectid"; - public const string EMCR_Name = "emcr_name"; - public const string EMCR_ParentExpenseProject = "emcr_parentexpenseproject"; - public const string EMCR_ParentExpenseProjectName = "emcr_parentexpenseprojectname"; - public const string EMCR_Type = "emcr_type"; - public const string EMCR_TypeName = "emcr_typename"; - public const string ImportSequenceNumber = "importsequencenumber"; - public const string Lk_EMCR_ExpenseProject_CreatedBy = "lk_emcr_expenseproject_createdby"; - public const string Lk_EMCR_ExpenseProject_CreatedOnBehalfBy = "lk_emcr_expenseproject_createdonbehalfby"; - public const string Lk_EMCR_ExpenseProject_ModifiedBy = "lk_emcr_expenseproject_modifiedby"; - public const string Lk_EMCR_ExpenseProject_ModifiedOnBehalfBy = "lk_emcr_expenseproject_modifiedonbehalfby"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedByYomiName = "modifiedbyyominame"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string OrganizationId = "organizationid"; - public const string OrganizationIdName = "organizationidname"; - public const string OverriddenCreatedOn = "overriddencreatedon"; - public const string ReferencedEMCR_ExpenseProject_ParentExpenseProject_EMCR_ExpenseProject = "ReferencedEMCR_ExpenseProject_ParentExpenseProject_EMCR_ExpenseProject"; - public const string StateCode = "statecode"; - public const string StateCodename = "statecodename"; - public const string StatusCode = "statuscode"; - public const string StatusCodename = "statuscodename"; - public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; - public const string UtcConversionTimeZoneCode = "utcconversiontimezonecode"; - public const string VersionNumber = "versionnumber"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ExpenseProject(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ExpenseProject(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ExpenseProject(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ExpenseProject() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "emcr_expenseprojectid"; - - public const string PrimaryNameAttribute = "emcr_name"; - - public const string EntitySchemaName = "emcr_expenseproject"; - - public const string EntityLogicalName = "emcr_expenseproject"; - - public const string EntityLogicalCollectionName = "emcr_expenseprojects"; - - public const string EntitySetName = "emcr_expenseprojects"; - - /// - /// Unique identifier of the user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] - public string CreatedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Code - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_code")] - public string EMCR_Code - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_code"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_code", value); - } - } - - /// - /// Description - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_description")] - public string EMCR_Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_description", value); - } - } - - /// - /// Unique identifier for entity instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_expenseprojectid")] - public System.Nullable EMCR_ExpenseProjectId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("emcr_expenseprojectid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_expenseprojectid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_expenseprojectid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.EMCR_ExpenseProjectId = value; - } - } - - /// - /// Name - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_name")] - public string EMCR_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_name", value); - } - } - - /// - /// Parent Expense Project this this expense project belongs to. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_parentexpenseproject")] - public Microsoft.Xrm.Sdk.EntityReference EMCR_ParentExpenseProject - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_parentexpenseproject"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_parentexpenseproject", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_parentexpenseprojectname")] - public string EMCR_ParentExpenseProjectName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("emcr_parentexpenseproject")) - { - return this.FormattedValues["emcr_parentexpenseproject"]; - } - else - { - return default(string); - } - } - } - - /// - /// Type - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_type")] - public virtual EMCR_ExpenseProjectType? EMCR_Type - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((EMCR_ExpenseProjectType?)(EntityOptionSetEnum.GetEnum(this, "emcr_type"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_type", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_typename")] - public string EMCR_TypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("emcr_type")) - { - return this.FormattedValues["emcr_type"]; - } - else - { - return default(string); - } - } - } - - /// - /// Sequence number of the import that created this record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] - public System.Nullable ImportSequenceNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("importsequencenumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("importsequencenumber", value); - } - } - - /// - /// Unique identifier of the user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] - public string ModifiedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for the organization - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] - public Microsoft.Xrm.Sdk.EntityReference OrganizationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("organizationid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationidname")] - public string OrganizationIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("organizationid")) - { - return this.FormattedValues["organizationid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time that the record was migrated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] - public System.Nullable OverriddenCreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overriddencreatedon"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("overriddencreatedon", value); - } - } - - /// - /// Status of the Expense Project - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] - public virtual EMCR_ExpenseProject_StateCode? StateCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((EMCR_ExpenseProject_StateCode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] - public string StateCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statecode")) - { - return this.FormattedValues["statecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Reason for the status of the Expense Project - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] - public virtual EMCR_ExpenseProject_StatusCode? StatusCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((EMCR_ExpenseProject_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] - public string StatusCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statuscode")) - { - return this.FormattedValues["statuscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] - public System.Nullable TimeZoneRuleVersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("timezoneruleversionnumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("timezoneruleversionnumber", value); - } - } - - /// - /// Time zone code that was in use when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] - public System.Nullable UtcConversionTimeZoneCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("utcconversiontimezonecode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("utcconversiontimezonecode", value); - } - } - - /// - /// Version Number - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// 1:N dfa_emcr_expenseproject_dfa_projectclaim_ProjectNumber - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_emcr_expenseproject_dfa_projectclaim_ProjectNumber")] - public System.Collections.Generic.IEnumerable DFA_EMCR_ExpenseProject_DFA_ProjectClaim_ProjectNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("dfa_emcr_expenseproject_dfa_projectclaim_ProjectNumber", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("dfa_emcr_expenseproject_dfa_projectclaim_ProjectNumber", null, value); - } - } - - /// - /// 1:N emcr_expenseproject_parentexpenseproject_emcr_expenseproject - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emcr_expenseproject_parentexpenseproject_emcr_expenseproject", Microsoft.Xrm.Sdk.EntityRole.Referenced)] - public System.Collections.Generic.IEnumerable ReferencedEMCR_ExpenseProject_ParentExpenseProject_EMCR_ExpenseProject - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("emcr_expenseproject_parentexpenseproject_emcr_expenseproject", Microsoft.Xrm.Sdk.EntityRole.Referenced); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("emcr_expenseproject_parentexpenseproject_emcr_expenseproject", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); - } - } - - /// - /// N:1 emcr_expenseproject_parentexpenseproject_emcr_expenseproject - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_parentexpenseproject")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emcr_expenseproject_parentexpenseproject_emcr_expenseproject", Microsoft.Xrm.Sdk.EntityRole.Referencing)] - public Database.Model.EMCR_ExpenseProject ReferencingEMCR_ExpenseProject_ParentExpenseProject_EMCR_ExpenseProject - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("emcr_expenseproject_parentexpenseproject_emcr_expenseproject", Microsoft.Xrm.Sdk.EntityRole.Referencing); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("emcr_expenseproject_parentexpenseproject_emcr_expenseproject", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); - } - } - - /// - /// N:1 lk_emcr_expenseproject_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_expenseproject_createdby")] - public Database.Model.SystemUser Lk_EMCR_ExpenseProject_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_expenseproject_createdby", null); - } - } - - /// - /// N:1 lk_emcr_expenseproject_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_expenseproject_createdonbehalfby")] - public Database.Model.SystemUser Lk_EMCR_ExpenseProject_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_expenseproject_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_emcr_expenseproject_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_emcr_expenseproject_modifiedby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_expenseproject_modifiedby")] - public Database.Model.SystemUser Lk_EMCR_ExpenseProject_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_expenseproject_modifiedby", null); - } - } - - /// - /// N:1 lk_emcr_expenseproject_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_expenseproject_modifiedonbehalfby")] - public Database.Model.SystemUser Lk_EMCR_ExpenseProject_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_expenseproject_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_emcr_expenseproject_modifiedonbehalfby", null, value); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ExpenseProject(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["emcr_expenseprojectid"] = base.Id; - break; - case "emcr_expenseprojectid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/Entities/EMCR_ResponsibilityCentre.cs b/Database/Model/Entities/EMCR_ResponsibilityCentre.cs deleted file mode 100644 index b10129c..0000000 --- a/Database/Model/Entities/EMCR_ResponsibilityCentre.cs +++ /dev/null @@ -1,767 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - /// - /// Status of the Responsibility Centre - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum EMCR_ResponsibilityCentre_StateCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 1, - } - - /// - /// Reason for the status of the Responsibility Centre - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum EMCR_ResponsibilityCentre_StatusCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 2, - } - - /// - /// Responsibility Centre - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("emcr_responsibilitycentre")] - public partial class EMCR_ResponsibilityCentre : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the emcr_responsibilitycentre entity - /// - public partial class Fields - { - public const string CreatedBy = "createdby"; - public const string CreatedByName = "createdbyname"; - public const string CreatedByYomiName = "createdbyyominame"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string DFA_EMCR_ResponsibilityCentre_DFA_ProjectClaim_Resp = "DFA_EMCR_ResponsibilityCentre_DFA_ProjectClaim_Resp"; - public const string EMCR_Code = "emcr_code"; - public const string EMCR_Description = "emcr_description"; - public const string EMCR_Name = "emcr_name"; - public const string EMCR_ResponsibilityCentreId = "emcr_responsibilitycentreid"; - public const string Id = "emcr_responsibilitycentreid"; - public const string ImportSequenceNumber = "importsequencenumber"; - public const string Lk_EMCR_ResponsibilityCentre_CreatedBy = "lk_emcr_responsibilitycentre_createdby"; - public const string Lk_EMCR_ResponsibilityCentre_CreatedOnBehalfBy = "lk_emcr_responsibilitycentre_createdonbehalfby"; - public const string Lk_EMCR_ResponsibilityCentre_ModifiedBy = "lk_emcr_responsibilitycentre_modifiedby"; - public const string Lk_EMCR_ResponsibilityCentre_ModifiedOnBehalfBy = "lk_emcr_responsibilitycentre_modifiedonbehalfby"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedByYomiName = "modifiedbyyominame"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string OrganizationId = "organizationid"; - public const string OrganizationIdName = "organizationidname"; - public const string OverriddenCreatedOn = "overriddencreatedon"; - public const string StateCode = "statecode"; - public const string StateCodename = "statecodename"; - public const string StatusCode = "statuscode"; - public const string StatusCodename = "statuscodename"; - public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; - public const string UtcConversionTimeZoneCode = "utcconversiontimezonecode"; - public const string VersionNumber = "versionnumber"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ResponsibilityCentre(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ResponsibilityCentre(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ResponsibilityCentre(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ResponsibilityCentre() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "emcr_responsibilitycentreid"; - - public const string PrimaryNameAttribute = "emcr_name"; - - public const string EntitySchemaName = "emcr_responsibilitycentre"; - - public const string EntityLogicalName = "emcr_responsibilitycentre"; - - public const string EntityLogicalCollectionName = "emcr_responsibilitycentres"; - - public const string EntitySetName = "emcr_responsibilitycentres"; - - /// - /// Unique identifier of the user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] - public string CreatedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Code - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_code")] - public string EMCR_Code - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_code"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_code", value); - } - } - - /// - /// Description - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_description")] - public string EMCR_Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_description", value); - } - } - - /// - /// Name - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_name")] - public string EMCR_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_name", value); - } - } - - /// - /// Unique identifier for entity instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_responsibilitycentreid")] - public System.Nullable EMCR_ResponsibilityCentreId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("emcr_responsibilitycentreid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_responsibilitycentreid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_responsibilitycentreid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.EMCR_ResponsibilityCentreId = value; - } - } - - /// - /// Sequence number of the import that created this record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] - public System.Nullable ImportSequenceNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("importsequencenumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("importsequencenumber", value); - } - } - - /// - /// Unique identifier of the user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] - public string ModifiedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for the organization - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] - public Microsoft.Xrm.Sdk.EntityReference OrganizationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("organizationid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationidname")] - public string OrganizationIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("organizationid")) - { - return this.FormattedValues["organizationid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time that the record was migrated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] - public System.Nullable OverriddenCreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overriddencreatedon"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("overriddencreatedon", value); - } - } - - /// - /// Status of the Responsibility Centre - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] - public virtual EMCR_ResponsibilityCentre_StateCode? StateCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((EMCR_ResponsibilityCentre_StateCode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] - public string StateCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statecode")) - { - return this.FormattedValues["statecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Reason for the status of the Responsibility Centre - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] - public virtual EMCR_ResponsibilityCentre_StatusCode? StatusCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((EMCR_ResponsibilityCentre_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] - public string StatusCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statuscode")) - { - return this.FormattedValues["statuscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] - public System.Nullable TimeZoneRuleVersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("timezoneruleversionnumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("timezoneruleversionnumber", value); - } - } - - /// - /// Time zone code that was in use when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] - public System.Nullable UtcConversionTimeZoneCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("utcconversiontimezonecode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("utcconversiontimezonecode", value); - } - } - - /// - /// Version Number - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// 1:N dfa_emcr_responsibilitycentre_dfa_projectclaim_RESP - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_emcr_responsibilitycentre_dfa_projectclaim_RESP")] - public System.Collections.Generic.IEnumerable DFA_EMCR_ResponsibilityCentre_DFA_ProjectClaim_Resp - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("dfa_emcr_responsibilitycentre_dfa_projectclaim_RESP", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("dfa_emcr_responsibilitycentre_dfa_projectclaim_RESP", null, value); - } - } - - /// - /// N:1 lk_emcr_responsibilitycentre_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_responsibilitycentre_createdby")] - public Database.Model.SystemUser Lk_EMCR_ResponsibilityCentre_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_responsibilitycentre_createdby", null); - } - } - - /// - /// N:1 lk_emcr_responsibilitycentre_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_responsibilitycentre_createdonbehalfby")] - public Database.Model.SystemUser Lk_EMCR_ResponsibilityCentre_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_responsibilitycentre_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_emcr_responsibilitycentre_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_emcr_responsibilitycentre_modifiedby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_responsibilitycentre_modifiedby")] - public Database.Model.SystemUser Lk_EMCR_ResponsibilityCentre_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_responsibilitycentre_modifiedby", null); - } - } - - /// - /// N:1 lk_emcr_responsibilitycentre_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_responsibilitycentre_modifiedonbehalfby")] - public Database.Model.SystemUser Lk_EMCR_ResponsibilityCentre_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_responsibilitycentre_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_emcr_responsibilitycentre_modifiedonbehalfby", null, value); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ResponsibilityCentre(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["emcr_responsibilitycentreid"] = base.Id; - break; - case "emcr_responsibilitycentreid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/Entities/EMCR_ServiceLine.cs b/Database/Model/Entities/EMCR_ServiceLine.cs deleted file mode 100644 index 6497901..0000000 --- a/Database/Model/Entities/EMCR_ServiceLine.cs +++ /dev/null @@ -1,769 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - /// - /// Status of the Service Line - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum EMCR_ServiceLine_StateCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 1, - } - - /// - /// Reason for the status of the Service Line - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum EMCR_ServiceLine_StatusCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 2, - } - - /// - /// Service Line - /// - /// - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("emcr_serviceline")] - public partial class EMCR_ServiceLine : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the emcr_serviceline entity - /// - public partial class Fields - { - public const string CreatedBy = "createdby"; - public const string CreatedByName = "createdbyname"; - public const string CreatedByYomiName = "createdbyyominame"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string DFA_EMCR_ServiceLine_DFA_ProjectClaim_ServiceLine = "DFA_EMCR_ServiceLine_DFA_ProjectClaim_ServiceLine"; - public const string EMCR_Code = "emcr_code"; - public const string EMCR_Description = "emcr_description"; - public const string EMCR_Name = "emcr_name"; - public const string EMCR_ServiceLineId = "emcr_servicelineid"; - public const string Id = "emcr_servicelineid"; - public const string ImportSequenceNumber = "importsequencenumber"; - public const string Lk_EMCR_ServiceLine_CreatedBy = "lk_emcr_serviceline_createdby"; - public const string Lk_EMCR_ServiceLine_CreatedOnBehalfBy = "lk_emcr_serviceline_createdonbehalfby"; - public const string Lk_EMCR_ServiceLine_ModifiedBy = "lk_emcr_serviceline_modifiedby"; - public const string Lk_EMCR_ServiceLine_ModifiedOnBehalfBy = "lk_emcr_serviceline_modifiedonbehalfby"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedByYomiName = "modifiedbyyominame"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string OrganizationId = "organizationid"; - public const string OrganizationIdName = "organizationidname"; - public const string OverriddenCreatedOn = "overriddencreatedon"; - public const string StateCode = "statecode"; - public const string StateCodename = "statecodename"; - public const string StatusCode = "statuscode"; - public const string StatusCodename = "statuscodename"; - public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; - public const string UtcConversionTimeZoneCode = "utcconversiontimezonecode"; - public const string VersionNumber = "versionnumber"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ServiceLine(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ServiceLine(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ServiceLine(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ServiceLine() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "emcr_servicelineid"; - - public const string PrimaryNameAttribute = "emcr_name"; - - public const string EntitySchemaName = "emcr_serviceline"; - - public const string EntityLogicalName = "emcr_serviceline"; - - public const string EntityLogicalCollectionName = "emcr_servicelines"; - - public const string EntitySetName = "emcr_servicelines"; - - /// - /// Unique identifier of the user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] - public string CreatedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Code - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_code")] - public string EMCR_Code - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_code"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_code", value); - } - } - - /// - /// Description - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_description")] - public string EMCR_Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_description", value); - } - } - - /// - /// Name - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_name")] - public string EMCR_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_name", value); - } - } - - /// - /// Unique identifier for entity instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_servicelineid")] - public System.Nullable EMCR_ServiceLineId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("emcr_servicelineid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_servicelineid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_servicelineid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.EMCR_ServiceLineId = value; - } - } - - /// - /// Sequence number of the import that created this record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] - public System.Nullable ImportSequenceNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("importsequencenumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("importsequencenumber", value); - } - } - - /// - /// Unique identifier of the user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] - public string ModifiedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for the organization - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] - public Microsoft.Xrm.Sdk.EntityReference OrganizationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("organizationid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationidname")] - public string OrganizationIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("organizationid")) - { - return this.FormattedValues["organizationid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time that the record was migrated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] - public System.Nullable OverriddenCreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overriddencreatedon"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("overriddencreatedon", value); - } - } - - /// - /// Status of the Service Line - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] - public virtual EMCR_ServiceLine_StateCode? StateCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((EMCR_ServiceLine_StateCode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] - public string StateCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statecode")) - { - return this.FormattedValues["statecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Reason for the status of the Service Line - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] - public virtual EMCR_ServiceLine_StatusCode? StatusCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((EMCR_ServiceLine_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] - public string StatusCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statuscode")) - { - return this.FormattedValues["statuscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] - public System.Nullable TimeZoneRuleVersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("timezoneruleversionnumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("timezoneruleversionnumber", value); - } - } - - /// - /// Time zone code that was in use when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] - public System.Nullable UtcConversionTimeZoneCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("utcconversiontimezonecode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("utcconversiontimezonecode", value); - } - } - - /// - /// Version Number - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// 1:N dfa_emcr_serviceline_dfa_projectclaim_ServiceLine - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_emcr_serviceline_dfa_projectclaim_ServiceLine")] - public System.Collections.Generic.IEnumerable DFA_EMCR_ServiceLine_DFA_ProjectClaim_ServiceLine - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("dfa_emcr_serviceline_dfa_projectclaim_ServiceLine", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("dfa_emcr_serviceline_dfa_projectclaim_ServiceLine", null, value); - } - } - - /// - /// N:1 lk_emcr_serviceline_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_serviceline_createdby")] - public Database.Model.SystemUser Lk_EMCR_ServiceLine_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_serviceline_createdby", null); - } - } - - /// - /// N:1 lk_emcr_serviceline_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_serviceline_createdonbehalfby")] - public Database.Model.SystemUser Lk_EMCR_ServiceLine_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_serviceline_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_emcr_serviceline_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_emcr_serviceline_modifiedby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_serviceline_modifiedby")] - public Database.Model.SystemUser Lk_EMCR_ServiceLine_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_serviceline_modifiedby", null); - } - } - - /// - /// N:1 lk_emcr_serviceline_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_serviceline_modifiedonbehalfby")] - public Database.Model.SystemUser Lk_EMCR_ServiceLine_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_serviceline_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_emcr_serviceline_modifiedonbehalfby", null, value); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_ServiceLine(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["emcr_servicelineid"] = base.Id; - break; - case "emcr_servicelineid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/Entities/EMCR_Stob.cs b/Database/Model/Entities/EMCR_Stob.cs deleted file mode 100644 index cd194c7..0000000 --- a/Database/Model/Entities/EMCR_Stob.cs +++ /dev/null @@ -1,823 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - /// - /// Status of the Stob - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum EMCR_Stob_StateCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 1, - } - - /// - /// Reason for the status of the Stob - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum EMCR_Stob_StatusCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 2, - } - - /// - /// Stob - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("emcr_stob")] - public partial class EMCR_Stob : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the emcr_stob entity - /// - public partial class Fields - { - public const string CreatedBy = "createdby"; - public const string CreatedByName = "createdbyname"; - public const string CreatedByYomiName = "createdbyyominame"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string DFA_EMCR_Stob_DFA_ProjectClaim_Stob = "DFA_EMCR_Stob_DFA_ProjectClaim_Stob"; - public const string EMCR_Code = "emcr_code"; - public const string EMCR_DetailedLongDescription = "emcr_detailedlongdescription"; - public const string EMCR_Name = "emcr_name"; - public const string EMCR_ShortDescription = "emcr_shortdescription"; - public const string EMCR_StobGroup = "emcr_stobgroup"; - public const string EMCR_StobGroupName = "emcr_stobgroupname"; - public const string EMCR_StobId = "emcr_stobid"; - public const string Id = "emcr_stobid"; - public const string ImportSequenceNumber = "importsequencenumber"; - public const string Lk_EMCR_Stob_CreatedBy = "lk_emcr_stob_createdby"; - public const string Lk_EMCR_Stob_CreatedOnBehalfBy = "lk_emcr_stob_createdonbehalfby"; - public const string Lk_EMCR_Stob_ModifiedBy = "lk_emcr_stob_modifiedby"; - public const string Lk_EMCR_Stob_ModifiedOnBehalfBy = "lk_emcr_stob_modifiedonbehalfby"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedByYomiName = "modifiedbyyominame"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string OrganizationId = "organizationid"; - public const string OrganizationIdName = "organizationidname"; - public const string OverriddenCreatedOn = "overriddencreatedon"; - public const string StateCode = "statecode"; - public const string StateCodename = "statecodename"; - public const string StatusCode = "statuscode"; - public const string StatusCodename = "statuscodename"; - public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; - public const string UtcConversionTimeZoneCode = "utcconversiontimezonecode"; - public const string VersionNumber = "versionnumber"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_Stob(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_Stob(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_Stob(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_Stob() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "emcr_stobid"; - - public const string PrimaryNameAttribute = "emcr_name"; - - public const string EntitySchemaName = "emcr_stob"; - - public const string EntityLogicalName = "emcr_stob"; - - public const string EntityLogicalCollectionName = "emcr_stobs"; - - public const string EntitySetName = "emcr_stobs"; - - /// - /// Unique identifier of the user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] - public string CreatedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Code - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_code")] - public string EMCR_Code - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_code"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_code", value); - } - } - - /// - /// Detailed Long Description - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_detailedlongdescription")] - public string EMCR_DetailedLongDescription - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_detailedlongdescription"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_detailedlongdescription", value); - } - } - - /// - /// Stob Name - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_name")] - public string EMCR_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_name", value); - } - } - - /// - /// Short Description - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_shortdescription")] - public string EMCR_ShortDescription - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_shortdescription"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_shortdescription", value); - } - } - - /// - /// Stob Group - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_stobgroup")] - public Microsoft.Xrm.Sdk.EntityReference EMCR_StobGroup - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emcr_stobgroup"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_stobgroup", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_stobgroupname")] - public string EMCR_StobGroupName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("emcr_stobgroup")) - { - return this.FormattedValues["emcr_stobgroup"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for entity instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_stobid")] - public System.Nullable EMCR_StobId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("emcr_stobid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emcr_stobid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emcr_stobid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.EMCR_StobId = value; - } - } - - /// - /// Sequence number of the import that created this record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] - public System.Nullable ImportSequenceNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("importsequencenumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("importsequencenumber", value); - } - } - - /// - /// Unique identifier of the user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] - public string ModifiedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for the organization - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] - public Microsoft.Xrm.Sdk.EntityReference OrganizationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("organizationid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationidname")] - public string OrganizationIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("organizationid")) - { - return this.FormattedValues["organizationid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time that the record was migrated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] - public System.Nullable OverriddenCreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overriddencreatedon"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("overriddencreatedon", value); - } - } - - /// - /// Status of the Stob - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] - public virtual EMCR_Stob_StateCode? StateCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((EMCR_Stob_StateCode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] - public string StateCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statecode")) - { - return this.FormattedValues["statecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Reason for the status of the Stob - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] - public virtual EMCR_Stob_StatusCode? StatusCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((EMCR_Stob_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] - public string StatusCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statuscode")) - { - return this.FormattedValues["statuscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] - public System.Nullable TimeZoneRuleVersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("timezoneruleversionnumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("timezoneruleversionnumber", value); - } - } - - /// - /// Time zone code that was in use when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] - public System.Nullable UtcConversionTimeZoneCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("utcconversiontimezonecode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("utcconversiontimezonecode", value); - } - } - - /// - /// Version Number - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// 1:N dfa_emcr_stob_dfa_projectclaim_STOB - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_emcr_stob_dfa_projectclaim_STOB")] - public System.Collections.Generic.IEnumerable DFA_EMCR_Stob_DFA_ProjectClaim_Stob - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("dfa_emcr_stob_dfa_projectclaim_STOB", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("dfa_emcr_stob_dfa_projectclaim_STOB", null, value); - } - } - - /// - /// N:1 lk_emcr_stob_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_stob_createdby")] - public Database.Model.SystemUser Lk_EMCR_Stob_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_stob_createdby", null); - } - } - - /// - /// N:1 lk_emcr_stob_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_stob_createdonbehalfby")] - public Database.Model.SystemUser Lk_EMCR_Stob_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_stob_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_emcr_stob_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_emcr_stob_modifiedby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_stob_modifiedby")] - public Database.Model.SystemUser Lk_EMCR_Stob_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_stob_modifiedby", null); - } - } - - /// - /// N:1 lk_emcr_stob_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_stob_modifiedonbehalfby")] - public Database.Model.SystemUser Lk_EMCR_Stob_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_emcr_stob_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_emcr_stob_modifiedonbehalfby", null, value); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public EMCR_Stob(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["emcr_stobid"] = base.Id; - break; - case "emcr_stobid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/Entities/SystemUser.cs b/Database/Model/Entities/SystemUser.cs deleted file mode 100644 index 849705e..0000000 --- a/Database/Model/Entities/SystemUser.cs +++ /dev/null @@ -1,4173 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - /// - /// Type of user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_AccessMode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Administrative", 1)] - Administrative = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Delegated Admin", 5)] - DelegatedAdmin = 5, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Non-interactive", 4)] - NonInteractive = 4, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Read", 2)] - Read = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Read-Write", 0)] - ReadWrite = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Support User", 3)] - SupportUser = 3, - } - - /// - /// Type of address for address 1, such as billing, shipping, or primary address. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_Address1_AddressTypeCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// Method of shipment for address 1. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_Address1_ShippingMethodCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// Type of address for address 2, such as billing, shipping, or primary address. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_Address2_AddressTypeCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// Method of shipment for address 2. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_Address2_ShippingMethodCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// License type of user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_CalType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Administrative", 1)] - Administrative = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Basic", 2)] - Basic = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Device Basic", 4)] - DeviceBasic = 4, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Device Enterprise", 8)] - DeviceEnterprise = 8, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Device Essential", 6)] - DeviceEssential = 6, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Device Professional", 3)] - DeviceProfessional = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Enterprise", 7)] - Enterprise = 7, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Essential", 5)] - Essential = 5, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Field Service", 11)] - FieldService = 11, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Professional", 0)] - Professional = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Project Service", 12)] - ProjectService = 12, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Sales", 9)] - Sales = 9, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Service", 10)] - Service = 10, - } - - /// - /// Indicates the approval options for server-side synchronization or Email Router access. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_EmailRouterAccessApproval - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Approved", 1)] - Approved = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Empty", 0)] - Empty = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Pending Approval", 2)] - PendingApproval = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Rejected", 3)] - Rejected = 3, - } - - /// - /// Incoming email delivery method for the user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_IncomingEmailDeliveryMethod - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Forward Mailbox", 3)] - ForwardMailbox = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Microsoft Dynamics 365 for Outlook", 1)] - MicrosoftDynamics365ForOutlook = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("None", 0)] - None = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Server-Side Synchronization or Email Router", 2)] - ServerSideSynchronizationOrEmailRouter = 2, - } - - /// - /// User invitation status. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_InviteStatusCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invitation Accepted", 4)] - InvitationAccepted = 4, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invitation Expired", 3)] - InvitationExpired = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invitation Near Expired", 2)] - InvitationNearExpired = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invitation Not Sent", 0)] - InvitationNotSent = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invitation Rejected", 5)] - InvitationRejected = 5, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invitation Revoked", 6)] - InvitationRevoked = 6, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invited", 1)] - Invited = 1, - } - - /// - /// Outgoing email delivery method for the user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_OutgoingEmailDeliveryMethod - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Microsoft Dynamics 365 for Outlook", 1)] - MicrosoftDynamics365ForOutlook = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("None", 0)] - None = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Server-Side Synchronization or Email Router", 2)] - ServerSideSynchronizationOrEmailRouter = 2, - } - - /// - /// Preferred address for the user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_PreferredAddressCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Mailing Address", 0)] - MailingAddress = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Other Address", 1)] - OtherAddress = 2, - } - - /// - /// Preferred email address for the user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_PreferredEmailCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// Preferred phone number for the user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_PreferredPhoneCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Home Phone", 2)] - HomePhone = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Main Phone", 0)] - MainPhone = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Mobile Phone", 3)] - MobilePhone = 4, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Other Phone", 1)] - OtherPhone = 2, - } - - /// - /// Person with access to the Microsoft CRM system and who owns objects in the Microsoft CRM database. - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("systemuser")] - public partial class SystemUser : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the systemuser entity - /// - public partial class Fields - { - public const string AccessMode = "accessmode"; - public const string AccessModeName = "accessmodename"; - public const string Address1_AddressId = "address1_addressid"; - public const string Address1_AddressTypeCode = "address1_addresstypecode"; - public const string Address1_AddressTypeCodename = "address1_addresstypecodename"; - public const string Address1_City = "address1_city"; - public const string Address1_Composite = "address1_composite"; - public const string Address1_Country = "address1_country"; - public const string Address1_County = "address1_county"; - public const string Address1_Fax = "address1_fax"; - public const string Address1_Latitude = "address1_latitude"; - public const string Address1_Line1 = "address1_line1"; - public const string Address1_Line2 = "address1_line2"; - public const string Address1_Line3 = "address1_line3"; - public const string Address1_Longitude = "address1_longitude"; - public const string Address1_Name = "address1_name"; - public const string Address1_PostalCode = "address1_postalcode"; - public const string Address1_PostofficeBox = "address1_postofficebox"; - public const string Address1_ShippingMethodCode = "address1_shippingmethodcode"; - public const string Address1_ShippingMethodCodename = "address1_shippingmethodcodename"; - public const string Address1_StateOrProvince = "address1_stateorprovince"; - public const string Address1_Telephone1 = "address1_telephone1"; - public const string Address1_Telephone2 = "address1_telephone2"; - public const string Address1_Telephone3 = "address1_telephone3"; - public const string Address1_UpsZone = "address1_upszone"; - public const string Address1_UtcOffset = "address1_utcoffset"; - public const string Address2_AddressId = "address2_addressid"; - public const string Address2_AddressTypeCode = "address2_addresstypecode"; - public const string Address2_AddressTypeCodename = "address2_addresstypecodename"; - public const string Address2_City = "address2_city"; - public const string Address2_Composite = "address2_composite"; - public const string Address2_Country = "address2_country"; - public const string Address2_County = "address2_county"; - public const string Address2_Fax = "address2_fax"; - public const string Address2_Latitude = "address2_latitude"; - public const string Address2_Line1 = "address2_line1"; - public const string Address2_Line2 = "address2_line2"; - public const string Address2_Line3 = "address2_line3"; - public const string Address2_Longitude = "address2_longitude"; - public const string Address2_Name = "address2_name"; - public const string Address2_PostalCode = "address2_postalcode"; - public const string Address2_PostofficeBox = "address2_postofficebox"; - public const string Address2_ShippingMethodCode = "address2_shippingmethodcode"; - public const string Address2_ShippingMethodCodename = "address2_shippingmethodcodename"; - public const string Address2_StateOrProvince = "address2_stateorprovince"; - public const string Address2_Telephone1 = "address2_telephone1"; - public const string Address2_Telephone2 = "address2_telephone2"; - public const string Address2_Telephone3 = "address2_telephone3"; - public const string Address2_UpsZone = "address2_upszone"; - public const string Address2_UtcOffset = "address2_utcoffset"; - public const string ApplicationId = "applicationid"; - public const string ApplicationIdUri = "applicationiduri"; - public const string AzureActiveDirectoryObjectId = "azureactivedirectoryobjectid"; - public const string BusinessUnitId = "businessunitid"; - public const string BusinessUnitIdName = "businessunitidname"; - public const string CalendarId = "calendarid"; - public const string CalType = "caltype"; - public const string CalTypeName = "caltypename"; - public const string CreatedBy = "createdby"; - public const string CreatedByName = "createdbyname"; - public const string CreatedByYomiName = "createdbyyominame"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string DefaultFiltersPopulated = "defaultfilterspopulated"; - public const string DefaultMailbox = "defaultmailbox"; - public const string DefaultMailboxName = "defaultmailboxname"; - public const string DefaultOdbFolderName = "defaultodbfoldername"; - public const string DFA_SystemUser_DFA_ProjectClaim_EAnaMe = "DFA_SystemUser_DFA_ProjectClaim_EAnaMe"; - public const string DFA_SystemUser_DFA_ProjectClaim_QualifiedReceiver = "DFA_SystemUser_DFA_ProjectClaim_QualifiedReceiver"; - public const string DisabledReason = "disabledreason"; - public const string DisplayInServiceViews = "displayinserviceviews"; - public const string DisplayInServiceViewsName = "displayinserviceviewsname"; - public const string DomainName = "domainname"; - public const string EmailRouterAccessApproval = "emailrouteraccessapproval"; - public const string EmailRouterAccessApprovalName = "emailrouteraccessapprovalname"; - public const string EmployeeId = "employeeid"; - public const string EntityImage = "entityimage"; - public const string EntityImage_Timestamp = "entityimage_timestamp"; - public const string EntityImage_Url = "entityimage_url"; - public const string EntityImageId = "entityimageid"; - public const string ExchangerAte = "exchangerate"; - public const string FirstName = "firstname"; - public const string FullName = "fullname"; - public const string GovernmentId = "governmentid"; - public const string HomePhone = "homephone"; - public const string IdentityId = "identityid"; - public const string ImportSequenceNumber = "importsequencenumber"; - public const string IncomingEmailDeliveryMethod = "incomingemaildeliverymethod"; - public const string IncomingEmailDeliveryMethodName = "incomingemaildeliverymethodname"; - public const string InternalEmailAddress = "internalemailaddress"; - public const string InviteStatusCode = "invitestatuscode"; - public const string InviteStatusCodename = "invitestatuscodename"; - public const string IsDisabled = "isdisabled"; - public const string IsDisabledName = "isdisabledname"; - public const string IsEmailAddressApprovedByO365Admin = "isemailaddressapprovedbyo365admin"; - public const string IsIntegrationUser = "isintegrationuser"; - public const string IsIntegrationUsername = "isintegrationusername"; - public const string IsLicensed = "islicensed"; - public const string IsLicensedName = "islicensedname"; - public const string IsSyncWithDirectory = "issyncwithdirectory"; - public const string JobTitle = "jobtitle"; - public const string LastName = "lastname"; - public const string Lk_DFA_ClientCode_CreatedBy = "Lk_DFA_ClientCode_CreatedBy"; - public const string Lk_DFA_ClientCode_CreatedOnBehalfBy = "Lk_DFA_ClientCode_CreatedOnBehalfBy"; - public const string Lk_DFA_ClientCode_ModifiedBy = "Lk_DFA_ClientCode_ModifiedBy"; - public const string Lk_DFA_ClientCode_ModifiedOnBehalfBy = "Lk_DFA_ClientCode_ModifiedOnBehalfBy"; - public const string Lk_DFA_ProjectClaim_CreatedBy = "Lk_DFA_ProjectClaim_CreatedBy"; - public const string Lk_DFA_ProjectClaim_CreatedOnBehalfBy = "Lk_DFA_ProjectClaim_CreatedOnBehalfBy"; - public const string Lk_DFA_ProjectClaim_ModifiedBy = "Lk_DFA_ProjectClaim_ModifiedBy"; - public const string Lk_DFA_ProjectClaim_ModifiedOnBehalfBy = "Lk_DFA_ProjectClaim_ModifiedOnBehalfBy"; - public const string Lk_EMCR_ExpenseProject_CreatedBy = "Lk_EMCR_ExpenseProject_CreatedBy"; - public const string Lk_EMCR_ExpenseProject_CreatedOnBehalfBy = "Lk_EMCR_ExpenseProject_CreatedOnBehalfBy"; - public const string Lk_EMCR_ExpenseProject_ModifiedBy = "Lk_EMCR_ExpenseProject_ModifiedBy"; - public const string Lk_EMCR_ExpenseProject_ModifiedOnBehalfBy = "Lk_EMCR_ExpenseProject_ModifiedOnBehalfBy"; - public const string Lk_EMCR_ResponsibilityCentre_CreatedBy = "Lk_EMCR_ResponsibilityCentre_CreatedBy"; - public const string Lk_EMCR_ResponsibilityCentre_CreatedOnBehalfBy = "Lk_EMCR_ResponsibilityCentre_CreatedOnBehalfBy"; - public const string Lk_EMCR_ResponsibilityCentre_ModifiedBy = "Lk_EMCR_ResponsibilityCentre_ModifiedBy"; - public const string Lk_EMCR_ResponsibilityCentre_ModifiedOnBehalfBy = "Lk_EMCR_ResponsibilityCentre_ModifiedOnBehalfBy"; - public const string Lk_EMCR_ServiceLine_CreatedBy = "Lk_EMCR_ServiceLine_CreatedBy"; - public const string Lk_EMCR_ServiceLine_CreatedOnBehalfBy = "Lk_EMCR_ServiceLine_CreatedOnBehalfBy"; - public const string Lk_EMCR_ServiceLine_ModifiedBy = "Lk_EMCR_ServiceLine_ModifiedBy"; - public const string Lk_EMCR_ServiceLine_ModifiedOnBehalfBy = "Lk_EMCR_ServiceLine_ModifiedOnBehalfBy"; - public const string Lk_EMCR_Stob_CreatedBy = "Lk_EMCR_Stob_CreatedBy"; - public const string Lk_EMCR_Stob_CreatedOnBehalfBy = "Lk_EMCR_Stob_CreatedOnBehalfBy"; - public const string Lk_EMCR_Stob_ModifiedBy = "Lk_EMCR_Stob_ModifiedBy"; - public const string Lk_EMCR_Stob_ModifiedOnBehalfBy = "Lk_EMCR_Stob_ModifiedOnBehalfBy"; - public const string ReferencingLk_SystemUser_CreatedOnBehalfBy = "lk_systemuser_createdonbehalfby"; - public const string ReferencingLk_SystemUser_ModifiedOnBehalfBy = "lk_systemuser_modifiedonbehalfby"; - public const string ReferencingLk_SystemUserBase_CreatedBy = "lk_systemuserbase_createdby"; - public const string ReferencingLk_SystemUserBase_ModifiedBy = "lk_systemuserbase_modifiedby"; - public const string MiddleName = "middlename"; - public const string MobileAlertEmail = "mobilealertemail"; - public const string MobileOfflineProfileId = "mobileofflineprofileid"; - public const string MobileOfflineProfileIdName = "mobileofflineprofileidname"; - public const string MobilePhone = "mobilephone"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedByYomiName = "modifiedbyyominame"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string Msdyn_GdPrOptOut = "msdyn_gdproptout"; - public const string Msdyn_GdPrOptOutName = "msdyn_gdproptoutname"; - public const string Nickname = "nickname"; - public const string OrganizationId = "organizationid"; - public const string OrganizationIdName = "organizationidname"; - public const string OutgoingEmailDeliveryMethod = "outgoingemaildeliverymethod"; - public const string OutgoingEmailDeliveryMethodName = "outgoingemaildeliverymethodname"; - public const string OverriddenCreatedOn = "overriddencreatedon"; - public const string ParentSystemUserId = "parentsystemuserid"; - public const string ParentSystemUserIdName = "parentsystemuseridname"; - public const string ParentSystemUserIdYomiName = "parentsystemuseridyominame"; - public const string PassportHi = "passporthi"; - public const string PassportLo = "passportlo"; - public const string PersonalEmailAddress = "personalemailaddress"; - public const string PhotoUrl = "photourl"; - public const string PositionId = "positionid"; - public const string PositionIdName = "positionidname"; - public const string PreferredAddressCode = "preferredaddresscode"; - public const string PreferredAddressCodename = "preferredaddresscodename"; - public const string PreferredEmailCode = "preferredemailcode"; - public const string PreferredEmailCodename = "preferredemailcodename"; - public const string PreferredPhoneCode = "preferredphonecode"; - public const string PreferredPhoneCodename = "preferredphonecodename"; - public const string ProcessId = "processid"; - public const string QueueId = "queueid"; - public const string QueueIdName = "queueidname"; - public const string ReferencedLk_SystemUser_CreatedOnBehalfBy = "ReferencedLk_SystemUser_CreatedOnBehalfBy"; - public const string ReferencedLk_SystemUser_ModifiedOnBehalfBy = "ReferencedLk_SystemUser_ModifiedOnBehalfBy"; - public const string ReferencedLk_SystemUserBase_CreatedBy = "ReferencedLk_SystemUserBase_CreatedBy"; - public const string ReferencedLk_SystemUserBase_ModifiedBy = "ReferencedLk_SystemUserBase_ModifiedBy"; - public const string ReferencedUser_Parent_User = "ReferencedUser_Parent_User"; - public const string Salutation = "salutation"; - public const string SetupUser = "setupuser"; - public const string SetupUsername = "setupusername"; - public const string SharePointEmailAddress = "sharepointemailaddress"; - public const string SiteId = "siteid"; - public const string SiteIdName = "siteidname"; - public const string Skills = "skills"; - public const string StageId = "stageid"; - public const string SystemUserId = "systemuserid"; - public const string Id = "systemuserid"; - public const string TerritoryId = "territoryid"; - public const string TerritoryIdName = "territoryidname"; - public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; - public const string Title = "title"; - public const string TransactionCurrencyId = "transactioncurrencyid"; - public const string TransactionCurrencyIdName = "transactioncurrencyidname"; - public const string TraversedPath = "traversedpath"; - public const string User_DFA_ClientCode = "User_DFA_ClientCode"; - public const string User_DFA_ProjectClaim = "User_DFA_ProjectClaim"; - public const string ReferencingUser_Parent_User = "user_parent_user"; - public const string UserLicenseType = "userlicensetype"; - public const string UserPuid = "userpuid"; - public const string UtcConversionTimeZoneCode = "utcconversiontimezonecode"; - public const string VersionNumber = "versionnumber"; - public const string WindowsLiveId = "windowsliveid"; - public const string YammerEmailAddress = "yammeremailaddress"; - public const string YammerUserId = "yammeruserid"; - public const string YomiFirstName = "yomifirstname"; - public const string YomiFullName = "yomifullname"; - public const string YomiLastName = "yomilastname"; - public const string YomiMiddleName = "yomimiddlename"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SystemUser(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SystemUser(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SystemUser(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SystemUser() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "systemuserid"; - - public const string PrimaryNameAttribute = "fullname"; - - public const string EntitySchemaName = "SystemUser"; - - public const string EntityLogicalName = "systemuser"; - - public const string EntityLogicalCollectionName = "systemusers"; - - public const string EntitySetName = "systemusers"; - - /// - /// Type of user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accessmode")] - public virtual SystemUser_AccessMode? AccessMode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_AccessMode?)(EntityOptionSetEnum.GetEnum(this, "accessmode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("accessmode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accessmodename")] - public string AccessModeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("accessmode")) - { - return this.FormattedValues["accessmode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] - public System.Nullable Address1_AddressId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address1_addressid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_addressid", value); - } - } - - /// - /// Type of address for address 1, such as billing, shipping, or primary address. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] - public virtual SystemUser_Address1_AddressTypeCode? Address1_AddressTypeCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_Address1_AddressTypeCode?)(EntityOptionSetEnum.GetEnum(this, "address1_addresstypecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecodename")] - public string Address1_AddressTypeCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("address1_addresstypecode")) - { - return this.FormattedValues["address1_addresstypecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// City name for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] - public string Address1_City - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_city"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_city", value); - } - } - - /// - /// Shows the complete primary address. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_composite")] - public string Address1_Composite - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_composite"); - } - } - - /// - /// Country/region name in address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] - public string Address1_Country - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_country"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_country", value); - } - } - - /// - /// County name for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] - public string Address1_County - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_county"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_county", value); - } - } - - /// - /// Fax number for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] - public string Address1_Fax - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_fax"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_fax", value); - } - } - - /// - /// Latitude for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] - public System.Nullable Address1_Latitude - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address1_latitude"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_latitude", value); - } - } - - /// - /// First line for entering address 1 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] - public string Address1_Line1 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_line1"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_line1", value); - } - } - - /// - /// Second line for entering address 1 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] - public string Address1_Line2 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_line2"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_line2", value); - } - } - - /// - /// Third line for entering address 1 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] - public string Address1_Line3 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_line3"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_line3", value); - } - } - - /// - /// Longitude for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] - public System.Nullable Address1_Longitude - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address1_longitude"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_longitude", value); - } - } - - /// - /// Name to enter for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] - public string Address1_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_name", value); - } - } - - /// - /// ZIP Code or postal code for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] - public string Address1_PostalCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_postalcode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_postalcode", value); - } - } - - /// - /// Post office box number for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] - public string Address1_PostofficeBox - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_postofficebox"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_postofficebox", value); - } - } - - /// - /// Method of shipment for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] - public virtual SystemUser_Address1_ShippingMethodCode? Address1_ShippingMethodCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_Address1_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "address1_shippingmethodcode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcodename")] - public string Address1_ShippingMethodCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("address1_shippingmethodcode")) - { - return this.FormattedValues["address1_shippingmethodcode"]; - } - else - { - return default(string); - } - } - } - - /// - /// State or province for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] - public string Address1_StateOrProvince - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_stateorprovince"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_stateorprovince", value); - } - } - - /// - /// First telephone number associated with address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] - public string Address1_Telephone1 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_telephone1"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_telephone1", value); - } - } - - /// - /// Second telephone number associated with address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] - public string Address1_Telephone2 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_telephone2"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_telephone2", value); - } - } - - /// - /// Third telephone number associated with address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] - public string Address1_Telephone3 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_telephone3"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_telephone3", value); - } - } - - /// - /// United Parcel Service (UPS) zone for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] - public string Address1_UpsZone - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_upszone"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_upszone", value); - } - } - - /// - /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] - public System.Nullable Address1_UtcOffset - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address1_utcoffset"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_utcoffset", value); - } - } - - /// - /// Unique identifier for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] - public System.Nullable Address2_AddressId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address2_addressid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_addressid", value); - } - } - - /// - /// Type of address for address 2, such as billing, shipping, or primary address. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] - public virtual SystemUser_Address2_AddressTypeCode? Address2_AddressTypeCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_Address2_AddressTypeCode?)(EntityOptionSetEnum.GetEnum(this, "address2_addresstypecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecodename")] - public string Address2_AddressTypeCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("address2_addresstypecode")) - { - return this.FormattedValues["address2_addresstypecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// City name for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] - public string Address2_City - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_city"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_city", value); - } - } - - /// - /// Shows the complete secondary address. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_composite")] - public string Address2_Composite - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_composite"); - } - } - - /// - /// Country/region name in address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] - public string Address2_Country - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_country"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_country", value); - } - } - - /// - /// County name for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] - public string Address2_County - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_county"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_county", value); - } - } - - /// - /// Fax number for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] - public string Address2_Fax - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_fax"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_fax", value); - } - } - - /// - /// Latitude for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] - public System.Nullable Address2_Latitude - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address2_latitude"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_latitude", value); - } - } - - /// - /// First line for entering address 2 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] - public string Address2_Line1 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_line1"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_line1", value); - } - } - - /// - /// Second line for entering address 2 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] - public string Address2_Line2 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_line2"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_line2", value); - } - } - - /// - /// Third line for entering address 2 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] - public string Address2_Line3 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_line3"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_line3", value); - } - } - - /// - /// Longitude for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] - public System.Nullable Address2_Longitude - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address2_longitude"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_longitude", value); - } - } - - /// - /// Name to enter for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] - public string Address2_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_name", value); - } - } - - /// - /// ZIP Code or postal code for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] - public string Address2_PostalCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_postalcode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_postalcode", value); - } - } - - /// - /// Post office box number for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] - public string Address2_PostofficeBox - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_postofficebox"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_postofficebox", value); - } - } - - /// - /// Method of shipment for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] - public virtual SystemUser_Address2_ShippingMethodCode? Address2_ShippingMethodCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_Address2_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "address2_shippingmethodcode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcodename")] - public string Address2_ShippingMethodCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("address2_shippingmethodcode")) - { - return this.FormattedValues["address2_shippingmethodcode"]; - } - else - { - return default(string); - } - } - } - - /// - /// State or province for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] - public string Address2_StateOrProvince - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_stateorprovince"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_stateorprovince", value); - } - } - - /// - /// First telephone number associated with address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] - public string Address2_Telephone1 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_telephone1"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_telephone1", value); - } - } - - /// - /// Second telephone number associated with address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] - public string Address2_Telephone2 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_telephone2"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_telephone2", value); - } - } - - /// - /// Third telephone number associated with address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] - public string Address2_Telephone3 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_telephone3"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_telephone3", value); - } - } - - /// - /// United Parcel Service (UPS) zone for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] - public string Address2_UpsZone - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_upszone"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_upszone", value); - } - } - - /// - /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] - public System.Nullable Address2_UtcOffset - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address2_utcoffset"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_utcoffset", value); - } - } - - /// - /// The identifier for the application. This is used to access data in another application. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("applicationid")] - public System.Nullable ApplicationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("applicationid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("applicationid", value); - } - } - - /// - /// The URI used as a unique logical identifier for the external app. This can be used to validate the application. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("applicationiduri")] - public string ApplicationIdUri - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("applicationiduri"); - } - } - - /// - /// This is the application directory object Id. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("azureactivedirectoryobjectid")] - public System.Nullable AzureActiveDirectoryObjectId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("azureactivedirectoryobjectid"); - } - } - - /// - /// Unique identifier of the business unit with which the user is associated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] - public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("businessunitid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("businessunitid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitidname")] - public string BusinessUnitIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("businessunitid")) - { - return this.FormattedValues["businessunitid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Fiscal calendar associated with the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] - public Microsoft.Xrm.Sdk.EntityReference CalendarId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("calendarid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("calendarid", value); - } - } - - /// - /// License type of user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("caltype")] - public virtual SystemUser_CalType? CalType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_CalType?)(EntityOptionSetEnum.GetEnum(this, "caltype"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("caltype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("caltypename")] - public string CalTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("caltype")) - { - return this.FormattedValues["caltype"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the user who created the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] - public string CreatedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the user was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the systemuser. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Indicates if default outlook filters have been populated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultfilterspopulated")] - public System.Nullable DefaultFiltersPopulated - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("defaultfilterspopulated"); - } - } - - /// - /// Select the mailbox associated with this user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultmailbox")] - public Microsoft.Xrm.Sdk.EntityReference DefaultMailbox - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("defaultmailbox"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("defaultmailbox", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultmailboxname")] - public string DefaultMailboxName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("defaultmailbox")) - { - return this.FormattedValues["defaultmailbox"]; - } - else - { - return default(string); - } - } - } - - /// - /// Type a default folder name for the user's OneDrive For Business location. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultodbfoldername")] - public string DefaultOdbFolderName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("defaultodbfoldername"); - } - } - - /// - /// Reason for disabling the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("disabledreason")] - public string DisabledReason - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("disabledreason"); - } - } - - /// - /// Whether to display the user in service views. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayinserviceviews")] - public System.Nullable DisplayInServiceViews - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("displayinserviceviews"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("displayinserviceviews", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayinserviceviewsname")] - public string DisplayInServiceViewsName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("displayinserviceviews")) - { - return this.FormattedValues["displayinserviceviews"]; - } - else - { - return default(string); - } - } - } - - /// - /// Active Directory domain of which the user is a member. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("domainname")] - public string DomainName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("domainname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("domainname", value); - } - } - - /// - /// Shows the status of the primary email address. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailrouteraccessapproval")] - public virtual SystemUser_EmailRouterAccessApproval? EmailRouterAccessApproval - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_EmailRouterAccessApproval?)(EntityOptionSetEnum.GetEnum(this, "emailrouteraccessapproval"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emailrouteraccessapproval", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailrouteraccessapprovalname")] - public string EmailRouterAccessApprovalName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("emailrouteraccessapproval")) - { - return this.FormattedValues["emailrouteraccessapproval"]; - } - else - { - return default(string); - } - } - } - - /// - /// Employee identifier for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("employeeid")] - public string EmployeeId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("employeeid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("employeeid", value); - } - } - - /// - /// Shows the default image for the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] - public byte[] EntityImage - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("entityimage"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("entityimage", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] - public System.Nullable EntityImage_Timestamp - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("entityimage_timestamp"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] - public string EntityImage_Url - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("entityimage_url"); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] - public System.Nullable EntityImageId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("entityimageid"); - } - } - - /// - /// Exchange rate for the currency associated with the systemuser with respect to the base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] - public System.Nullable ExchangerAte - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("exchangerate"); - } - } - - /// - /// First name of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firstname")] - public string FirstName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("firstname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("firstname", value); - } - } - - /// - /// Full name of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fullname")] - public string FullName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("fullname"); - } - } - - /// - /// Government identifier for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("governmentid")] - public string GovernmentId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("governmentid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("governmentid", value); - } - } - - /// - /// Home phone number for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("homephone")] - public string HomePhone - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("homephone"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("homephone", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("identityid")] - public System.Nullable IdentityId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("identityid"); - } - } - - /// - /// Unique identifier of the data import or data migration that created this record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] - public System.Nullable ImportSequenceNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("importsequencenumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("importsequencenumber", value); - } - } - - /// - /// Incoming email delivery method for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemaildeliverymethod")] - public virtual SystemUser_IncomingEmailDeliveryMethod? IncomingEmailDeliveryMethod - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_IncomingEmailDeliveryMethod?)(EntityOptionSetEnum.GetEnum(this, "incomingemaildeliverymethod"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("incomingemaildeliverymethod", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemaildeliverymethodname")] - public string IncomingEmailDeliveryMethodName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("incomingemaildeliverymethod")) - { - return this.FormattedValues["incomingemaildeliverymethod"]; - } - else - { - return default(string); - } - } - } - - /// - /// Internal email address for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("internalemailaddress")] - public string InternalEmailAddress - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("internalemailaddress"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("internalemailaddress", value); - } - } - - /// - /// User invitation status. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invitestatuscode")] - public virtual SystemUser_InviteStatusCode? InviteStatusCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_InviteStatusCode?)(EntityOptionSetEnum.GetEnum(this, "invitestatuscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("invitestatuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invitestatuscodename")] - public string InviteStatusCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("invitestatuscode")) - { - return this.FormattedValues["invitestatuscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Information about whether the user is enabled. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] - public System.Nullable IsDisabled - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isdisabled"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isdisabled", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabledname")] - public string IsDisabledName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("isdisabled")) - { - return this.FormattedValues["isdisabled"]; - } - else - { - return default(string); - } - } - } - - /// - /// Shows the status of approval of the email address by O365 Admin. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isemailaddressapprovedbyo365admin")] - public System.Nullable IsEmailAddressApprovedByO365Admin - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isemailaddressapprovedbyo365admin"); - } - } - - /// - /// Check if user is an integration user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isintegrationuser")] - public System.Nullable IsIntegrationUser - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isintegrationuser"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isintegrationuser", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isintegrationusername")] - public string IsIntegrationUsername - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("isintegrationuser")) - { - return this.FormattedValues["isintegrationuser"]; - } - else - { - return default(string); - } - } - } - - /// - /// Information about whether the user is licensed. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("islicensed")] - public System.Nullable IsLicensed - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("islicensed"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("islicensed", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("islicensedname")] - public string IsLicensedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("islicensed")) - { - return this.FormattedValues["islicensed"]; - } - else - { - return default(string); - } - } - } - - /// - /// Information about whether the user is synced with the directory. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issyncwithdirectory")] - public System.Nullable IsSyncWithDirectory - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("issyncwithdirectory"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("issyncwithdirectory", value); - } - } - - /// - /// Job title of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("jobtitle")] - public string JobTitle - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("jobtitle"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("jobtitle", value); - } - } - - /// - /// Last name of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastname")] - public string LastName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("lastname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("lastname", value); - } - } - - /// - /// Middle name of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("middlename")] - public string MiddleName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("middlename"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("middlename", value); - } - } - - /// - /// Mobile alert email address for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobilealertemail")] - public string MobileAlertEmail - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("mobilealertemail"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("mobilealertemail", value); - } - } - - /// - /// Items contained with a particular SystemUser. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobileofflineprofileid")] - public Microsoft.Xrm.Sdk.EntityReference MobileOfflineProfileId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("mobileofflineprofileid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("mobileofflineprofileid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobileofflineprofileidname")] - public string MobileOfflineProfileIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("mobileofflineprofileid")) - { - return this.FormattedValues["mobileofflineprofileid"]; - } - else - { - return default(string); - } - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("mobileofflineprofileidname", value); - } - } - - /// - /// Mobile phone number for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobilephone")] - public string MobilePhone - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("mobilephone"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("mobilephone", value); - } - } - - /// - /// Unique identifier of the user who last modified the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] - public string ModifiedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the user was last modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who last modified the systemuser. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Describes whether user is opted out or not - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_gdproptout")] - public System.Nullable Msdyn_GdPrOptOut - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("msdyn_gdproptout"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("msdyn_gdproptout", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_gdproptoutname")] - public string Msdyn_GdPrOptOutName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("msdyn_gdproptout")) - { - return this.FormattedValues["msdyn_gdproptout"]; - } - else - { - return default(string); - } - } - } - - /// - /// Nickname of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nickname")] - public string Nickname - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("nickname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("nickname", value); - } - } - - /// - /// Unique identifier of the organization associated with the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] - public System.Nullable OrganizationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("organizationid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationidname")] - public string OrganizationIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("organizationid")) - { - return this.FormattedValues["organizationid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Outgoing email delivery method for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingemaildeliverymethod")] - public virtual SystemUser_OutgoingEmailDeliveryMethod? OutgoingEmailDeliveryMethod - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_OutgoingEmailDeliveryMethod?)(EntityOptionSetEnum.GetEnum(this, "outgoingemaildeliverymethod"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("outgoingemaildeliverymethod", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingemaildeliverymethodname")] - public string OutgoingEmailDeliveryMethodName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("outgoingemaildeliverymethod")) - { - return this.FormattedValues["outgoingemaildeliverymethod"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time that the record was migrated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] - public System.Nullable OverriddenCreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overriddencreatedon"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("overriddencreatedon", value); - } - } - - /// - /// Unique identifier of the manager of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsystemuserid")] - public Microsoft.Xrm.Sdk.EntityReference ParentSystemUserId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("parentsystemuserid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("parentsystemuserid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsystemuseridname")] - public string ParentSystemUserIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("parentsystemuserid")) - { - return this.FormattedValues["parentsystemuserid"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsystemuseridyominame")] - public string ParentSystemUserIdYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("parentsystemuserid")) - { - return this.FormattedValues["parentsystemuserid"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("passporthi")] - public System.Nullable PassportHi - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("passporthi"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("passporthi", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("passportlo")] - public System.Nullable PassportLo - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("passportlo"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("passportlo", value); - } - } - - /// - /// Personal email address of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("personalemailaddress")] - public string PersonalEmailAddress - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("personalemailaddress"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("personalemailaddress", value); - } - } - - /// - /// URL for the Website on which a photo of the user is located. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("photourl")] - public string PhotoUrl - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("photourl"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("photourl", value); - } - } - - /// - /// User's position in hierarchical security model. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("positionid")] - public Microsoft.Xrm.Sdk.EntityReference PositionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("positionid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("positionid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("positionidname")] - public string PositionIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("positionid")) - { - return this.FormattedValues["positionid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Preferred address for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredaddresscode")] - public virtual SystemUser_PreferredAddressCode? PreferredAddressCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_PreferredAddressCode?)(EntityOptionSetEnum.GetEnum(this, "preferredaddresscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("preferredaddresscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredaddresscodename")] - public string PreferredAddressCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("preferredaddresscode")) - { - return this.FormattedValues["preferredaddresscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Preferred email address for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredemailcode")] - public virtual SystemUser_PreferredEmailCode? PreferredEmailCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_PreferredEmailCode?)(EntityOptionSetEnum.GetEnum(this, "preferredemailcode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("preferredemailcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredemailcodename")] - public string PreferredEmailCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("preferredemailcode")) - { - return this.FormattedValues["preferredemailcode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Preferred phone number for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredphonecode")] - public virtual SystemUser_PreferredPhoneCode? PreferredPhoneCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_PreferredPhoneCode?)(EntityOptionSetEnum.GetEnum(this, "preferredphonecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("preferredphonecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredphonecodename")] - public string PreferredPhoneCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("preferredphonecode")) - { - return this.FormattedValues["preferredphonecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Shows the ID of the process. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] - public System.Nullable ProcessId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("processid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("processid", value); - } - } - - /// - /// Unique identifier of the default queue for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] - public Microsoft.Xrm.Sdk.EntityReference QueueId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("queueid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("queueid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueidname")] - public string QueueIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("queueid")) - { - return this.FormattedValues["queueid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Salutation for correspondence with the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salutation")] - public string Salutation - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("salutation"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("salutation", value); - } - } - - /// - /// Check if user is a setup user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("setupuser")] - public System.Nullable SetupUser - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("setupuser"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("setupuser", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("setupusername")] - public string SetupUsername - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("setupuser")) - { - return this.FormattedValues["setupuser"]; - } - else - { - return default(string); - } - } - } - - /// - /// SharePoint Work Email Address - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharepointemailaddress")] - public string SharePointEmailAddress - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("sharepointemailaddress"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sharepointemailaddress", value); - } - } - - /// - /// Site at which the user is located. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteid")] - public Microsoft.Xrm.Sdk.EntityReference SiteId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("siteid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("siteid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("siteidname")] - public string SiteIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("siteid")) - { - return this.FormattedValues["siteid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Skill set of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("skills")] - public string Skills - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("skills"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("skills", value); - } - } - - /// - /// Shows the ID of the stage. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] - public System.Nullable StageId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("stageid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("stageid", value); - } - } - - /// - /// Unique identifier for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] - public System.Nullable SystemUserId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("systemuserid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("systemuserid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SystemUserId = value; - } - } - - /// - /// Unique identifier of the territory to which the user is assigned. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryid")] - public Microsoft.Xrm.Sdk.EntityReference TerritoryId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("territoryid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("territoryid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryidname")] - public string TerritoryIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("territoryid")) - { - return this.FormattedValues["territoryid"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] - public System.Nullable TimeZoneRuleVersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("timezoneruleversionnumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("timezoneruleversionnumber", value); - } - } - - /// - /// Title of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] - public string Title - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("title"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("title", value); - } - } - - /// - /// Unique identifier of the currency associated with the systemuser. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] - public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("transactioncurrencyid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("transactioncurrencyid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyidname")] - public string TransactionCurrencyIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("transactioncurrencyid")) - { - return this.FormattedValues["transactioncurrencyid"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traversedpath")] - public string TraversedPath - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("traversedpath"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("traversedpath", value); - } - } - - /// - /// Shows the type of user license. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userlicensetype")] - public System.Nullable UserLicenseType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("userlicensetype"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("userlicensetype", value); - } - } - - /// - /// User PUID User Identifiable Information - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userpuid")] - public string UserPuid - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("userpuid"); - } - } - - /// - /// Time zone code that was in use when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] - public System.Nullable UtcConversionTimeZoneCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("utcconversiontimezonecode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("utcconversiontimezonecode", value); - } - } - - /// - /// Version number of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// Windows Live ID - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("windowsliveid")] - public string WindowsLiveId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("windowsliveid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("windowsliveid", value); - } - } - - /// - /// User's Yammer login email address - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammeremailaddress")] - public string YammerEmailAddress - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("yammeremailaddress"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("yammeremailaddress", value); - } - } - - /// - /// User's Yammer ID - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammeruserid")] - public string YammerUserId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("yammeruserid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("yammeruserid", value); - } - } - - /// - /// Pronunciation of the first name of the user, written in phonetic hiragana or katakana characters. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifirstname")] - public string YomiFirstName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("yomifirstname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("yomifirstname", value); - } - } - - /// - /// Pronunciation of the full name of the user, written in phonetic hiragana or katakana characters. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifullname")] - public string YomiFullName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("yomifullname"); - } - } - - /// - /// Pronunciation of the last name of the user, written in phonetic hiragana or katakana characters. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomilastname")] - public string YomiLastName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("yomilastname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("yomilastname", value); - } - } - - /// - /// Pronunciation of the middle name of the user, written in phonetic hiragana or katakana characters. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomimiddlename")] - public string YomiMiddleName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("yomimiddlename"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("yomimiddlename", value); - } - } - - /// - /// 1:N dfa_systemuser_dfa_projectclaim_EAName - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_systemuser_dfa_projectclaim_EAName")] - public System.Collections.Generic.IEnumerable DFA_SystemUser_DFA_ProjectClaim_EAnaMe - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("dfa_systemuser_dfa_projectclaim_EAName", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("dfa_systemuser_dfa_projectclaim_EAName", null, value); - } - } - - /// - /// 1:N dfa_systemuser_dfa_projectclaim_QualifiedReceiver - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfa_systemuser_dfa_projectclaim_QualifiedReceiver")] - public System.Collections.Generic.IEnumerable DFA_SystemUser_DFA_ProjectClaim_QualifiedReceiver - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("dfa_systemuser_dfa_projectclaim_QualifiedReceiver", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("dfa_systemuser_dfa_projectclaim_QualifiedReceiver", null, value); - } - } - - /// - /// 1:N lk_dfa_clientcode_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_clientcode_createdby")] - public System.Collections.Generic.IEnumerable Lk_DFA_ClientCode_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_dfa_clientcode_createdby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_dfa_clientcode_createdby", null, value); - } - } - - /// - /// 1:N lk_dfa_clientcode_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_clientcode_createdonbehalfby")] - public System.Collections.Generic.IEnumerable Lk_DFA_ClientCode_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_dfa_clientcode_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_dfa_clientcode_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_dfa_clientcode_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_clientcode_modifiedby")] - public System.Collections.Generic.IEnumerable Lk_DFA_ClientCode_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_dfa_clientcode_modifiedby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_dfa_clientcode_modifiedby", null, value); - } - } - - /// - /// 1:N lk_dfa_clientcode_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_clientcode_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable Lk_DFA_ClientCode_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_dfa_clientcode_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_dfa_clientcode_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_dfa_projectclaim_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_projectclaim_createdby")] - public System.Collections.Generic.IEnumerable Lk_DFA_ProjectClaim_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_dfa_projectclaim_createdby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_dfa_projectclaim_createdby", null, value); - } - } - - /// - /// 1:N lk_dfa_projectclaim_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_projectclaim_createdonbehalfby")] - public System.Collections.Generic.IEnumerable Lk_DFA_ProjectClaim_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_dfa_projectclaim_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_dfa_projectclaim_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_dfa_projectclaim_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_projectclaim_modifiedby")] - public System.Collections.Generic.IEnumerable Lk_DFA_ProjectClaim_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_dfa_projectclaim_modifiedby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_dfa_projectclaim_modifiedby", null, value); - } - } - - /// - /// 1:N lk_dfa_projectclaim_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfa_projectclaim_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable Lk_DFA_ProjectClaim_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_dfa_projectclaim_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_dfa_projectclaim_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_emcr_expenseproject_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_expenseproject_createdby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_ExpenseProject_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_expenseproject_createdby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_expenseproject_createdby", null, value); - } - } - - /// - /// 1:N lk_emcr_expenseproject_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_expenseproject_createdonbehalfby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_ExpenseProject_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_expenseproject_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_expenseproject_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_emcr_expenseproject_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_expenseproject_modifiedby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_ExpenseProject_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_expenseproject_modifiedby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_expenseproject_modifiedby", null, value); - } - } - - /// - /// 1:N lk_emcr_expenseproject_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_expenseproject_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_ExpenseProject_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_expenseproject_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_expenseproject_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_emcr_responsibilitycentre_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_responsibilitycentre_createdby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_ResponsibilityCentre_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_responsibilitycentre_createdby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_responsibilitycentre_createdby", null, value); - } - } - - /// - /// 1:N lk_emcr_responsibilitycentre_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_responsibilitycentre_createdonbehalfby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_ResponsibilityCentre_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_responsibilitycentre_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_responsibilitycentre_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_emcr_responsibilitycentre_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_responsibilitycentre_modifiedby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_ResponsibilityCentre_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_responsibilitycentre_modifiedby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_responsibilitycentre_modifiedby", null, value); - } - } - - /// - /// 1:N lk_emcr_responsibilitycentre_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_responsibilitycentre_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_ResponsibilityCentre_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_responsibilitycentre_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_responsibilitycentre_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_emcr_serviceline_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_serviceline_createdby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_ServiceLine_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_serviceline_createdby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_serviceline_createdby", null, value); - } - } - - /// - /// 1:N lk_emcr_serviceline_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_serviceline_createdonbehalfby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_ServiceLine_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_serviceline_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_serviceline_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_emcr_serviceline_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_serviceline_modifiedby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_ServiceLine_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_serviceline_modifiedby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_serviceline_modifiedby", null, value); - } - } - - /// - /// 1:N lk_emcr_serviceline_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_serviceline_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_ServiceLine_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_serviceline_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_serviceline_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_emcr_stob_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_stob_createdby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_Stob_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_stob_createdby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_stob_createdby", null, value); - } - } - - /// - /// 1:N lk_emcr_stob_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_stob_createdonbehalfby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_Stob_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_stob_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_stob_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_emcr_stob_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_stob_modifiedby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_Stob_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_stob_modifiedby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_stob_modifiedby", null, value); - } - } - - /// - /// 1:N lk_emcr_stob_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_emcr_stob_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable Lk_EMCR_Stob_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_emcr_stob_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_emcr_stob_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_systemuser_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] - public System.Collections.Generic.IEnumerable ReferencedLk_SystemUser_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); - } - } - - /// - /// 1:N lk_systemuser_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] - public System.Collections.Generic.IEnumerable ReferencedLk_SystemUser_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); - } - } - - /// - /// 1:N lk_systemuserbase_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] - public System.Collections.Generic.IEnumerable ReferencedLk_SystemUserBase_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); - } - } - - /// - /// 1:N lk_systemuserbase_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] - public System.Collections.Generic.IEnumerable ReferencedLk_SystemUserBase_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); - } - } - - /// - /// 1:N user_dfa_clientcode - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_dfa_clientcode")] - public System.Collections.Generic.IEnumerable User_DFA_ClientCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("user_dfa_clientcode", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("user_dfa_clientcode", null, value); - } - } - - /// - /// 1:N user_dfa_projectclaim - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_dfa_projectclaim")] - public System.Collections.Generic.IEnumerable User_DFA_ProjectClaim - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("user_dfa_projectclaim", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("user_dfa_projectclaim", null, value); - } - } - - /// - /// 1:N user_parent_user - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced)] - public System.Collections.Generic.IEnumerable ReferencedUser_Parent_User - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); - } - } - - /// - /// N:1 lk_systemuser_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] - public Database.Model.SystemUser ReferencingLk_SystemUser_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); - } - } - - /// - /// N:1 lk_systemuser_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] - public Database.Model.SystemUser ReferencingLk_SystemUser_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); - } - } - - /// - /// N:1 lk_systemuserbase_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] - public Database.Model.SystemUser ReferencingLk_SystemUserBase_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referencing); - } - } - - /// - /// N:1 lk_systemuserbase_modifiedby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] - public Database.Model.SystemUser ReferencingLk_SystemUserBase_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referencing); - } - } - - /// - /// N:1 user_parent_user - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsystemuserid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing)] - public Database.Model.SystemUser ReferencingUser_Parent_User - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SystemUser(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["systemuserid"] = base.Id; - break; - case "systemuserid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/EntityOptionSetEnum.cs b/Database/Model/EntityOptionSetEnum.cs deleted file mode 100644 index 499b68e..0000000 --- a/Database/Model/EntityOptionSetEnum.cs +++ /dev/null @@ -1,66 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - internal sealed class EntityOptionSetEnum - { - - /// - /// Returns the integer version of an OptionSetValue - /// - public static System.Nullable GetEnum(Microsoft.Xrm.Sdk.Entity entity, string attributeLogicalName) - { - if (entity.Attributes.ContainsKey(attributeLogicalName)) - { - Microsoft.Xrm.Sdk.OptionSetValue value = entity.GetAttributeValue(attributeLogicalName); - if (value != null) - { - return value.Value; - } - } - return null; - } - - /// - /// Returns a collection of integer version's of an Multi-Select OptionSetValue for a given attribute on the passed entity - /// - public static System.Collections.Generic.IEnumerable GetMultiEnum(Microsoft.Xrm.Sdk.Entity entity, string attributeLogicalName) - - { - Microsoft.Xrm.Sdk.OptionSetValueCollection value = entity.GetAttributeValue(attributeLogicalName); - System.Collections.Generic.List list = new System.Collections.Generic.List(); - if (value == null) - { - return list; - } - list.AddRange(System.Linq.Enumerable.Select(value, v => (T)(object)v.Value)); - return list; - } - - /// - /// Returns a OptionSetValueCollection based on a list of Multi-Select OptionSetValues - /// - public static Microsoft.Xrm.Sdk.OptionSetValueCollection GetMultiEnum(Microsoft.Xrm.Sdk.Entity entity, string attributeLogicalName, System.Collections.Generic.IEnumerable values) - - { - if (values == null) - { - return null; - } - Microsoft.Xrm.Sdk.OptionSetValueCollection collection = new Microsoft.Xrm.Sdk.OptionSetValueCollection(); - collection.AddRange(System.Linq.Enumerable.Select(values, v => new Microsoft.Xrm.Sdk.OptionSetValue((int)(object)v))); - return collection; - } - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/Messages/AnalyzeSentiment.cs b/Database/Model/Messages/AnalyzeSentiment.cs deleted file mode 100644 index bcd7e3d..0000000 --- a/Database/Model/Messages/AnalyzeSentiment.cs +++ /dev/null @@ -1,169 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - [System.Runtime.Serialization.DataContractAttribute(Namespace="http://schemas.microsoft.com/xrm/2011//")] - [Microsoft.Xrm.Sdk.Client.RequestProxyAttribute("AnalyzeSentiment")] - public partial class AnalyzeSentimentRequest : Microsoft.Xrm.Sdk.OrganizationRequest - { - - public static class Fields - { - public const string Text = "Text"; - public const string ModelId = "ModelId"; - public const string Language = "Language"; - } - - public const string ActionLogicalName = "AnalyzeSentiment"; - - public string Text - { - get - { - if (this.Parameters.Contains("text")) - { - return ((string)(this.Parameters["text"])); - } - else - { - return default(string); - } - } - set - { - this.Parameters["text"] = value; - } - } - - public string ModelId - { - get - { - if (this.Parameters.Contains("modelId")) - { - return ((string)(this.Parameters["modelId"])); - } - else - { - return default(string); - } - } - set - { - this.Parameters["modelId"] = value; - } - } - - public string Language - { - get - { - if (this.Parameters.Contains("language")) - { - return ((string)(this.Parameters["language"])); - } - else - { - return default(string); - } - } - set - { - this.Parameters["language"] = value; - } - } - - public AnalyzeSentimentRequest() - { - this.RequestName = "AnalyzeSentiment"; - this.Text = default(string); - } - } - - [System.Runtime.Serialization.DataContractAttribute(Namespace="http://schemas.microsoft.com/xrm/2011//")] - [Microsoft.Xrm.Sdk.Client.ResponseProxyAttribute("AnalyzeSentiment")] - public partial class AnalyzeSentimentResponse : Microsoft.Xrm.Sdk.OrganizationResponse - { - - public static class Fields - { - public const string DocumentsCores = "DocumentsCores"; - public const string Sentences = "Sentences"; - public const string Sentiment = "Sentiment"; - } - - public const string ActionLogicalName = "AnalyzeSentiment"; - - public AnalyzeSentimentResponse() - { - } - - public Microsoft.Xrm.Sdk.Entity DocumentsCores - { - get - { - if (this.Results.Contains("documentScores")) - { - return ((Microsoft.Xrm.Sdk.Entity)(this.Results["documentScores"])); - } - else - { - return default(Microsoft.Xrm.Sdk.Entity); - } - } - set - { - this.Results["documentScores"] = value; - } - } - - public Microsoft.Xrm.Sdk.EntityCollection Sentences - { - get - { - if (this.Results.Contains("sentences")) - { - return ((Microsoft.Xrm.Sdk.EntityCollection)(this.Results["sentences"])); - } - else - { - return default(Microsoft.Xrm.Sdk.EntityCollection); - } - } - set - { - this.Results["sentences"] = value; - } - } - - public string Sentiment - { - get - { - if (this.Results.Contains("sentiment")) - { - return ((string)(this.Results["sentiment"])); - } - else - { - return default(string); - } - } - set - { - this.Results["sentiment"] = value; - } - } - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/OptionSets/DFA_ClaimBpfSubStages.cs b/Database/Model/OptionSets/DFA_ClaimBpfSubStages.cs deleted file mode 100644 index d256adf..0000000 --- a/Database/Model/OptionSets/DFA_ClaimBpfSubStages.cs +++ /dev/null @@ -1,56 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_ClaimBpfSubStages - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Additional info. Required", 4, "#0000ff")] - AdditionalInfoRequired = 222710004, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Approved", 5, "#0000ff")] - Approved = 222710005, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Approved with Exclusions", 8, "#0000ff")] - ApprovedWithExclusions = 222710008, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Assign to Evaluator", 3, "#0000ff")] - AssignToEvaluator = 222710003, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Ineligible", 6, "#0000ff")] - Ineligible = 222710006, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("In Progress", 2, "#0000ff")] - InProgress = 222710002, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Pending", 0, "#0000ff")] - Pending = 222710000, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Received", 1, "#0000ff")] - Received = 222710001, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Withdrawn", 7, "#0000ff")] - Withdrawn = 222710007, - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/OptionSets/DFA_ClaimBusinessProcessStages.cs b/Database/Model/OptionSets/DFA_ClaimBusinessProcessStages.cs deleted file mode 100644 index c3c3243..0000000 --- a/Database/Model/OptionSets/DFA_ClaimBusinessProcessStages.cs +++ /dev/null @@ -1,60 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_ClaimBusinessProcessStages - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Adjudicator", 0, "#0000ff")] - Adjudicator = 222710006, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Approval Pending", 9, "#0000ff")] - ApprovalPending = 222710003, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Closed", 5, "#0000ff")] - Closed = 222710011, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Compliance Check", 1, "#0000ff")] - ComplianceCheck = 222710007, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Decision Made", 4, "#0000ff")] - DecisionMade = 222710010, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Draft", 6, "#0000ff")] - Draft = 222710000, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Expense Authority", 3, "#0000ff")] - ExpenseAuthority = 222710009, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Qualified Receiver", 2, "#0000ff")] - QualifiedReceiver = 222710008, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Submitted", 7, "#0000ff")] - Submitted = 222710001, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Under Review", 8, "#0000ff")] - UnderReview = 222710002, - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/OptionSets/DFA_CodingBlockSubmissionStatus.cs b/Database/Model/OptionSets/DFA_CodingBlockSubmissionStatus.cs deleted file mode 100644 index f57c807..0000000 --- a/Database/Model/OptionSets/DFA_CodingBlockSubmissionStatus.cs +++ /dev/null @@ -1,40 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_CodingBlockSubmissionStatus - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Draft", 1, "#0000ff")] - Draft = 222710000, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("EA Review", 2, "#0000ff")] - EaReview = 222710001, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Failed", 4, "#0000ff")] - Failed = 222710004, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Pending Submission", 0, "#0000ff")] - PendingSubmission = 222710002, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Submitted", 3, "#0000ff")] - Submitted = 222710003, - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/OptionSets/DFA_PayGroup.cs b/Database/Model/OptionSets/DFA_PayGroup.cs deleted file mode 100644 index bf26296..0000000 --- a/Database/Model/OptionSets/DFA_PayGroup.cs +++ /dev/null @@ -1,31 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - /// - /// Pay Group of the Supplier Site in CAS system. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_PayGroup - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("GEN CHQ", 0, "#0000ff")] - GenChq = 222710000, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("GEN EFT", 1, "#0000ff")] - GenEft = 222710001, - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/OptionSets/DFA_RecoveryClaimType.cs b/Database/Model/OptionSets/DFA_RecoveryClaimType.cs deleted file mode 100644 index 3919ba4..0000000 --- a/Database/Model/OptionSets/DFA_RecoveryClaimType.cs +++ /dev/null @@ -1,28 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - [System.Runtime.Serialization.DataContractAttribute()] - public enum DFA_RecoveryClaimType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Advanced Payment", 1, "#0000ff")] - AdvancedPayment = 222710001, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Standard Payment", 0, "#0000ff")] - StandardPayment = 222710000, - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/OptionSets/EMCR_ExpenseProjectType.cs b/Database/Model/OptionSets/EMCR_ExpenseProjectType.cs deleted file mode 100644 index 1e34e67..0000000 --- a/Database/Model/OptionSets/EMCR_ExpenseProjectType.cs +++ /dev/null @@ -1,36 +0,0 @@ -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Database.Model -{ - - - [System.Runtime.Serialization.DataContractAttribute()] - public enum EMCR_ExpenseProjectType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Project", 0)] - Project = 717350000, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Project Child", 3)] - ProjectChild = 717350003, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Project Level 2", 1)] - ProjectLevel2 = 717350001, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Project Level 3", 2)] - ProjectLevel3 = 717350002, - } -} -#pragma warning restore CS1591 diff --git a/Database/Model/builderSettings.json b/Database/Model/builderSettings.json deleted file mode 100644 index fef52db..0000000 --- a/Database/Model/builderSettings.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "codeCustomizationService": "DLaB.ModelBuilderExtensions.CustomizeCodeDomService,DLaB.ModelBuilderExtensions", - "codeGenerationService": "DLaB.ModelBuilderExtensions.CodeGenerationService,DLaB.ModelBuilderExtensions", - "codeWriterFilterService": "DLaB.ModelBuilderExtensions.CodeWriterFilterService,DLaB.ModelBuilderExtensions", - "codeWriterMessageFilterService": "DLaB.ModelBuilderExtensions.CodeWriterMessageFilterService,DLaB.ModelBuilderExtensions", - "dLaB.ModelBuilder": { - "addDebuggerNonUserCode": true, - "addNewFilesToProject": true, - "addOptionSetMetadataAttribute": true, - "adjustCasingForEnumOptions": true, - "builderSettingsJsonRelativePath": "builderSettings.json", - "camelCaseClassNames": true, - "camelCaseMemberNames": true, - "camelCaseNamesDictionaryRelativePath": "DLaB.EarlyBoundGeneratorV2\\DLaB.Dictionary.txt", - "cleanupCrmSvcUtilLocalOptionSets": false, - "createOneFilePerMessage": true, - "createOneFilePerEntity": true, - "createOneFilePerOptionSet": true, - "deleteFilesFromOutputFolders": false, - "generateMessageAttributeNameConsts": true, - "generateAllOptionSetLabelMetadata": false, - "generateAttributeNameConsts": true, - "generateAnonymousTypeConstructor": true, - "generateConstructorsSansLogicalName": true, - "generateEntityRelationships": true, - "generateOptionSetProperties": false, - "generateOptionSetMetadataAttribute": true, - "generateTypesAsInternal": false, - "groupLocalOptionSetsByEntity": false, - "groupMessageRequestWithResponse": true, - "includeCommandLine": false, - "invalidCSharpNamePrefix": "_", - "localOptionSetFormat": "{0}_{1}", - "makeAllFieldsEditable": false, - "makeReadonlyFieldsEditable": false, - "makeReferenceTypesNullable": false, - "makeResponseMessagesEditable": true, - "modelBuilderLogLevel": "2", - "readSerializedMetadata": false, - "removeRuntimeVersionComment": true, - "outputRelativeDirectory": "Model", - "serializeMetadata": false, - "suppressAutogeneratedFileHeaderComment": false, - "tokenCapitalizationOverrides": [ - "AccessTeam", - "ActiveState", - "AssignedTo", - "BusinessAs", - "CardUci", - "DefaultOnCase", - "EmailAnd", - "EmailSend", - "EmailSender", - "EMCR", - "FeatureSet", - "FedEx", - "ForAn", - "Geronimo", - "InvoiceDate", - "IsMsTeams", - "IsPaiEnabled", - "IsSopIntegration", - "MsDynCe_", - "MsDynMkt_", - "MsDyUsd", - "O365Admin", - "OcSkillIdentMlModel", - "OnHold", - "OrderId", - "OwnerOnAssign", - "ParticipatesIn", - "PartiesOnEmail", - "PauseStates", - "PredictiveAddress", - "Resp", - "Response", - "Responsibility", - "SentOn", - "SettingsAndSummary", - "SlaId", - "SlaKpi", - "Stob", - "SyncOptIn", - "Timeout", - "TradeShow", - "UserPuid", - "VoiceMail" - ], - "transliterationRelativePath": "DLaB.EarlyBoundGeneratorV2\\alphabets", - "useLogicalNames": false, - "useCrmSvcUtilStateEnumNamingConvention": false, - "useDisplayNameForBpfName": true, - "useTfsToCheckoutFiles": false, - "waitForAttachedDebugger": false - }, - "emitEntityETC": false, - "emitFieldsClasses": true, - "emitVirtualAttributes": true, - "entityNamesFilter": [ - "dfa_clientcode", - "dfa_projectclaim", - "emcr_expenseproject", - "emcr_responsibilitycentre", - "emcr_serviceline", - "emcr_stob", - "systemuser" - ], - "entityTypesFolder": "Entities", - "generateActions": true, - "generateGlobalOptionSets": false, - "messageNamesFilter": [ - "analyze*" - ], - "messagesTypesFolder": "Messages", - "metadataProviderService": "DLaB.ModelBuilderExtensions.MetadataProviderService,DLaB.ModelBuilderExtensions", - "metadataQueryProviderService": "DLaB.ModelBuilderExtensions.MetadataQueryProviderService,DLaB.ModelBuilderExtensions", - "namespace": "Database.Model", - "namingService": "DLaB.ModelBuilderExtensions.NamingService,DLaB.ModelBuilderExtensions", - "optionSetsTypesFolder": "OptionSets", - "serviceContextName": "DatabaseContext", - "suppressGeneratedCodeAttribute": true, - "suppressINotifyPattern": true -} diff --git a/Database/README.md b/Database/README.md deleted file mode 100644 index f89709e..0000000 --- a/Database/README.md +++ /dev/null @@ -1,64 +0,0 @@ -## Generate Entities - -### Version -As of June 4, 2025; this is the latest version. For more examples, see VSD repository. - -### Overview -This Database project uses the latest standard of using Dynamics as a database and exposing ORM entities for use with repositories and command handlers -The advantages of this new standard are: -- Higher performance especially with nested queries which are no longer N^2 queries -- Strongly typed queries -- Compatible with repository or command handler patterns e.g. MediatR - - -### Prerequisites -- [XrmToolbox](https://www.xrmtoolbox.com/) with [Early Bound Generator V2 plugin](https://www.xrmtoolbox.com/plugins/DLaB.Xrm.EarlyBoundGeneratorV2/) -Download the latest version on the XrmToolbox home page. To install the plugin, open XrmToolbox, click on "Configuration -> Tool Library" and search for "Early Bound Generator V2" and install it. -You can also use Tool Library to update the existing plugins. -- Cisco vpn.gov.bc.ca connection - - -### Setup new database -1. Add a new class library project to your .NET solution e.g. "Database" -2. See below on how to create a new connection -3. Open XrmToolBox -> Tool "Early Bound Generator V2" and save the default settings to the project folder -4. Select "Entities Whitelist" and select the tables you will be need to access in the solution -5. Set "Namespace" -> "Database.Model", "Output Relative Directory" -> "Model", and "Service Context Name" -> "DatabaseContext" -6. Click "Generate" to generate the entities, messages, optionsets in their corresponding folders and DatabaseContext. -7. Copy "Shared.Contract" and "Shared.Database" folders and file "Database\DatabaseContext.Partial.cs" -8. Add project reference "Shared.Database" to project "Database" -8. Review the entity names, if you see any casing issues, add the prefix or name to the "Token Capitalization Overrides" e.g. EMCR will fix EMcR_ExpenseProject and STOB will fix EMcR_SToB -9. Add nuget packages "Microsoft.PowerPlatform.Dataverse.Client" and "Microsoft.PowerPlatform.Dataverse.Client.Dynamics" to project in step #1 -10. Create DTO primitive copies of the entities, enums, etc in a new class library project e.g. "Manager.Contract" -11. Add mappings for the Entity -> DTO and DTO -> Entity -12. Edit the prefix in file "SharedMapper.cs" -13. Add user secrets found in "ServiceCollectionExtensions.cs" from a developer or OpenShift - - -### How to generate entities -1. Open XrmToolbox, add connection, select connection string, and then add the following connection string replacing the placeholders with your IDIR login: -`authtype=AD;url=https://cscp-vs.dev.jag.gov.bc.ca;domain=https://ststest.gov.bc.ca/adfs/oauth2/token;username=@gov.bc.ca;password=` - Connection Wizard also works, leave domain and realm url blank and enter your credentials. The url will be something like https://embc-dfa.dev.jag.gov.bc.ca/ -2. Open DLaB.EarlyBoundGeneratorV2.DefaultSettings.xml and then click "Generate" button. -This will generate the entities, messages, optionsets in their corresponding folders and DatabaseContext. - -NOTE in theory, you could add your authentication profile to PAC using your connection string and then use the command lines found in the generated code. If you do try this, please update this ReadMe.md with your findings. - -### Limitations -- Method-based query syntax is limited to joining one table AFAIK -- LINQ query expressions do not fully support `where` - where => The left side of the clause must be an attribute name and the right side of the clause must be a value. You cannot set the left side to a constant. Both the sides of the clause cannot be constants. - https://learn.microsoft.com/en-us/power-apps/developer/data-platform/org-service/linq-query-examples - - -## Troubleshooting - -If you encounter a user authentication error and the authentication hasn't changed and your VPN is connected, try restarting the XrmToolbox application. I find this happens often but restarting always fixes the issue. - -## Dataverse Cheatsheet - -.AddLink - Adds a link between two entity instances that already exist in database -.AddRelatedObject - Adds a new related entity to an existing entity - -### References -[Dataverse LINQ Queries](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/org-service/build-queries-with-linq-net-language-integrated-query) \ No newline at end of file diff --git a/Database/ServiceCollectionExtensions.cs b/Database/ServiceCollectionExtensions.cs deleted file mode 100644 index 3182033..0000000 --- a/Database/ServiceCollectionExtensions.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace Database; - -public static class ServiceCollectionExtensions -{ - public static IServiceCollection AddDatabase(this IServiceCollection services, IConfiguration configuration) - { - services.AddDatabaseService(configuration); - services.AddScoped(sp => - { - var client = sp.GetRequiredService(); - return new DatabaseContext(client); - }); - return services; - } -} diff --git a/Model/Client/DTO/Response.cs b/Model/Client/DTO/Response.cs deleted file mode 100644 index 3902837..0000000 --- a/Model/Client/DTO/Response.cs +++ /dev/null @@ -1,3 +0,0 @@ -namespace Model; - -public record Response(string Content, HttpStatusCode StatusCode); diff --git a/Model/DTO/ClientCode.cs b/Model/DTO/ClientCode.cs deleted file mode 100644 index be48193..0000000 --- a/Model/DTO/ClientCode.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Model; - -public record ClientCode : IDto -{ - public Guid Id { get; set; } - public StateCode StateCode { get; set; } - - [MaxLength(100)] - public required string Code { get; set; } // Dynamics Business Required dfa_code -} diff --git a/Model/DTO/ExpenseProject.cs b/Model/DTO/ExpenseProject.cs deleted file mode 100644 index 1cd3603..0000000 --- a/Model/DTO/ExpenseProject.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Model; - -public record ExpenseProject : IDto -{ - public Guid Id { get; set; } - public StateCode StateCode { get; set; } - - [MaxLength(100)] - public required string Code { get; set; } // Dynamics Business Required emcr_code -} diff --git a/Model/DTO/RecoveryClaim.cs b/Model/DTO/RecoveryClaim.cs deleted file mode 100644 index fb88fce..0000000 --- a/Model/DTO/RecoveryClaim.cs +++ /dev/null @@ -1,50 +0,0 @@ -namespace Model; - -public record RecoveryClaimQuery //: IRequest> -{ - public Guid? Id { get; set; } - public bool IncludeChildren { get; set; } - public CodingBlockSubmissionStatus? CodingBlockSubmissionStatus { get; set; } - public DateTime? AfterInvoiceDate { get; set; } - public DateTime? AfterDateGoodsReceived { get; set; } - public DateTime? AfterDateInvoiceReceived { get; set; } -} - -public record RecoveryClaim : IDto -{ - public Guid Id { get; set; } - public StateCode StateCode { get; set; } - - public CodingBlockSubmissionStatus? CodingBlockSubmissionStatus { get; set; } // Dynamics Optional dfa_codingblocksubmissionstatus - - [MaxLength(4000)] - public string? LastCodingBlockSubmissionError { get; set; } // Dynamics Optional dfa_lastcodingblocksubmissionerror - - public string? SupplierNumber { get; set; } // Dynamics Optional dfa_suppliernumber - [MaxLength(250)] - public string? SupplierSiteNumber { get; set; } // Dynamics Optional dfa_site - public DateTime? InvoiceDate { get; set; } // Dynamics Optional dfa_invoicedate - public string? InvoiceNumber { get; set; } // Dynamics Optional dfa_invoicenumber - public decimal? InvoiceAmount { get; set; } // Dynamics Optional dfa_casinvoiceamount - public PayGroup? PayGroup { get; set; } // Dynamics Optional dfa_paygroup - public DateTime? DateGoodsReceived { get; set; } // Dynamics Optional dfa_dategoodsandservicesreceived - public DateTime? DateInvoiceReceived { get; set; } // Dynamics Optional dfa_claimreceiveddate - public StaticReference? QualifiedReceiverKey { get; set; } // Dynamics Optional dfa_qualifiedreceiver, relationship dfa_systemuser - public StaticReference? ResponsibilityCentreKey { get; set; } // Dynamics Optional dfa_resp - public StaticReference? ClientCodeKey { get; set; } // Dynamics Optional dfa_clientcodeid, relationship dfa_clientcode - public StaticReference? ExpenseProjectKey { get; set; } // Dynamics Optional dfa_expenseproject -> dfa_projectnumber - public StaticReference? ServiceLineKey { get; set; } // Dynamics Optional dfa_serviceline -> dfa_emcr_serviceline - public StaticReference? StobKey { get; set; } // Dynamics Optional dfa_stob -> dfa_emcr_stob - - [MaxLength(40)] - public string? PaymentAdviceComments { get; set; } // Dynamics Optional dfa_paymentadvicecomments - - - // Related Entities - public User? QualifiedReceiver { get; set; } - public ResponsibilityCentre? ResponsibilityCentre { get; set; } - public ServiceLine? ServiceLine { get; set; } - public Stob? Stob { get; set; } - public ExpenseProject? ExpenseProject { get; set; } - public ClientCode? ClientCode { get; set; } -} diff --git a/Model/DTO/ResponsibilityCentre.cs b/Model/DTO/ResponsibilityCentre.cs deleted file mode 100644 index 4251d15..0000000 --- a/Model/DTO/ResponsibilityCentre.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Model; - -public record ResponsibilityCentre : IDto -{ - public Guid Id { get; set; } - public StateCode StateCode { get; set; } - - [MaxLength(100)] - public required string Code { get; set; } // Dynamics Business Required emcr_code -} diff --git a/Model/DTO/ServiceLine.cs b/Model/DTO/ServiceLine.cs deleted file mode 100644 index e8fe778..0000000 --- a/Model/DTO/ServiceLine.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Model; - -public record ServiceLine : IDto -{ - public Guid Id { get; set; } - public StateCode StateCode { get; set; } - - [MaxLength(100)] - public required string Code { get; set; } // Dynamics Business Required emcr_code -} diff --git a/Model/DTO/Stob.cs b/Model/DTO/Stob.cs deleted file mode 100644 index 94f1b36..0000000 --- a/Model/DTO/Stob.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Model; - -public record Stob : IDto -{ - public Guid Id { get; set; } - public StateCode StateCode { get; set; } - - [MaxLength(100)] - public string? Code { get; set; } // Dynamics Optional emcr_code -} diff --git a/Model/DTO/User.cs b/Model/DTO/User.cs deleted file mode 100644 index 45a4320..0000000 --- a/Model/DTO/User.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Model; - -public class User : IDto -{ - public Guid Id { get; set; } - public StateCode StateCode { get; set; } - - [MaxLength(200)] - public string? FullName { get; set; } // Dynamics Optional fullname -} diff --git a/Model/EnumExtensions.cs b/Model/EnumExtensions.cs deleted file mode 100644 index f17d201..0000000 --- a/Model/EnumExtensions.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace Model; - -public static class EnumExtensions -{ - public static string GetDescription(this Enum value) - { - var fi = value.GetType().GetField(value.ToString()); - var attributes = fi.GetCustomAttributes(typeof(DescriptionAttribute), false) as DescriptionAttribute[]; - - if (attributes != null && attributes.Any()) - { - return attributes.First().Description; - } - - return value.ToString(); - } -} diff --git a/Model/Global.cs b/Model/Global.cs deleted file mode 100644 index 3176130..0000000 --- a/Model/Global.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace Model; - -public enum CodingBlockSubmissionStatus -{ - Draft = 222710000, - EaReview = 222710001, - Failed = 222710004, - PendingSubmission = 222710002, - Submitted = 222710003 -} - -public enum PayGroup -{ - [Description("GEN CHQ")] - GenChq = 222710000, - - [Description("GEN EFT")] - GenEft = 222710001, -} \ No newline at end of file diff --git a/Model/GlobalUsings.cs b/Model/GlobalUsings.cs deleted file mode 100644 index b8d65ee..0000000 --- a/Model/GlobalUsings.cs +++ /dev/null @@ -1,3 +0,0 @@ -global using Shared.Contract; -global using System.ComponentModel; -global using System.ComponentModel.DataAnnotations; diff --git a/Model/Model.csproj b/Model/Model.csproj index 254f7ba..11bad95 100644 --- a/Model/Model.csproj +++ b/Model/Model.csproj @@ -11,10 +11,6 @@ - - - - diff --git a/Model/StringExtensions.cs b/Model/StringExtensions.cs deleted file mode 100644 index 432cef0..0000000 --- a/Model/StringExtensions.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace Model; - -public static class StringExtensions -{ - public static string Truncate(this string n, int length) - { - if (string.IsNullOrEmpty(n)) - return n; - if (length > 3) - return n.Length <= length ? n : n.Substring(0, length - 3) + "..."; - else - return n.Length <= length ? n : n.Substring(0, length); - } -} diff --git a/Resources/GlobalUsings.cs b/Resources/GlobalUsings.cs deleted file mode 100644 index a61a314..0000000 --- a/Resources/GlobalUsings.cs +++ /dev/null @@ -1,7 +0,0 @@ -global using AutoMapper; -global using System.Net; -global using Database.Model; -global using Microsoft.Extensions.Logging; -global using Model; -global using Shared.Contract; -global using Shared.Database; \ No newline at end of file diff --git a/Resources/RecoveryClaimMapper.cs b/Resources/RecoveryClaimMapper.cs deleted file mode 100644 index 4f6a299..0000000 --- a/Resources/RecoveryClaimMapper.cs +++ /dev/null @@ -1,96 +0,0 @@ -namespace Resources; - -public class RecoveryClaimMapper : Profile -{ - public RecoveryClaimMapper() - { - // Keep these mappings in sync with the below - CreateMap() - .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.DFA_ProjectClaimId)) - .ForMember(dest => dest.ClientCodeKey, opt => opt.MapFrom(src => src.DFA_ClientCodeId)) - .ForMember(dest => dest.ResponsibilityCentreKey, opt => opt.MapFrom(src => src.DFA_Resp)) - .ForMember(dest => dest.ServiceLineKey, opt => opt.MapFrom(src => src.DFA_ServiceLine)) - .ForMember(dest => dest.StobKey, opt => opt.MapFrom(src => src.DFA_Stob)) - .ForMember(dest => dest.ExpenseProjectKey, opt => opt.MapFrom(src => src.DFA_ProjectNumber)) - .ForMember(dest => dest.StateCode, opt => opt.MapFrom(src => src.StateCode)) - .ForMember(dest => dest.CodingBlockSubmissionStatus, opt => opt.MapFrom(src => src.DFA_CodingBlockSubmissionStatus)) - .ForMember(dest => dest.SupplierNumber, opt => opt.MapFrom(src => src.DFA_SupplierNumber)) - .ForMember(dest => dest.SupplierSiteNumber, opt => opt.MapFrom(src => src.DFA_Site)) - .ForMember(dest => dest.InvoiceDate, opt => opt.MapFrom(src => src.DFA_InvoiceDate)) - .ForMember(dest => dest.InvoiceNumber, opt => opt.MapFrom(src => src.DFA_InvoiceNumber)) - .ForMember(dest => dest.InvoiceAmount, opt => opt.MapFrom(src => src.DFA_CasInvoiceAmount)) - .ForMember(dest => dest.PayGroup, opt => opt.MapFrom(src => src.DFA_PayGroupType)) - .ForMember(dest => dest.DateGoodsReceived, opt => opt.MapFrom(src => src.DFA_DateGoodsAndServicesReceived)) - .ForMember(dest => dest.DateInvoiceReceived, opt => opt.MapFrom(src => src.DFA_ClaimReceivedDate)) - .ForMember(dest => dest.QualifiedReceiverKey, opt => opt.MapFrom(src => src.DFA_QualifiedReceiver)) - .ForMember(dest => dest.PaymentAdviceComments, opt => opt.MapFrom(src => src.DFA_PaymentAdviceComments)) - .ForMember(dest => dest.LastCodingBlockSubmissionError, opt => opt.MapFrom(src => src.DFA_LastCodingBlockSubmissionError)); - - // Keep these mappings in sync with the above - CreateMap() - .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.ProjectClaim.Id)) - .ForMember(dest => dest.ClientCodeKey, opt => opt.MapFrom(src => src.ProjectClaim.DFA_ClientCodeId)) - .ForMember(dest => dest.ClientCode, opt => opt.MapFrom(src => src.ClientCode)) - .ForMember(dest => dest.ResponsibilityCentreKey, opt => opt.MapFrom(src => src.ProjectClaim.DFA_Resp)) - .ForMember(dest => dest.ResponsibilityCentre, opt => opt.MapFrom(src => src.ResponsibilityCentre)) - .ForMember(dest => dest.ServiceLineKey, opt => opt.MapFrom(src => src.ProjectClaim.DFA_ServiceLine)) - .ForMember(dest => dest.ServiceLine, opt => opt.MapFrom(src => src.ServiceLine)) - .ForMember(dest => dest.StobKey, opt => opt.MapFrom(src => src.ProjectClaim.DFA_Stob)) - .ForMember(dest => dest.Stob, opt => opt.MapFrom(src => src.Stob)) - .ForMember(dest => dest.ExpenseProjectKey, opt => opt.MapFrom(src => src.ProjectClaim.DFA_ProjectNumber)) - .ForMember(dest => dest.StateCode, opt => opt.MapFrom(src => src.ProjectClaim.StateCode)) - .ForMember(dest => dest.CodingBlockSubmissionStatus, opt => opt.MapFrom(src => src.ProjectClaim.DFA_CodingBlockSubmissionStatus)) - .ForMember(dest => dest.SupplierNumber, opt => opt.MapFrom(src => src.ProjectClaim.DFA_SupplierNumber)) - .ForMember(dest => dest.SupplierSiteNumber, opt => opt.MapFrom(src => src.ProjectClaim.DFA_Site)) - .ForMember(dest => dest.InvoiceDate, opt => opt.MapFrom(src => src.ProjectClaim.DFA_InvoiceDate)) - .ForMember(dest => dest.InvoiceNumber, opt => opt.MapFrom(src => src.ProjectClaim.DFA_InvoiceNumber)) - .ForMember(dest => dest.InvoiceAmount, opt => opt.MapFrom(src => src.ProjectClaim.DFA_CasInvoiceAmount)) - .ForMember(dest => dest.PayGroup, opt => opt.MapFrom(src => src.ProjectClaim.DFA_PayGroupType)) - .ForMember(dest => dest.DateGoodsReceived, opt => opt.MapFrom(src => src.ProjectClaim.DFA_DateGoodsAndServicesReceived)) - .ForMember(dest => dest.DateInvoiceReceived, opt => opt.MapFrom(src => src.ProjectClaim.DFA_ClaimReceivedDate)) - .ForMember(dest => dest.PaymentAdviceComments, opt => opt.MapFrom(src => src.ProjectClaim.DFA_PaymentAdviceComments)) - .ForMember(dest => dest.QualifiedReceiverKey, opt => opt.MapFrom(src => src.ProjectClaim.DFA_QualifiedReceiver)) - .ForMember(dest => dest.QualifiedReceiver, opt => opt.MapFrom(src => src.QualifiedReceiver)) - .ForMember(dest => dest.LastCodingBlockSubmissionError, opt => opt.MapFrom(src => src.ProjectClaim.DFA_LastCodingBlockSubmissionError)); - - CreateMap() - .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.EMCR_ResponsibilityCentreId)) - .ForMember(dest => dest.Code, opt => opt.MapFrom(src => src.EMCR_Code)); - - CreateMap() - .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.EMCR_ExpenseProjectId)) - .ForMember(dest => dest.Code, opt => opt.MapFrom(src => src.EMCR_Code)); - - CreateMap() - .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.DFA_ClientCodeId)) - .ForMember(dest => dest.Code, opt => opt.MapFrom(src => src.DFA_Code)); - - CreateMap() - .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.EMCR_ServiceLineId)) - .ForMember(dest => dest.Code, opt => opt.MapFrom(src => src.EMCR_Code)); - - CreateMap() - .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.EMCR_StobId)) - .ForMember(dest => dest.Code, opt => opt.MapFrom(src => src.EMCR_Code)); - - CreateMap(); - - CreateMap() - .ForMember(dest => dest.GLDate, opt => opt.MapFrom(src => src.InvoiceDate)) - .ForMember(dest => dest.QualifiedReceiver, opt => opt.MapFrom(src => src.QualifiedReceiver.FullName)) - // below hard-coded values are specific to EMCR DFA, if you reuse the DynamicsController with other projects, move these hard-coded values from this mapping to DFA specific code or have DFA Dynamics supply these values - .ForMember(dest => dest.InvoiceBatchName, opt => opt.MapFrom(src => "EMCR DFA")) - .ForMember(dest => dest.PayGroup, opt => opt.MapFrom(src => src.PayGroup == null ? "GEN CHQ" : src.PayGroup.GetDescription())) - .ForMember(dest => dest.Terms, opt => opt.MapFrom(src => "20 Days")) - // end of DFA hard-coded mappings - .ForMember(dest => dest.InvoiceLineDetails, opt => opt.MapFrom(src => new List - { - new InvoiceLineDetail - { - InvoiceLineNumber = 1, - InvoiceLineAmount = src.InvoiceAmount ?? 0, - DefaultDistributionAccount = $"{src.ClientCode.Code}.{src.ResponsibilityCentre.Code}.{src.ServiceLine.Code}.{src.Stob.Code}.{src.ExpenseProject.Code}.000000.0000" - } - })); - } -} diff --git a/Resources/RecoveryClaimRepository.cs b/Resources/RecoveryClaimRepository.cs deleted file mode 100644 index 0108f3d..0000000 --- a/Resources/RecoveryClaimRepository.cs +++ /dev/null @@ -1,128 +0,0 @@ -namespace Resources; - -public interface IRecoveryClaimRepository : IQueryRepository, IBaseRepository -{ - IEnumerable GetPending(); - bool UpdateCodingBlockSubmissionStatus(Guid id, CodingBlockSubmissionStatus submitted); - bool UpdateFailure(Guid id, string errorMessage); -} - -public class RecoveryClaimRepository : BaseRepository, IRecoveryClaimRepository -{ - private readonly DatabaseContext _databaseContext; - - public RecoveryClaimRepository(DatabaseContext databaseContext, IMapper mapper) : base(databaseContext, mapper) - { - _databaseContext = databaseContext; - } - - // TODO using Query would be ideal but there are limitations with the LINQ where method that need to be overcome - public IEnumerable GetPending() - { - var queryResults = ( - from pc in _databaseContext.DFA_ProjectClaimSet - join su in _databaseContext.SystemUserSet on pc.DFA_QualifiedReceiver.Id equals su.Id - join cc in _databaseContext.DFA_ClientCodeSet on pc.DFA_ClientCodeId.Id equals cc.Id - join ep in _databaseContext.EMCR_ExpenseProjectSet on pc.DFA_ProjectNumber.Id equals ep.Id - join s in _databaseContext.EMCR_StobSet on pc.DFA_Stob.Id equals s.Id - join rc in _databaseContext.EMCR_ResponsibilityCentreSet on pc.DFA_Resp.Id equals rc.Id - join sl in _databaseContext.EMCR_ServiceLineSet on pc.DFA_ServiceLine.Id equals sl.Id - where pc.DFA_CodingBlockSubmissionStatus == DFA_CodingBlockSubmissionStatus.PendingSubmission || pc.DFA_CodingBlockSubmissionStatus == DFA_CodingBlockSubmissionStatus.Failed - select new { ProjectClaim = pc, QualifiedReceiver = su, ClientCode = cc, ExpenseProject = ep, Stob = s, ResponsibilityCentre = rc, ServiceLine = sl }) - .ToList() - .Select(x => new ProjectClaimEntity(x.ProjectClaim, x.QualifiedReceiver, x.ClientCode, x.ExpenseProject, x.Stob, x.ResponsibilityCentre, x.ServiceLine)); - - // TODO this is not as performant as it could be, we are filtering the results AFTER the database call - // it is likely possible to add the commented out clauses below to the above query but it requires reading the documentation and working around the limitations of LINQ support - //where pc.DFA_InvoiceDate.HasValue && pc.DFA_InvoiceDate.Value.AddDays(10) > DateTime.UtcNow - //where pc.DFA_ClaimReceivedDate.HasValue && pc.DFA_ClaimReceivedDate.Value.AddDays(10) > DateTime.UtcNow - //where pc.DFA_DateGoodsAndServicesReceived.HasValue && pc.DFA_DateGoodsAndServicesReceived.Value.AddDays(10) > DateTime.UtcNow - - queryResults = queryResults - .Where(x => - (x.ProjectClaim.DFA_InvoiceDate.HasValue && x.ProjectClaim.DFA_InvoiceDate.Value.AddDays(10) > DateTime.UtcNow) - || (x.ProjectClaim.DFA_ClaimReceivedDate.HasValue && x.ProjectClaim.DFA_ClaimReceivedDate.Value.AddDays(10) > DateTime.UtcNow) - || (x.ProjectClaim.DFA_DateGoodsAndServicesReceived.HasValue && x.ProjectClaim.DFA_DateGoodsAndServicesReceived.Value.AddDays(10) > DateTime.UtcNow)); - - return _mapper.Map>(queryResults); - } - - // TODO this should be generic and performance could be improved - public bool UpdateCodingBlockSubmissionStatus(Guid id, CodingBlockSubmissionStatus codingBlockSubmissionStatus) - { - var projectClaim = _databaseContext.DFA_ProjectClaimSet.FirstOrDefault(x => x.Id == id); - if (projectClaim == null) - return false; - - projectClaim.DFA_CodingBlockSubmissionStatus = (DFA_CodingBlockSubmissionStatus)codingBlockSubmissionStatus; - _databaseContext.UpdateObject(projectClaim); - - return _databaseContext - .SaveChanges() - .HasError; - } - - // TODO this should be generic and performance could be improved - public bool UpdateFailure(Guid id, string errorMessage) - { - var projectClaim = _databaseContext.DFA_ProjectClaimSet.FirstOrDefault(x => x.Id == id); - if (projectClaim == null) - return false; - - projectClaim.DFA_CodingBlockSubmissionStatus = DFA_CodingBlockSubmissionStatus.Failed; - projectClaim.DFA_LastCodingBlockSubmissionError = errorMessage.Truncate(4000); - _databaseContext.UpdateObject(projectClaim); - - return _databaseContext - .SaveChanges() - .HasError; - } - - // TODO could not fully implement with "IncludeChildren", more research required - public IEnumerable Query(RecoveryClaimQuery query) - { - //if (query.IncludeChildren) - //{ - // //var queryResults = _databaseContext.DFA_ProjectClaimSet - // // .Join(_databaseContext.SystemUserSet, pc => pc.DFA_QualifiedReceiver.Id, su => su.Id, (pc, su) => new { ProjectClaim = pc, QualifiedReceiver = su }) - // // .WhereIf(query.Id != null, x => x.ProjectClaim.Id == query.Id.Value) - // // .WhereIf(query.CodingBlockSubmissionStatus != null, x => x.ProjectClaim.DFA_CodingBlockSubmissionStatus == (DFA_CodingBlockSubmissionStatus?)query.CodingBlockSubmissionStatus) - // // .WhereIf(query.AfterInvoiceDate != null, x => x.ProjectClaim.DFA_InvoiceDate >= query.AfterInvoiceDate) - // // .WhereIf(query.AfterDateGoodsReceived != null, x => x.ProjectClaim.DFA_DateGoodsAndServicesReceived >= query.AfterDateGoodsReceived) - // // .WhereIf(query.AfterDateInvoiceReceived != null, x => x.ProjectClaim.DFA_ClaimReceivedDate >= query.AfterDateInvoiceReceived); - - // var queryResults = ( - // from pc in _databaseContext.DFA_ProjectClaimSet - // join su in _databaseContext.SystemUserSet on pc.DFA_QualifiedReceiver.Id equals su.Id - // join cc in _databaseContext.DFA_ClientCodeSet on pc.DFA_ClientCodeId.Id equals cc.Id - // where pc.DFA_CodingBlockSubmissionStatus == (DFA_CodingBlockSubmissionStatus?)query.CodingBlockSubmissionStatus - // select new { ProjectClaim = pc, QualifiedReceiver = su, ClientCode = cc, ExpenseProject = ep }) - // .ToList() - // .Select(x => new ProjectClaimEntity(x.ProjectClaim, x.QualifiedReceiver, x.ClientCode, x.ExpenseProject)); - - // return _mapper.Map>(queryResults); - //} - //else - //{ - var queryResults = _databaseContext.DFA_ProjectClaimSet - .Where(query) - .ToList(); - return _mapper.Map>(queryResults); - //} - } -} - -public record ProjectClaimEntity(DFA_ProjectClaim ProjectClaim, SystemUser QualifiedReceiver, DFA_ClientCode ClientCode, EMCR_ExpenseProject ExpenseProject, EMCR_Stob Stob, EMCR_ResponsibilityCentre ResponsibilityCentre, EMCR_ServiceLine ServiceLine); - -public static class RecoveryClaimRepositoryExtensions -{ - public static IQueryable Where(this IQueryable results, RecoveryClaimQuery query) - { - return results - .WhereIf(query.Id != null, x => x.Id == query.Id) - .WhereIf(query.CodingBlockSubmissionStatus != null, x => x.DFA_CodingBlockSubmissionStatus == (DFA_CodingBlockSubmissionStatus?)query.CodingBlockSubmissionStatus) - .WhereIf(query.AfterInvoiceDate != null, x => x.DFA_InvoiceDate >= query.AfterInvoiceDate) - .WhereIf(query.AfterDateGoodsReceived != null, x => x.DFA_DateGoodsAndServicesReceived >= query.AfterDateGoodsReceived) - .WhereIf(query.AfterDateInvoiceReceived != null, x => x.DFA_ClaimReceivedDate >= query.AfterDateInvoiceReceived); - } -} diff --git a/Resources/RecoveryClaimService.cs b/Resources/RecoveryClaimService.cs deleted file mode 100644 index 47ac5dd..0000000 --- a/Resources/RecoveryClaimService.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Resources; - -public interface IRecoveryClaimService -{ - Task> ProcessClaims(); -} - -public class RecoveryClaimService(IRecoveryClaimRepository repository, IMapper mapper, ICasService casService, ILogger logger) : IRecoveryClaimService -{ - public async Task> ProcessClaims() - { - try - { - var claimResponses = new List(); - var recoveryClaims = repository.GetPending(); - - foreach (var recoveryClaim in recoveryClaims) - { - var invoice = mapper.Map(recoveryClaim); - var createInvoiceResponse = await casService.CreateInvoice(invoice); - var response = new IdResponse(recoveryClaim.Id, createInvoiceResponse.Content, createInvoiceResponse.StatusCode); - if (response.StatusCode == HttpStatusCode.OK) - { - repository.UpdateCodingBlockSubmissionStatus(recoveryClaim.Id, CodingBlockSubmissionStatus.Submitted); - } - else - { - repository.UpdateFailure(recoveryClaim.Id, response.Content); - } - claimResponses.Add(response); - } - - logger.LogInformation("The following recovery claims were processed and sent to CAS to generate invoices:\r\n{0}", System.Text.Json.JsonSerializer.Serialize(claimResponses)); - return claimResponses; - } - catch (Exception ex) - { - logger.LogError(ex, "An error occurred while processing claims."); - throw; - } - } -} - -public record IdResponse(Guid Id, string Content, HttpStatusCode StatusCode) : Response(Content, StatusCode) { } \ No newline at end of file diff --git a/Resources/Resources.csproj b/Resources/Resources.csproj deleted file mode 100644 index 4b80c34..0000000 --- a/Resources/Resources.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - net9.0 - enable - enable - - - - - - - - - - diff --git a/Shared.Contract/BaseHandlers.cs b/Shared.Contract/BaseHandlers.cs deleted file mode 100644 index 68604b9..0000000 --- a/Shared.Contract/BaseHandlers.cs +++ /dev/null @@ -1,86 +0,0 @@ -namespace Shared.Contract; - -// Query, Find, and Base Handler -public class FindQueryBaseHandlers : QueryBaseHandlers - where TRepository : IFindRepository, IQueryRepository, IBaseRepository - where TDto : IDto -{ - public FindQueryBaseHandlers(TRepository repository) : base(repository) { } - - public async Task Handle(TFindQuery query, CancellationToken cancellationToken) - { - var results = _repository.FirstOrDefault(query); - return await Task.FromResult(results); - } -} - -// Query and Base Handler -public class QueryBaseHandlers : BaseHandlers - where TRepository : IQueryRepository, IBaseRepository - where TDto : IDto -{ - public QueryBaseHandlers(TRepository repository) : base(repository) { } - - public async Task> Handle(TQuery query, CancellationToken cancellationToken) - { - var results = _repository.Query(query); - return await Task.FromResult(results); - } -} - -// Only Base Handler -public class BaseHandlers - where TRepository : IBaseRepository - where TDto : IDto -{ - protected readonly TRepository _repository; - - public BaseHandlers(TRepository repository) - { - _repository = repository; - } - - public async Task Handle(InsertCommand command, CancellationToken cancellationToken) - { - var results = _repository.Insert(command.Payload); - return await Task.FromResult(results); - } - - public async Task Handle(UpsertCommand command, CancellationToken cancellationToken) - { - var results = _repository.Upsert(command.Payload); - return await Task.FromResult(results); - } - - public async Task Handle(UpdateCommand command, CancellationToken cancellationToken) - { - var results = _repository.Update(command.Payload); - return await Task.FromResult(results); - } - - public async Task Handle(TryDeleteCommand command, CancellationToken cancellationToken) - { - var results = _repository.TryDelete(command.Id); - return await Task.FromResult(results); - } - - public async Task Handle(TryDeleteByDtoCommand command, CancellationToken cancellationToken) - { - var results = _repository.TryDelete(command.Payload); - return await Task.FromResult(results); - } - - public async Task Handle(DeleteCommand command, CancellationToken cancellationToken) - { - var results = _repository.Delete(command.Id); - return await Task.FromResult(results); - } -} - -public record InsertCommand(TDto dto) : PayloadCommand(dto) { } -public record UpsertCommand(TDto dto) : PayloadCommand(dto) { } -public record UpdateCommand(TDto dto) : PayloadCommand(dto) { } - -public record TryDeleteByDtoCommand(TDto dto) : PayloadCommand(dto) { } -public record TryDeleteCommand(Guid Id) : IdCommand(Id) { } -public record DeleteCommand(Guid Id) : IdCommand(Id) { } \ No newline at end of file diff --git a/Shared.Contract/Command.cs b/Shared.Contract/Command.cs deleted file mode 100644 index a6eb0a9..0000000 --- a/Shared.Contract/Command.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace Shared.Contract; - -public record PayloadCommand(TPayload Payload) : IRequest -{ - public TPayload Payload { get; set; } = Payload; -} - -public record class IdCommand(Guid Id) : IRequest -{ - public Guid Id { get; set; } = Id; -} - -public record class IdCommand(Guid Id) : IRequest -{ - public Guid Id { get; set; } = Id; -} \ No newline at end of file diff --git a/Shared.Contract/GlobalUsings.cs b/Shared.Contract/GlobalUsings.cs deleted file mode 100644 index bb19d15..0000000 --- a/Shared.Contract/GlobalUsings.cs +++ /dev/null @@ -1,2 +0,0 @@ -global using MediatR; -global using System.Linq.Expressions; \ No newline at end of file diff --git a/Shared.Contract/IBaseRepository.cs b/Shared.Contract/IBaseRepository.cs deleted file mode 100644 index ac73bd8..0000000 --- a/Shared.Contract/IBaseRepository.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace Shared.Contract; - -public interface IBaseRepository where TDto : IDto -{ - Guid Insert(TDto dto); - Guid Upsert(TDto dto); - IEnumerable Where(Expression> predicates); - bool Update(TDto dto); - //bool Update(Guid id, params Expression>[] properties); - bool TryDelete(Guid id); - bool TryDelete(TDto dto, bool isRecursive = false); - bool TryDeleteRange(IEnumerable invoices, bool isRecursive = false); - bool Delete(Guid id); -} diff --git a/Shared.Contract/IDto.cs b/Shared.Contract/IDto.cs deleted file mode 100644 index 0705194..0000000 --- a/Shared.Contract/IDto.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Shared.Contract; - -public interface IDto -{ - public Guid Id { get; set; } - public StateCode StateCode { get; set; } -} diff --git a/Shared.Contract/IQueryRepository.cs b/Shared.Contract/IQueryRepository.cs deleted file mode 100644 index cc067a2..0000000 --- a/Shared.Contract/IQueryRepository.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace Shared.Contract; - -public interface IFindRepository -{ - TDto FirstOrDefault(TQuery query); -} - -public interface IQueryRepository -{ - IEnumerable Query(TQuery query); -} diff --git a/Shared.Contract/QueryableExtensions.cs b/Shared.Contract/QueryableExtensions.cs deleted file mode 100644 index 4de8661..0000000 --- a/Shared.Contract/QueryableExtensions.cs +++ /dev/null @@ -1,38 +0,0 @@ -namespace Shared.Contract; - -public static class QueryableExtensions -{ - public static IQueryable WhereIf(this IQueryable source, bool condition, Expression> predicate) - { - return condition ? source.Where(predicate) : source; - } - - public static IQueryable WhereIfNotIn(this IQueryable source, bool condition, Expression> valueSelector, IEnumerable values) - { - return condition ? source.WhereNotIn(valueSelector, values): source; - } - - // Filters a sequence for elements with a property matching a predefined list of values (`in` filter) - public static IQueryable WhereIn(this IQueryable source, Expression> valueSelector, IEnumerable values) - { - ArgumentNullException.ThrowIfNull(valueSelector); - ArgumentNullException.ThrowIfNull(values); - - var element = valueSelector.Parameters.Single(); - var body = values.Select(v => Expression.Equal(valueSelector.Body, Expression.Constant(v))).Aggregate(Expression.OrElse); - var lambda = Expression.Lambda>(body, element); - return source.Where(lambda); - } - - // Filters a sequence for elements with a property not matching a predefined list of values (`not in` filter) - public static IQueryable WhereNotIn(this IQueryable source, Expression> valueSelector, IEnumerable values) - { - ArgumentNullException.ThrowIfNull(valueSelector); - ArgumentNullException.ThrowIfNull(values); - - var element = valueSelector.Parameters.Single(); - var body = values.Select(v => Expression.NotEqual(valueSelector.Body, Expression.Constant(v))).Aggregate(Expression.AndAlso); - var lambda = Expression.Lambda>(body, element); - return source.Where(lambda); - } -} \ No newline at end of file diff --git a/Shared.Contract/References.cs b/Shared.Contract/References.cs deleted file mode 100644 index 11a96be..0000000 --- a/Shared.Contract/References.cs +++ /dev/null @@ -1,4 +0,0 @@ -// TODO rename these -public record StaticReference(Guid Id, string SchemaName); - -public record DynamicReference(Guid Id, string SchemaName); diff --git a/Shared.Contract/Shared.Contract.csproj b/Shared.Contract/Shared.Contract.csproj deleted file mode 100644 index 246ea08..0000000 --- a/Shared.Contract/Shared.Contract.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - net8.0 - enable - enable - - - - - - - diff --git a/Shared.Contract/StateCode.cs b/Shared.Contract/StateCode.cs deleted file mode 100644 index 7e1cefb..0000000 --- a/Shared.Contract/StateCode.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Shared.Contract; - -public enum StateCode -{ - Active = 0, - Inactive = 1 -} \ No newline at end of file diff --git a/Shared.Database/BaseRepository.cs b/Shared.Database/BaseRepository.cs deleted file mode 100644 index 4ab1ed2..0000000 --- a/Shared.Database/BaseRepository.cs +++ /dev/null @@ -1,185 +0,0 @@ -namespace Shared.Database; - -public abstract class BaseRepository - where TEntity : Entity - where TDto : IDto -{ - // TODO check if this acts like a singleton otherwise check if we can have concurrency issues - private readonly OrganizationServiceContext _databaseContext; - protected readonly IMapper _mapper; - - public BaseRepository(OrganizationServiceContext databaseContext, IMapper mapper) - { - _databaseContext = databaseContext; - _mapper = mapper; - } - - public virtual Guid Insert(TDto dto) - { - var entity = Map(dto); - _databaseContext.AddObject(entity); - _databaseContext.SaveChanges(); - return entity.Id; - } - - public TDto FirstOrDefault(Expression> predicates) - { - var entity = MapExpression(predicates) - .FirstOrDefault(); - return _mapper.Map(entity); - } - - public IEnumerable Where(Expression> predicates) - { - var entities = MapExpression(predicates) - .ToList(); - return _mapper.Map, IEnumerable>(entities); - } - - public virtual Guid Upsert(TDto dto) - { - var entity = Map(dto); - var existingEntity = _databaseContext - .CreateQuery() - .FirstOrDefault(x => x.Id == entity.Id); - if (existingEntity != null) - { - _databaseContext.Detach(existingEntity); - _databaseContext.Attach(entity); - _databaseContext.UpdateObject(entity); - } - else - { - _databaseContext.AddObject(entity); - } - _databaseContext.SaveChanges(); - return entity.Id; - } - - // WARNING this method does not work, since assignment operators are not allowed in Expression Trees - public virtual bool Update(Guid id, params Expression>[] properties) - { - var entity = _databaseContext - .CreateQuery() - .FirstOrDefault(x => x.Id == id); - if (entity == null) - return false; - - if (!_databaseContext.IsAttached(entity)) - { - _databaseContext.Attach(entity); - } - - foreach (var lambda in properties) - { - var entityExpression = _mapper - .MapExpression>>(lambda) - .Compile(); - entityExpression.Invoke(entity); - } - - return !_databaseContext - .SaveChanges() - .HasError; - } - - public virtual bool Update(TDto dto) - { - if (dto.Id == Guid.Empty) - { - throw new ArgumentException("Id cannot be empty"); - } - var entity = Map(dto); - return Update(entity); - } - - public virtual bool Update(TEntity entity) - { - if (entity.Id == Guid.Empty) - { - throw new ArgumentException("Id cannot be empty"); - } - if (!_databaseContext.IsAttached(entity)) - { - _databaseContext.Attach(entity); - } - _databaseContext.UpdateObject(entity); - return !_databaseContext - .SaveChanges() - .HasError; - } - - public virtual bool TryDelete(Guid id) - { - var dto = Activator.CreateInstance(); - dto.Id = id; - return TryDelete(dto); - } - - public virtual bool TryDelete(TDto dto, bool isRecursive = false) - { - try - { - var entity = Map(dto); - if (!_databaseContext.IsAttached(entity)) - { - _databaseContext.Attach(entity); - } - _databaseContext.DeleteObject(entity, isRecursive); - _databaseContext.SaveChanges(); - _databaseContext.Detach(entity); - return true; - } - catch - { - return false; - } - } - - // safe delete, use TryDelete for faster deletes - public virtual bool Delete(Guid id) - { - var entity = _databaseContext - .CreateQuery() - .FirstOrDefault(x => x.Id == id); - if (entity == null) - { - return false; - } - _databaseContext.DeleteObject(entity); - _databaseContext.SaveChanges(); - _databaseContext.Detach(entity); - return true; - } - - public virtual bool TryDeleteRange(IEnumerable dtos, bool isRecursive = false) - { - bool result = true; - foreach (var dto in dtos) - { - if (!TryDelete(dto, isRecursive)) - { - result = false; - } - } - return result; - } - - private TEntity Map(TDto dto) - { - return _mapper.Map(dto); - } - - private IEnumerable Map(IEnumerable dto) - { - return _mapper.Map>(dto); - } - - private IQueryable MapExpression(Expression> predicates) - { - var entityPredicateExpression = _mapper.MapExpression>>(predicates); - return _databaseContext - .CreateQuery() - .Where(entityPredicateExpression); - } -} diff --git a/Shared.Database/DataverseExtensions.cs b/Shared.Database/DataverseExtensions.cs deleted file mode 100644 index 7a4a9fa..0000000 --- a/Shared.Database/DataverseExtensions.cs +++ /dev/null @@ -1,197 +0,0 @@ -using Task = System.Threading.Tasks.Task; - -namespace Microsoft.Xrm.Sdk.Client; - -public static class DataverseExtensions -{ - /// - /// Adds a link between 2 entities - /// - /// The context - /// The source entity to link to - /// The relationship name; it is case sensitive - /// The target linked entity - public static void AddLink([NotNull] this OrganizationServiceContext context, Entity sourceEntity, string relationshipName, Entity linkedEntity) - { - context.AddLink(sourceEntity, new Relationship(relationshipName), linkedEntity); - } - - /// - /// Adds a link between 2 entities and also adds the target linked entity - /// - /// The context - /// The source entity to link to - /// The relationship name; it is case sensitive - /// The target entity to add and link - public static void AddRelatedObject([NotNull] this OrganizationServiceContext context, Entity source, string relationshipName, Entity target) - { - context.AddRelatedObject(source, new Relationship(relationshipName), target); - } - - public static void LoadProperties([NotNull] this OrganizationServiceContext context, IEnumerable entities, params string[] propertyNames) - { - Parallel.ForEach(entities, entity => - { - foreach (var property in propertyNames) - { - context.LoadProperty(entity, property); - } - }); - } - - private const int FileBlockSize = 4 * 1024 * 1024; // 4 MB - - /// - /// Uploads a file - /// - /// The organization service instance - /// The entity with file or image field - /// The file or image field name - /// The file data - /// Optional cancellation token - /// The uploaded file id - public static async Task UploadFileAsync([NotNull] this IOrganizationServiceAsync organizationService, [NotNull] Entity entity, string? fileFieldName, [NotNull] FileContainer file, CancellationToken ct = default) - { - var response = (InitializeFileBlocksUploadResponse)await organizationService.ExecuteAsync(new InitializeFileBlocksUploadRequest - { - Target = new EntityReference(entity.LogicalName, entity.Id), - FileAttributeName = fileFieldName, - FileName = file.FileName - }); - - var fileContinuationToken = response.FileContinuationToken; - int blockNumber = 0; - - var slices = new List>(); - int sliceIndex = 0; - while (sliceIndex < file.Content.Length) - { - var left = file.Content.Length - sliceIndex; - var slice = file.Content.Slice(sliceIndex, left > FileBlockSize ? FileBlockSize : left); - slices.Add(slice); - blockNumber++; - sliceIndex += slice.Length; - } - - var blockIds = new ConcurrentBag(); - - try - { - Parallel.ForEach(slices, new ParallelOptions { CancellationToken = ct }, slice => - { - string blockId = Convert.ToBase64String(Encoding.UTF8.GetBytes(Guid.NewGuid().ToString())); - - blockIds.Add(blockId); - - organizationService.Execute(new UploadBlockRequest() - { - BlockData = slice.ToArray(), - BlockId = blockId, - FileContinuationToken = fileContinuationToken, - }); - }); - } - catch (OperationCanceledException) - { - return null; - } - - var commitFileBlocksUploadResponse = (CommitFileBlocksUploadResponse)await organizationService.ExecuteAsync(new CommitFileBlocksUploadRequest - { - BlockList = blockIds.ToArray(), - FileContinuationToken = fileContinuationToken, - FileName = file.FileName, - MimeType = file.MimeType - }); - - return await Task.FromResult(commitFileBlocksUploadResponse.FileId.ToString()); - } - - private static RetrieveAttributeResponse GetAttribute([NotNull] this OrganizationServiceContext context, [NotNull] Entity entity, string? fileFieldName) - { - return (RetrieveAttributeResponse)context.Execute(new RetrieveAttributeRequest - { - EntityLogicalName = entity.LogicalName, - LogicalName = fileFieldName, - }); - } - - /// - /// Download a file or image - /// - /// The organization service instance - /// The entity with the file or image field - /// The file or image field name - /// Optional cancellation token - /// The file data, null if not found - /// - public static async Task DownloadFileAsync([NotNull] this IOrganizationServiceAsync organizationService, [NotNull] Entity entity, string? fileFieldName, CancellationToken ct = default) - { - InitializeFileBlocksDownloadResponse response; - try - { - response = (InitializeFileBlocksDownloadResponse)await organizationService.ExecuteAsync(new InitializeFileBlocksDownloadRequest - - { - Target = new EntityReference(entity.LogicalName, entity.Id), - FileAttributeName = fileFieldName, - }); - } - catch (FaultException ex) when (ex.Message.StartsWith("No file attachment found")) - { - throw new FileNotFoundException($"File not found", ex); - } - - var offset = 0; - - using var ms = new MemoryStream(); - while (offset < response.FileSizeInBytes) - { - if (ct.IsCancellationRequested) break; - var dlResponse = (DownloadBlockResponse)await organizationService.ExecuteAsync(new DownloadBlockRequest - { - FileContinuationToken = response.FileContinuationToken, - BlockLength = FileBlockSize, - Offset = offset - }); - await ms.WriteAsync(dlResponse.Data, ct); - offset += dlResponse.Data.Length; - } - - return await Task.FromResult(new FileContainer(response.FileName, string.Empty, new ReadOnlyMemory(ms.ToArray()))); - } - - /// - /// Deletes a file or image - /// - /// The context - /// The entity with the file or image field - /// The file or image field name - /// Optional cancellation token - public static async Task DeleteFileAsync([NotNull] this OrganizationServiceContext context, [NotNull] Entity entity, string? fileFieldName, CancellationToken ct = default) - { - await Task.CompletedTask; - - var isImage = context.GetAttribute(entity, fileFieldName).AttributeMetadata is ImageAttributeMetadata; - - if (isImage) - { - entity.Attributes[fileFieldName] = null; - context.UpdateObject(entity); - context.SaveChanges(); - } - else - { - if (!Guid.TryParse(entity[fileFieldName]?.ToString() ?? string.Empty, out var fileId)) throw new InvalidOperationException($"Cannot find file id in entity {entity.LogicalName}.{fileId} with id {entity.Id}"); - - DeleteFileRequest deleteFileRequest = new() - { - FileId = fileId - }; - - context.Execute(deleteFileRequest); - } - } -} - -public record FileContainer(string FileName, string MimeType, ReadOnlyMemory Content); diff --git a/Shared.Database/GlobalUsings.cs b/Shared.Database/GlobalUsings.cs deleted file mode 100644 index 643e83a..0000000 --- a/Shared.Database/GlobalUsings.cs +++ /dev/null @@ -1,18 +0,0 @@ -global using AutoMapper; -global using AutoMapper.Extensions.ExpressionMapping; -global using Microsoft.Crm.Sdk.Messages; -global using Microsoft.Extensions.Configuration; -global using Microsoft.Extensions.DependencyInjection; -global using Microsoft.Extensions.Logging; -global using Microsoft.PowerPlatform.Dataverse.Client; -global using Microsoft.Xrm.Sdk; -global using Microsoft.Xrm.Sdk.Client; -global using Microsoft.Xrm.Sdk.Messages; -global using Microsoft.Xrm.Sdk.Metadata; -global using Shared.Contract; -global using System.Collections.Concurrent; -global using System.Diagnostics.CodeAnalysis; -global using System.Linq.Expressions; -global using System.ServiceModel; -global using System.Text; -global using System.Text.Json; diff --git a/Shared.Database/Mappers/AutoMapperExtensions.cs b/Shared.Database/Mappers/AutoMapperExtensions.cs deleted file mode 100644 index f709de3..0000000 --- a/Shared.Database/Mappers/AutoMapperExtensions.cs +++ /dev/null @@ -1,39 +0,0 @@ -using AutoMapper.Extensions.ExpressionMapping; -using System.Linq.Expressions; - -public static class AutoMapperExtensions -{ - public static async Task Query(this IQueryable query, IMapper mapper, - Expression, TModelResult>> queryFunc) where TData : class - { - //Map the expressions - Func, TDataResult> mappedQueryFunc = mapper.MapExpression, TDataResult>>>(queryFunc).Compile(); - - //execute the query - return mapper.Map(mappedQueryFunc(query)); - } - - public static async Task> GetItemsAsync(this IQueryable query, IMapper mapper, - Expression> filter = null, - Expression, IQueryable>> queryFunc = null//, - //ICollection, IIncludableQueryable>>> includeProperties = null - ) - { - //Map the expressions - Expression> f = mapper.MapExpression>>(filter); - Func, IQueryable> mappedQueryFunc = mapper.MapExpression, IQueryable>>>(queryFunc)?.Compile(); - //ICollection, IIncludableQueryable>>> includes = mapper.MapIncludesList, IIncludableQueryable>>>(includeProperties); - - if (f != null) - query = query.Where(f); - - //if (includes != null) - // query = includes.Select(i => i.Compile()).Aggregate(query, (list, next) => query = next(query)); - - //Call the store - ICollection result = mappedQueryFunc != null ? mappedQueryFunc(query).ToList() : query.ToList(); - - //Map and return the data - return mapper.Map, IEnumerable>(result).ToList(); - } -} \ No newline at end of file diff --git a/Shared.Database/Mappers/SharedMapper.cs b/Shared.Database/Mappers/SharedMapper.cs deleted file mode 100644 index 66b7c0f..0000000 --- a/Shared.Database/Mappers/SharedMapper.cs +++ /dev/null @@ -1,38 +0,0 @@ -namespace Shared.Database; - -public class SharedMapper : Profile -{ - public SharedMapper() - { - RecognizeDestinationPrefixes("DFA_"); - RecognizePrefixes("DFA_"); - RecognizeDestinationPrefixes("EMCR_"); - RecognizePrefixes("EMCR_"); - - RecognizeDestinationPostfixes("Id"); - RecognizePostfixes("Id"); - - CreateMap() - .ConvertUsing(src => src.Value); - CreateMap() - .ConvertUsing(src => src != null ? src.Value : null); - CreateMap() - .ConvertUsing(src => src.Id); - CreateMap() - .ConvertUsing(src => src.Id); - CreateMap() - .ConvertUsing(src => new EntityReference(src.SchemaName, src.Id)); - CreateMap() - .ConvertUsing(src => src != null ? new EntityReference(src.SchemaName, src.Id) : null); - CreateMap() - .ConvertUsing(src => new DynamicReference(src.Id, src.LogicalName)); - CreateMap() - .ConvertUsing(src => new EntityReference(src.SchemaName, src.Id)); - CreateMap() - .ConvertUsing(src => new StaticReference(src.Id, src.LogicalName)); - CreateMap() - .ConvertUsing(src => src != null ? new EntityReference(src.SchemaName, src.Id) : null); - CreateMap() - .ConvertUsing(src => src != null ? new StaticReference(src.Id, src.LogicalName) : null); - } -} diff --git a/Shared.Database/ServiceCollectionExtensions.cs b/Shared.Database/ServiceCollectionExtensions.cs deleted file mode 100644 index 0e299b8..0000000 --- a/Shared.Database/ServiceCollectionExtensions.cs +++ /dev/null @@ -1,67 +0,0 @@ -namespace Database; - -public static class ServiceCollectionExtensions -{ - static IConfiguration _configuration; - - // TODO pass in configuration binded model instead of IConfiguration - public static IServiceCollection AddDatabaseService(this IServiceCollection services, IConfiguration configuration) - { - _configuration = configuration; - services.AddSingleton(sp => - { - var logger = sp.GetRequiredService>(); - var uri = new Uri(configuration["DYNAMICS_ODATA_URI"]); - var client = new ServiceClient(uri, TokenProviderAdfs, false, logger); - if (!client.IsReady) throw new InvalidOperationException($"Failed to connect to Dataverse: {client.LastError}", client.LastException); - return client; - }); - - return services; - } - - async static Task TokenProviderAdfs(string instanceUri) - { - // TODO add caching - - var http = new HttpClient(); - var adfsUrl = _configuration["ADFS_OAUTH2_URI"] ?? throw new ArgumentNullException("ADFS_OAUTH2_URI"); - var request = new HttpRequestMessage(HttpMethod.Post, adfsUrl); - request.Headers.Add("Accept", "application/json"); - var content = new FormUrlEncodedContent(new Dictionary() { - { "grant_type", "password" }, - { "response_mode", "form_post"}, - { "client_id", _configuration["DYNAMICS_APP_GROUP_CLIENT_ID"] ?? throw new ArgumentNullException("DYNAMICS_APP_GROUP_CLIENT_ID") }, - { "client_secret", _configuration["DYNAMICS_APP_GROUP_SECRET"]}, - { "resource", _configuration["DYNAMICS_APP_GROUP_RESOURCE"] }, - { "scope", "openid" }, - { "username", _configuration["DYNAMICS_USERNAME"] ?? throw new ArgumentNullException("Username") }, - { "password", _configuration["DYNAMICS_PASSWORD"] ?? throw new ArgumentNullException("Password") }, - }); - - var response = await http.PostAsync(adfsUrl, content); - - try - { - var responseContent = await response.Content.ReadAsStringAsync(); - // response should be in JSON format. - var result = JsonSerializer.Deserialize>(responseContent); - if (result?.ContainsKey("access_token") ?? false) - { - return result["access_token"].GetString(); - } - else if (result?.ContainsKey("error") ?? false) - { - throw new Exception($"{result["error"].GetString()}: {result["error_description"].GetString()}"); - } - else - { - throw new Exception(responseContent); - } - } - catch (Exception e) - { - throw new Exception($"Failed to obtain access token from OAuth2TokenEndpoint: {e.Message}", e); - } - } -} diff --git a/Shared.Database/Shared.Database.csproj b/Shared.Database/Shared.Database.csproj deleted file mode 100644 index 022d552..0000000 --- a/Shared.Database/Shared.Database.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - net8.0 - enable - enable - - - - - - - - - - - - - diff --git a/Test/GlobalUsings.cs b/Test/GlobalUsings.cs index 9925b3c..dcecdcf 100644 --- a/Test/GlobalUsings.cs +++ b/Test/GlobalUsings.cs @@ -1,13 +1,8 @@ global using Api; -global using AutoMapper; -global using Database; -global using Model; global using Microsoft.AspNetCore.Builder; -global using Microsoft.Extensions.Configuration; global using Microsoft.Extensions.DependencyInjection; global using System.Net; global using Client; global using Microsoft.AspNetCore.Hosting; global using Microsoft.Extensions.FileProviders; global using Microsoft.Extensions.Hosting; -global using Resources; diff --git a/Test/RecoveryClaimRepositoryTests.cs b/Test/RecoveryClaimRepositoryTests.cs deleted file mode 100644 index 63ec5fb..0000000 --- a/Test/RecoveryClaimRepositoryTests.cs +++ /dev/null @@ -1,60 +0,0 @@ -public class RecoveryClaimRepositoryTests(IRecoveryClaimRepository repository, IRecoveryClaimService recoveryClaimService, IMapper mapper) -{ - // WARNING these are not valid unit tests and depend on data in Dynamics not changing, use for local testing purposes only - - [Fact] - public void Query() - { - var query = new RecoveryClaimQuery - { - IncludeChildren = true, - Id = new Guid(""), - //CodingBlockSubmissionStatus = CodingBlockSubmissionStatus.PendingSubmission, - //AfterInvoiceDate = new DateTime(2023, 1, 1), - //AfterDateGoodsReceived = new DateTime(2023, 1, 1), - //AfterDateInvoiceReceived = new DateTime(2023, 1, 1) - }; - var recoveryClaims = repository.Query(query); - - // Assert - Assert.NotNull(recoveryClaims); - } - - [Fact] - public async Task GetPending_Success() - { - var responses = await recoveryClaimService.ProcessClaims(); - - Assert.NotNull(responses); - } - - [Fact] - public void UpdateCodingBlockSubmissionStatus_Success() - { - var id = new Guid(""); - var codingBlockSubmissionStatus = CodingBlockSubmissionStatus.Failed; - - repository.UpdateCodingBlockSubmissionStatus(id, codingBlockSubmissionStatus); - - var updatedClaim = repository - .Query(new RecoveryClaimQuery { Id = id }) - .FirstOrDefault(); - Assert.NotNull(updatedClaim); - Assert.Equal(codingBlockSubmissionStatus, updatedClaim.CodingBlockSubmissionStatus); - } - - [Fact] - public void UpdateCodingBlockSubmissionFailure_Success() - { - var id = new Guid(""); - var errorMessage = "An error occurred while processing the request. Our system was unable to successfully perform the request via the API gateway and/or the OpenShift service. Please check the plugins trace logs for more details."; - - repository.UpdateFailure(id, errorMessage); - - var updatedClaim = repository - .Query(new RecoveryClaimQuery { Id = id }) - .FirstOrDefault(); - Assert.NotNull(updatedClaim); - Assert.Equal(errorMessage, updatedClaim.LastCodingBlockSubmissionError); - } -} diff --git a/Test/Startup.cs b/Test/Startup.cs index 7485326..df7a6ae 100644 --- a/Test/Startup.cs +++ b/Test/Startup.cs @@ -10,21 +10,12 @@ public void ConfigureServices(IServiceCollection services) { EnvironmentName = "Development", }; - - var configuration = new ConfigurationBuilder() - .AddUserSecrets() - .AddEnvironmentVariables() - .Build(); - services.AddAppSettings(fakeEnvironment); services.AddCasHttpClient(fakeEnvironment.IsProduction()); - services.AddServices(); - services.AddAutoMapperMappings(); services.AddTransient(); // TODO remove after SSL cert is enabled on OpenShift services.AddHttpClient(); services.AddTransient(); - services.AddDatabase(configuration); } public class FakeEnvironment : IWebHostEnvironment diff --git a/Test/Test.csproj b/Test/Test.csproj index c63f867..0d786e2 100644 --- a/Test/Test.csproj +++ b/Test/Test.csproj @@ -27,7 +27,6 @@ - From c791484ca07f860ed9be70ec55d06ede08979fa1 Mon Sep 17 00:00:00 2001 From: Jebb Burditt Date: Wed, 13 Aug 2025 17:38:54 -0700 Subject: [PATCH 2/2] add back in changes that are helpful --- .dockerignore | 13 +++++++++++++ Api/.dockerignore | 3 --- Client/Dto/Invoice.cs | 14 +++++++------- Client/Dto/InvoiceLineDetail.cs | 16 ++++++++-------- 4 files changed, 28 insertions(+), 18 deletions(-) create mode 100644 .dockerignore delete mode 100644 Api/.dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..811c336 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,13 @@ +.dockerignore +.git +.gitattributes +.gitignore +.github +.vs +.openshift +*.json +**/bin/ +**/obj/ +Dockerfile +README.md +ssl \ No newline at end of file diff --git a/Api/.dockerignore b/Api/.dockerignore deleted file mode 100644 index 22c6fd5..0000000 --- a/Api/.dockerignore +++ /dev/null @@ -1,3 +0,0 @@ -.dockerignore -bin -obj diff --git a/Client/Dto/Invoice.cs b/Client/Dto/Invoice.cs index 144e490..1497dac 100644 --- a/Client/Dto/Invoice.cs +++ b/Client/Dto/Invoice.cs @@ -2,7 +2,7 @@ { public bool IsBlockSupplier { get; set; } - public string InvoiceType { get; set; } + public string InvoiceType { get; set; } = "Standard"; public string SupplierNumber { get; set; } @@ -14,13 +14,13 @@ public decimal InvoiceAmount { get; set; } - public string PayGroup { get; set; } + public string PayGroup { get; set; } = "GEN CHQ"; public DateTime DateInvoiceReceived { get; set; } public DateTime? DateGoodsReceived { get; set; } - public string RemittanceCode { get; set; } + public string RemittanceCode { get; set; } = "01"; public bool SpecialHandling { get; set; } @@ -36,9 +36,9 @@ public string City { get; set; } - public string Country { get; set; } + public string Country { get; set; } = string.Empty; - public string Province { get; set; } + public string Province { get; set; } = string.Empty; public string PostalCode { get; set; } @@ -46,7 +46,7 @@ public string Terms { get; set; } - public string PayAloneFlag { get; set; } + public string PayAloneFlag { get; set; } = "N"; public string PaymentAdviceComments { get; set; } @@ -60,7 +60,7 @@ public string InvoiceBatchName { get; set; } - public string CurrencyCode { get; set; } + public string CurrencyCode { get; set; } = "CAD"; public string? AccountNumber { get; set; } diff --git a/Client/Dto/InvoiceLineDetail.cs b/Client/Dto/InvoiceLineDetail.cs index 7e1ebc3..f687eb9 100644 --- a/Client/Dto/InvoiceLineDetail.cs +++ b/Client/Dto/InvoiceLineDetail.cs @@ -2,25 +2,25 @@ { public int InvoiceLineNumber { get; set; } - public string InvoiceLineType { get; set; } + public string InvoiceLineType { get; set; } = "Item"; - public string LineCode { get; set; } + public string LineCode { get; set; } = "DR"; public decimal InvoiceLineAmount { get; set; } public string DefaultDistributionAccount { get; set; } - public string Description { get; set; } + public string Description { get; set; } = string.Empty; - public string TaxClassificationCode { get; set; } + public string TaxClassificationCode { get; set; } = string.Empty; - public string DistributionSupplier { get; set; } + public string DistributionSupplier { get; set; } = string.Empty; - public string Info1 { get; set; } + public string Info1 { get; set; } = string.Empty; - public string Info2 { get; set; } + public string Info2 { get; set; } = string.Empty; - public string Info3 { get; set; } + public string Info3 { get; set; } = string.Empty; public string ToJSONString() {