diff --git a/.editorconfig b/.editorconfig index ded60a506..b819dc0d3 100644 --- a/.editorconfig +++ b/.editorconfig @@ -68,3 +68,20 @@ csharp_new_line_before_open_brace = all csharp_new_line_before_else = true csharp_new_line_before_catch = true csharp_new_line_before_finally = true + +# Generated code - relax rules that are noisy for auto-generated files +[**/Generated/*.cs] +# Disable naming warnings (generated code may not follow conventions) +dotnet_diagnostic.IDE1006.severity = none + +# Disable documentation warnings (generated code has its own docs) +dotnet_diagnostic.CS1591.severity = none + +# Disable nullable warnings (generated code handles nullability its own way) +dotnet_diagnostic.CS8618.severity = none + +# Don't enforce file-scoped namespaces on generated code +csharp_style_namespace_declarations = block_scoped:none + +# Don't warn about partial class declarations +dotnet_diagnostic.CA1052.severity = none diff --git a/CLAUDE.md b/CLAUDE.md index dc5f75229..39862b259 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -21,6 +21,8 @@ | Guess parallelism values | Use `RecommendedDegreesOfParallelism` from server; guessing degrades performance | | Enable affinity cookie for bulk operations | Routes all requests to single backend node; 10x throughput loss | | Store pooled clients in fields | Causes connection leaks; get per operation, dispose immediately | +| Use magic strings for generated entities | Use `EntityLogicalName` and `Fields.*` constants; see [Generated Entities](#-generated-entities) | +| Use late-bound `Entity` for generated entity types | Use early-bound classes (`PluginAssembly`, `SystemUser`, etc.); compile-time safety | --- @@ -32,13 +34,15 @@ | XML documentation for public APIs | IntelliSense support for consumers | | Multi-target appropriately | PPDS.Plugins: 4.6.2 only; libraries: 8.0, 9.0, 10.0 | | Run `dotnet test` before PR | Ensures no regressions | -| Update `CHANGELOG.md` with changes | Release notes for consumers | +| Update `CHANGELOG.md` for user-facing changes only | Skip internal refactoring, tooling, generated code | | Follow SemVer versioning | Clear compatibility expectations | | Use connection pool for multi-request scenarios | Reuses connections, applies performance settings automatically | | Dispose pooled clients with `await using` | Returns connections to pool; prevents leaks | | Use bulk APIs (`CreateMultiple`, `UpdateMultiple`, `UpsertMultiple`) | 5x faster than `ExecuteMultiple` (~10M vs ~2M records/hour) | | Reference Microsoft Learn docs in ADRs | Authoritative source for Dataverse best practices | | Scale throughput by adding Application Users | Each user has independent API quota; DOP × connections = total parallelism | +| Use early-bound classes for generated entities | Type safety, IntelliSense, refactoring support | +| Ask user before using late-bound for ambiguous cases | If unsure whether dynamic entity handling is needed, ask first | --- @@ -66,6 +70,7 @@ ppds-sdk/ │ ├── PPDS.Dataverse/ │ │ ├── BulkOperations/ # CreateMultiple, UpdateMultiple, UpsertMultiple │ │ ├── Client/ # DataverseClient, IDataverseClient +│ │ ├── Generated/ # Early-bound entity classes (DO NOT manually edit) │ │ ├── Pooling/ # Connection pool, strategies │ │ ├── Resilience/ # Throttle tracking, retry logic │ │ └── PPDS.Dataverse.csproj @@ -94,6 +99,79 @@ ppds-sdk/ --- +## 🏗️ Generated Entities + +Early-bound entity classes in `src/PPDS.Dataverse/Generated/` provide compile-time type safety. + +### Available Entities + +| Entity Class | Logical Name | Used For | +|--------------|--------------|----------| +| `PluginAssembly` | `pluginassembly` | Plugin registration | +| `PluginPackage` | `pluginpackage` | NuGet plugin packages | +| `PluginType` | `plugintype` | Plugin type registration | +| `SdkMessage` | `sdkmessage` | Message lookups | +| `SdkMessageFilter` | `sdkmessagefilter` | Entity/message filtering | +| `SdkMessageProcessingStep` | `sdkmessageprocessingstep` | Step registration | +| `SdkMessageProcessingStepImage` | `sdkmessageprocessingstepimage` | Pre/post images | +| `Solution` | `solution` | Solution operations | +| `SolutionComponent` | `solutioncomponent` | Solution components | +| `AsyncOperation` | `asyncoperation` | System jobs / async operations | +| `ImportJob` | `importjob` | Solution import jobs | +| `SystemUser` | `systemuser` | User mapping | +| `Publisher` | `publisher` | Solution publishers | + +### Usage Patterns + +```csharp +// ✅ Correct - Early-bound with constants +var query = new QueryExpression(PluginAssembly.EntityLogicalName) +{ + ColumnSet = new ColumnSet( + PluginAssembly.Fields.Name, + PluginAssembly.Fields.Version) +}; + +var assembly = new PluginAssembly +{ + Name = "MyPlugin", + IsolationMode = pluginassembly_isolationmode.Sandbox +}; + +// ❌ Wrong - Magic strings +var query = new QueryExpression("pluginassembly") +{ + ColumnSet = new ColumnSet("name", "version") +}; +``` + +### When Late-Bound Is Acceptable + +Late-bound `new Entity(logicalName)` is correct **only** when: +- Entity type is determined at runtime (migration import/export) +- Building generic tooling for arbitrary entities +- Entity doesn't have a generated class + +```csharp +// ✅ Correct - Dynamic entity from schema (migration scenario) +var entity = new Entity(record.LogicalName); + +// ❌ Wrong - Known entity type, should use early-bound +var entity = new Entity("pluginassembly"); +``` + +### Regenerating Entities + +If Dataverse schema changes or new entities are needed: + +```powershell +.\scripts\Generate-EarlyBoundModels.ps1 -Force +``` + +Requires `pac auth` to be configured. See script for entity list. + +--- + ## 🛠️ Common Commands ```powershell diff --git a/scripts/Generate-EarlyBoundModels.ps1 b/scripts/Generate-EarlyBoundModels.ps1 new file mode 100644 index 000000000..619b8de5c --- /dev/null +++ b/scripts/Generate-EarlyBoundModels.ps1 @@ -0,0 +1,167 @@ +<# +.SYNOPSIS + Generates early-bound entity classes from Dataverse metadata using pac modelbuilder. + +.DESCRIPTION + Uses the Power Platform CLI (pac) to generate strongly-typed entity classes + for system/development entities used by PPDS. Generated classes provide + compile-time type safety and IntelliSense instead of magic strings. + + Prerequisites: + 1. Install Power Platform CLI: https://learn.microsoft.com/en-us/power-platform/developer/cli/introduction + 2. Authenticate: pac auth create --deviceCode + +.EXAMPLE + .\scripts\Generate-EarlyBoundModels.ps1 + +.EXAMPLE + # Regenerate after schema changes + .\scripts\Generate-EarlyBoundModels.ps1 -Force + +.NOTES + - Generated files are checked into source control + - No build-time Dataverse connection needed after generation + - Re-run this script only when adding entities or after Dataverse schema changes +#> + +[CmdletBinding()] +param( + [Parameter()] + [switch]$Force, + + [Parameter()] + [string]$OutputDirectory = (Join-Path $PSScriptRoot '../src/PPDS.Dataverse/Generated') +) + +$ErrorActionPreference = 'Stop' + +# Entities used by PPDS CLI and Migration +$Entities = @( + # Plugin registration + 'pluginassembly' + 'pluginpackage' + 'plugintype' + 'sdkmessage' + 'sdkmessagefilter' + 'sdkmessageprocessingstep' + 'sdkmessageprocessingstepimage' + # Solution/ALM + 'solution' + 'solutioncomponent' + 'asyncoperation' + 'importjob' + # User management + 'systemuser' + 'publisher' +) + +Write-Host "PPDS Early-Bound Model Generator" -ForegroundColor Cyan +Write-Host "=================================" -ForegroundColor Cyan +Write-Host "" + +# Check for pac CLI +$pacPath = Get-Command pac -ErrorAction SilentlyContinue +if (-not $pacPath) { + Write-Error @" +Power Platform CLI (pac) not found in PATH. + +Install pac CLI: + 1. Via .NET tool: dotnet tool install --global Microsoft.PowerApps.CLI.Tool + 2. Via standalone: https://learn.microsoft.com/en-us/power-platform/developer/cli/introduction + +After installation, restart your terminal and try again. +"@ + exit 1 +} + +Write-Host "Found pac CLI: $($pacPath.Source)" -ForegroundColor Green + +# Check for pac auth +Write-Host "Checking authentication..." -ForegroundColor Gray +$authOutput = pac auth list 2>&1 +if ($LASTEXITCODE -ne 0 -or $authOutput -match 'No profiles') { + Write-Error @" +No pac authentication profile found. + +Create an auth profile: + pac auth create --deviceCode + +This opens a browser for interactive login. The profile is stored locally +and persists across sessions. +"@ + exit 1 +} + +# Show active profile +$activeProfile = $authOutput | Select-String '\*' | Select-Object -First 1 +if ($activeProfile) { + Write-Host "Active profile: $($activeProfile.ToString().Trim())" -ForegroundColor Green +} + +# Check output directory +$OutputDirectory = [System.IO.Path]::GetFullPath($OutputDirectory) +if (Test-Path $OutputDirectory) { + if (-not $Force) { + $existingFiles = Get-ChildItem $OutputDirectory -Filter "*.cs" -ErrorAction SilentlyContinue + if ($existingFiles.Count -gt 0) { + Write-Host "" + Write-Host "Output directory already contains $($existingFiles.Count) file(s):" -ForegroundColor Yellow + Write-Host " $OutputDirectory" -ForegroundColor Yellow + Write-Host "" + Write-Host "Use -Force to regenerate, or delete the directory manually." -ForegroundColor Yellow + exit 0 + } + } + else { + Write-Host "Cleaning existing output directory..." -ForegroundColor Gray + Remove-Item $OutputDirectory -Recurse -Force + } +} + +# Create output directory +New-Item -ItemType Directory -Path $OutputDirectory -Force | Out-Null +Write-Host "Output directory: $OutputDirectory" -ForegroundColor Gray + +# Build entity filter +$entityFilter = $Entities -join ';' +Write-Host "" +Write-Host "Generating classes for $($Entities.Count) entities:" -ForegroundColor Cyan +$Entities | ForEach-Object { Write-Host " - $_" -ForegroundColor Gray } +Write-Host "" + +# Run pac modelbuilder +# Note: Most options are switches (present = enabled, absent = disabled) +# Only include switches we want enabled +$pacArgs = @( + 'modelbuilder', 'build' + '--outdirectory', $OutputDirectory + '--namespace', 'PPDS.Dataverse.Generated' + '--entitynamesfilter', $entityFilter + '--emitfieldsclasses' # Generate Field constants class + '--language', 'CSharp' +) + +Write-Host "Running: pac $($pacArgs -join ' ')" -ForegroundColor Gray +Write-Host "" + +& pac @pacArgs + +if ($LASTEXITCODE -ne 0) { + Write-Error "pac modelbuilder failed with exit code $LASTEXITCODE" + exit $LASTEXITCODE +} + +# Count generated files +$generatedFiles = Get-ChildItem $OutputDirectory -Filter "*.cs" -Recurse +Write-Host "" +Write-Host "Successfully generated $($generatedFiles.Count) file(s):" -ForegroundColor Green +$generatedFiles | ForEach-Object { + Write-Host " - $($_.Name)" -ForegroundColor Gray +} + +Write-Host "" +Write-Host "Next steps:" -ForegroundColor Cyan +Write-Host " 1. Review generated files in: $OutputDirectory" -ForegroundColor Gray +Write-Host " 2. Build solution: dotnet build" -ForegroundColor Gray +Write-Host " 3. Update code to use early-bound classes" -ForegroundColor Gray +Write-Host "" diff --git a/src/PPDS.Cli/CHANGELOG.md b/src/PPDS.Cli/CHANGELOG.md index 0fb49e8ca..b0f4a2391 100644 --- a/src/PPDS.Cli/CHANGELOG.md +++ b/src/PPDS.Cli/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- **PluginRegistrationService refactored to use early-bound entities** - Replaced all magic string attribute access with strongly-typed `PPDS.Dataverse.Generated` classes (`PluginAssembly`, `PluginPackage`, `PluginType`, `SdkMessageProcessingStep`, `SdkMessageProcessingStepImage`, `SdkMessage`, `SdkMessageFilter`, `SystemUser`). Provides compile-time type safety and IntelliSense for all Dataverse entity operations. ([#56](https://github.com/joshsmithxrm/ppds-sdk/issues/56)) + ### Fixed - **Environment resolution for service principals** - `ppds env select` now works with full URLs for service principals by trying direct Dataverse connection first, before falling back to Global Discovery (which requires user auth). ([#89](https://github.com/joshsmithxrm/ppds-sdk/issues/89)) diff --git a/src/PPDS.Cli/Plugins/Registration/PluginRegistrationService.cs b/src/PPDS.Cli/Plugins/Registration/PluginRegistrationService.cs index 8b5640844..7f237fd83 100644 --- a/src/PPDS.Cli/Plugins/Registration/PluginRegistrationService.cs +++ b/src/PPDS.Cli/Plugins/Registration/PluginRegistrationService.cs @@ -6,6 +6,7 @@ using Microsoft.Xrm.Sdk.Metadata; using Microsoft.Xrm.Sdk.Query; using PPDS.Cli.Plugins.Models; +using PPDS.Dataverse.Generated; namespace PPDS.Cli.Plugins.Registration; @@ -29,8 +30,8 @@ public sealed class PluginRegistrationService // Well-known component type codes that are consistent across all environments private static readonly Dictionary WellKnownComponentTypes = new() { - ["pluginassembly"] = ComponentTypePluginAssembly, - ["sdkmessageprocessingstep"] = ComponentTypeSdkMessageProcessingStep + [PluginAssembly.EntityLogicalName] = ComponentTypePluginAssembly, + [SdkMessageProcessingStep.EntityLogicalName] = ComponentTypeSdkMessageProcessingStep }; // Pipeline stage values (from SDK Message Processing Step entity) @@ -56,23 +57,29 @@ public PluginRegistrationService(IOrganizationService service) /// Optional filter by assembly name. public async Task> ListAssembliesAsync(string? assemblyNameFilter = null) { - var query = new QueryExpression("pluginassembly") + var query = new QueryExpression(PluginAssembly.EntityLogicalName) { - ColumnSet = new ColumnSet("name", "version", "publickeytoken", "culture", "isolationmode", "sourcetype"), + ColumnSet = new ColumnSet( + PluginAssembly.Fields.Name, + PluginAssembly.Fields.Version, + PluginAssembly.Fields.PublicKeyToken, + PluginAssembly.Fields.Culture, + PluginAssembly.Fields.IsolationMode, + PluginAssembly.Fields.SourceType), Criteria = new FilterExpression { Conditions = { // Exclude system assemblies - new ConditionExpression("ishidden", ConditionOperator.Equal, false) + new ConditionExpression(PluginAssembly.Fields.IsHidden, ConditionOperator.Equal, false) } }, - Orders = { new OrderExpression("name", OrderType.Ascending) } + Orders = { new OrderExpression(PluginAssembly.Fields.Name, OrderType.Ascending) } }; if (!string.IsNullOrEmpty(assemblyNameFilter)) { - query.Criteria.AddCondition("name", ConditionOperator.Equal, assemblyNameFilter); + query.Criteria.AddCondition(PluginAssembly.Fields.Name, ConditionOperator.Equal, assemblyNameFilter); } var results = await RetrieveMultipleAsync(query); @@ -80,10 +87,10 @@ public async Task> ListAssembliesAsync(string? assembly return results.Entities.Select(e => new PluginAssemblyInfo { Id = e.Id, - Name = e.GetAttributeValue("name") ?? string.Empty, - Version = e.GetAttributeValue("version"), - PublicKeyToken = e.GetAttributeValue("publickeytoken"), - IsolationMode = e.GetAttributeValue("isolationmode")?.Value ?? 2 + Name = e.GetAttributeValue(PluginAssembly.Fields.Name) ?? string.Empty, + Version = e.GetAttributeValue(PluginAssembly.Fields.Version), + PublicKeyToken = e.GetAttributeValue(PluginAssembly.Fields.PublicKeyToken), + IsolationMode = e.GetAttributeValue(PluginAssembly.Fields.IsolationMode)?.Value ?? (int)pluginassembly_isolationmode.Sandbox }).ToList(); } @@ -93,10 +100,13 @@ public async Task> ListAssembliesAsync(string? assembly /// Optional filter by package name or unique name. public async Task> ListPackagesAsync(string? packageNameFilter = null) { - var query = new QueryExpression("pluginpackage") + var query = new QueryExpression(PluginPackage.EntityLogicalName) { - ColumnSet = new ColumnSet("name", "uniquename", "version"), - Orders = { new OrderExpression("name", OrderType.Ascending) } + ColumnSet = new ColumnSet( + PluginPackage.Fields.Name, + PluginPackage.Fields.UniqueName, + PluginPackage.Fields.Version), + Orders = { new OrderExpression(PluginPackage.Fields.Name, OrderType.Ascending) } }; if (!string.IsNullOrEmpty(packageNameFilter)) @@ -106,8 +116,8 @@ public async Task> ListPackagesAsync(string? packageName { Conditions = { - new ConditionExpression("name", ConditionOperator.Equal, packageNameFilter), - new ConditionExpression("uniquename", ConditionOperator.Equal, packageNameFilter) + new ConditionExpression(PluginPackage.Fields.Name, ConditionOperator.Equal, packageNameFilter), + new ConditionExpression(PluginPackage.Fields.UniqueName, ConditionOperator.Equal, packageNameFilter) } }; } @@ -117,9 +127,9 @@ public async Task> ListPackagesAsync(string? packageName return results.Entities.Select(e => new PluginPackageInfo { Id = e.Id, - Name = e.GetAttributeValue("name") ?? string.Empty, - UniqueName = e.GetAttributeValue("uniquename"), - Version = e.GetAttributeValue("version") + Name = e.GetAttributeValue(PluginPackage.Fields.Name) ?? string.Empty, + UniqueName = e.GetAttributeValue(PluginPackage.Fields.UniqueName), + Version = e.GetAttributeValue(PluginPackage.Fields.Version) }).ToList(); } @@ -128,17 +138,23 @@ public async Task> ListPackagesAsync(string? packageName /// public async Task> ListAssembliesForPackageAsync(Guid packageId) { - var query = new QueryExpression("pluginassembly") + var query = new QueryExpression(PluginAssembly.EntityLogicalName) { - ColumnSet = new ColumnSet("name", "version", "publickeytoken", "culture", "isolationmode", "sourcetype"), + ColumnSet = new ColumnSet( + PluginAssembly.Fields.Name, + PluginAssembly.Fields.Version, + PluginAssembly.Fields.PublicKeyToken, + PluginAssembly.Fields.Culture, + PluginAssembly.Fields.IsolationMode, + PluginAssembly.Fields.SourceType), Criteria = new FilterExpression { Conditions = { - new ConditionExpression("packageid", ConditionOperator.Equal, packageId) + new ConditionExpression(PluginAssembly.Fields.PackageId, ConditionOperator.Equal, packageId) } }, - Orders = { new OrderExpression("name", OrderType.Ascending) } + Orders = { new OrderExpression(PluginAssembly.Fields.Name, OrderType.Ascending) } }; var results = await RetrieveMultipleAsync(query); @@ -146,10 +162,10 @@ public async Task> ListAssembliesForPackageAsync(Guid p return results.Entities.Select(e => new PluginAssemblyInfo { Id = e.Id, - Name = e.GetAttributeValue("name") ?? string.Empty, - Version = e.GetAttributeValue("version"), - PublicKeyToken = e.GetAttributeValue("publickeytoken"), - IsolationMode = e.GetAttributeValue("isolationmode")?.Value ?? 2 + Name = e.GetAttributeValue(PluginAssembly.Fields.Name) ?? string.Empty, + Version = e.GetAttributeValue(PluginAssembly.Fields.Version), + PublicKeyToken = e.GetAttributeValue(PluginAssembly.Fields.PublicKeyToken), + IsolationMode = e.GetAttributeValue(PluginAssembly.Fields.IsolationMode)?.Value ?? (int)pluginassembly_isolationmode.Sandbox }).ToList(); } @@ -178,17 +194,20 @@ public async Task> ListTypesForPackageAsync(Guid packageId) /// public async Task> ListTypesForAssemblyAsync(Guid assemblyId) { - var query = new QueryExpression("plugintype") + var query = new QueryExpression(PluginType.EntityLogicalName) { - ColumnSet = new ColumnSet("typename", "friendlyname", "name"), + ColumnSet = new ColumnSet( + PluginType.Fields.TypeName, + PluginType.Fields.FriendlyName, + PluginType.Fields.Name), Criteria = new FilterExpression { Conditions = { - new ConditionExpression("pluginassemblyid", ConditionOperator.Equal, assemblyId) + new ConditionExpression(PluginType.Fields.PluginAssemblyId, ConditionOperator.Equal, assemblyId) } }, - Orders = { new OrderExpression("typename", OrderType.Ascending) } + Orders = { new OrderExpression(PluginType.Fields.TypeName, OrderType.Ascending) } }; var results = await RetrieveMultipleAsync(query); @@ -196,8 +215,8 @@ public async Task> ListTypesForAssemblyAsync(Guid assemblyI return results.Entities.Select(e => new PluginTypeInfo { Id = e.Id, - TypeName = e.GetAttributeValue("typename") ?? string.Empty, - FriendlyName = e.GetAttributeValue("friendlyname") + TypeName = e.GetAttributeValue(PluginType.Fields.TypeName) ?? string.Empty, + FriendlyName = e.GetAttributeValue(PluginType.Fields.FriendlyName) }).ToList(); } @@ -206,66 +225,74 @@ public async Task> ListTypesForAssemblyAsync(Guid assemblyI /// public async Task> ListStepsForTypeAsync(Guid pluginTypeId) { - var query = new QueryExpression("sdkmessageprocessingstep") + var query = new QueryExpression(SdkMessageProcessingStep.EntityLogicalName) { ColumnSet = new ColumnSet( - "name", "stage", "mode", "rank", "filteringattributes", - "configuration", "statecode", "description", "supporteddeployment", - "impersonatinguserid", "asyncautodelete"), + SdkMessageProcessingStep.Fields.Name, + SdkMessageProcessingStep.Fields.Stage, + SdkMessageProcessingStep.Fields.Mode, + SdkMessageProcessingStep.Fields.Rank, + SdkMessageProcessingStep.Fields.FilteringAttributes, + SdkMessageProcessingStep.Fields.Configuration, + SdkMessageProcessingStep.Fields.StateCode, + SdkMessageProcessingStep.Fields.Description, + SdkMessageProcessingStep.Fields.SupportedDeployment, + SdkMessageProcessingStep.Fields.ImpersonatingUserId, + SdkMessageProcessingStep.Fields.AsyncAutoDelete), Criteria = new FilterExpression { Conditions = { - new ConditionExpression("plugintypeid", ConditionOperator.Equal, pluginTypeId) + new ConditionExpression(SdkMessageProcessingStep.Fields.EventHandler, ConditionOperator.Equal, pluginTypeId) } }, LinkEntities = { - new LinkEntity("sdkmessageprocessingstep", "sdkmessage", "sdkmessageid", "sdkmessageid", JoinOperator.Inner) + new LinkEntity(SdkMessageProcessingStep.EntityLogicalName, SdkMessage.EntityLogicalName, SdkMessageProcessingStep.Fields.SdkMessageId, SdkMessage.Fields.SdkMessageId, JoinOperator.Inner) { - Columns = new ColumnSet("name"), + Columns = new ColumnSet(SdkMessage.Fields.Name), EntityAlias = "message" }, - new LinkEntity("sdkmessageprocessingstep", "sdkmessagefilter", "sdkmessagefilterid", "sdkmessagefilterid", JoinOperator.LeftOuter) + new LinkEntity(SdkMessageProcessingStep.EntityLogicalName, SdkMessageFilter.EntityLogicalName, SdkMessageProcessingStep.Fields.SdkMessageFilterId, SdkMessageFilter.Fields.SdkMessageFilterId, JoinOperator.LeftOuter) { - Columns = new ColumnSet("primaryobjecttypecode", "secondaryobjecttypecode"), + Columns = new ColumnSet(SdkMessageFilter.Fields.PrimaryObjectTypeCode, SdkMessageFilter.Fields.SecondaryObjectTypeCode), EntityAlias = "filter" }, - new LinkEntity("sdkmessageprocessingstep", "systemuser", "impersonatinguserid", "systemuserid", JoinOperator.LeftOuter) + new LinkEntity(SdkMessageProcessingStep.EntityLogicalName, SystemUser.EntityLogicalName, SdkMessageProcessingStep.Fields.ImpersonatingUserId, SystemUser.Fields.SystemUserId, JoinOperator.LeftOuter) { - Columns = new ColumnSet("fullname", "domainname"), + Columns = new ColumnSet(SystemUser.Fields.FullName, SystemUser.Fields.DomainName), EntityAlias = "impersonatinguser" } }, - Orders = { new OrderExpression("name", OrderType.Ascending) } + Orders = { new OrderExpression(SdkMessageProcessingStep.Fields.Name, OrderType.Ascending) } }; var results = await RetrieveMultipleAsync(query); return results.Entities.Select(e => { - var impersonatingUserRef = e.GetAttributeValue("impersonatinguserid"); - var impersonatingUserName = e.GetAttributeValue("impersonatinguser.fullname")?.Value?.ToString() - ?? e.GetAttributeValue("impersonatinguser.domainname")?.Value?.ToString(); + var impersonatingUserRef = e.GetAttributeValue(SdkMessageProcessingStep.Fields.ImpersonatingUserId); + var impersonatingUserName = e.GetAttributeValue($"impersonatinguser.{SystemUser.Fields.FullName}")?.Value?.ToString() + ?? e.GetAttributeValue($"impersonatinguser.{SystemUser.Fields.DomainName}")?.Value?.ToString(); return new PluginStepInfo { Id = e.Id, - Name = e.GetAttributeValue("name") ?? string.Empty, - Message = e.GetAttributeValue("message.name")?.Value?.ToString() ?? string.Empty, - PrimaryEntity = e.GetAttributeValue("filter.primaryobjecttypecode")?.Value?.ToString() ?? "none", - SecondaryEntity = e.GetAttributeValue("filter.secondaryobjecttypecode")?.Value?.ToString(), - Stage = MapStageFromValue(e.GetAttributeValue("stage")?.Value ?? StagePostOperation), - Mode = MapModeFromValue(e.GetAttributeValue("mode")?.Value ?? 0), - ExecutionOrder = e.GetAttributeValue("rank"), - FilteringAttributes = e.GetAttributeValue("filteringattributes"), - Configuration = e.GetAttributeValue("configuration"), - IsEnabled = e.GetAttributeValue("statecode")?.Value == 0, - Description = e.GetAttributeValue("description"), - Deployment = MapDeploymentFromValue(e.GetAttributeValue("supporteddeployment")?.Value ?? 0), + Name = e.GetAttributeValue(SdkMessageProcessingStep.Fields.Name) ?? string.Empty, + Message = e.GetAttributeValue($"message.{SdkMessage.Fields.Name}")?.Value?.ToString() ?? string.Empty, + PrimaryEntity = e.GetAttributeValue($"filter.{SdkMessageFilter.Fields.PrimaryObjectTypeCode}")?.Value?.ToString() ?? "none", + SecondaryEntity = e.GetAttributeValue($"filter.{SdkMessageFilter.Fields.SecondaryObjectTypeCode}")?.Value?.ToString(), + Stage = MapStageFromValue(e.GetAttributeValue(SdkMessageProcessingStep.Fields.Stage)?.Value ?? StagePostOperation), + Mode = MapModeFromValue(e.GetAttributeValue(SdkMessageProcessingStep.Fields.Mode)?.Value ?? 0), + ExecutionOrder = e.GetAttributeValue(SdkMessageProcessingStep.Fields.Rank), + FilteringAttributes = e.GetAttributeValue(SdkMessageProcessingStep.Fields.FilteringAttributes), + Configuration = e.GetAttributeValue(SdkMessageProcessingStep.Fields.Configuration), + IsEnabled = e.GetAttributeValue(SdkMessageProcessingStep.Fields.StateCode)?.Value == (int)sdkmessageprocessingstep_statecode.Enabled, + Description = e.GetAttributeValue(SdkMessageProcessingStep.Fields.Description), + Deployment = MapDeploymentFromValue(e.GetAttributeValue(SdkMessageProcessingStep.Fields.SupportedDeployment)?.Value ?? 0), ImpersonatingUserId = impersonatingUserRef?.Id, ImpersonatingUserName = impersonatingUserName, - AsyncAutoDelete = e.GetAttributeValue("asyncautodelete") ?? false + AsyncAutoDelete = e.GetAttributeValue(SdkMessageProcessingStep.Fields.AsyncAutoDelete) ?? false }; }).ToList(); } @@ -275,17 +302,21 @@ public async Task> ListStepsForTypeAsync(Guid pluginTypeId) /// public async Task> ListImagesForStepAsync(Guid stepId) { - var query = new QueryExpression("sdkmessageprocessingstepimage") + var query = new QueryExpression(SdkMessageProcessingStepImage.EntityLogicalName) { - ColumnSet = new ColumnSet("name", "entityalias", "imagetype", "attributes"), + ColumnSet = new ColumnSet( + SdkMessageProcessingStepImage.Fields.Name, + SdkMessageProcessingStepImage.Fields.EntityAlias, + SdkMessageProcessingStepImage.Fields.ImageType, + SdkMessageProcessingStepImage.Fields.Attributes1), Criteria = new FilterExpression { Conditions = { - new ConditionExpression("sdkmessageprocessingstepid", ConditionOperator.Equal, stepId) + new ConditionExpression(SdkMessageProcessingStepImage.Fields.SdkMessageProcessingStepId, ConditionOperator.Equal, stepId) } }, - Orders = { new OrderExpression("name", OrderType.Ascending) } + Orders = { new OrderExpression(SdkMessageProcessingStepImage.Fields.Name, OrderType.Ascending) } }; var results = await RetrieveMultipleAsync(query); @@ -293,10 +324,10 @@ public async Task> ListImagesForStepAsync(Guid stepId) return results.Entities.Select(e => new PluginImageInfo { Id = e.Id, - Name = e.GetAttributeValue("name") ?? string.Empty, - EntityAlias = e.GetAttributeValue("entityalias"), - ImageType = MapImageTypeFromValue(e.GetAttributeValue("imagetype")?.Value ?? 0), - Attributes = e.GetAttributeValue("attributes") + Name = e.GetAttributeValue(SdkMessageProcessingStepImage.Fields.Name) ?? string.Empty, + EntityAlias = e.GetAttributeValue(SdkMessageProcessingStepImage.Fields.EntityAlias), + ImageType = MapImageTypeFromValue(e.GetAttributeValue(SdkMessageProcessingStepImage.Fields.ImageType)?.Value ?? 0), + Attributes = e.GetAttributeValue(SdkMessageProcessingStepImage.Fields.Attributes1) }).ToList(); } @@ -327,14 +358,14 @@ public async Task> ListImagesForStepAsync(Guid stepId) /// public async Task GetSdkMessageIdAsync(string messageName) { - var query = new QueryExpression("sdkmessage") + var query = new QueryExpression(SdkMessage.EntityLogicalName) { - ColumnSet = new ColumnSet("sdkmessageid"), + ColumnSet = new ColumnSet(SdkMessage.Fields.SdkMessageId), Criteria = new FilterExpression { Conditions = { - new ConditionExpression("name", ConditionOperator.Equal, messageName) + new ConditionExpression(SdkMessage.Fields.Name, ConditionOperator.Equal, messageName) } } }; @@ -348,22 +379,22 @@ public async Task> ListImagesForStepAsync(Guid stepId) /// public async Task GetSdkMessageFilterIdAsync(Guid messageId, string primaryEntity, string? secondaryEntity = null) { - var query = new QueryExpression("sdkmessagefilter") + var query = new QueryExpression(SdkMessageFilter.EntityLogicalName) { - ColumnSet = new ColumnSet("sdkmessagefilterid"), + ColumnSet = new ColumnSet(SdkMessageFilter.Fields.SdkMessageFilterId), Criteria = new FilterExpression { Conditions = { - new ConditionExpression("sdkmessageid", ConditionOperator.Equal, messageId), - new ConditionExpression("primaryobjecttypecode", ConditionOperator.Equal, primaryEntity) + new ConditionExpression(SdkMessageFilter.Fields.SdkMessageId, ConditionOperator.Equal, messageId), + new ConditionExpression(SdkMessageFilter.Fields.PrimaryObjectTypeCode, ConditionOperator.Equal, primaryEntity) } } }; if (!string.IsNullOrEmpty(secondaryEntity)) { - query.Criteria.AddCondition("secondaryobjecttypecode", ConditionOperator.Equal, secondaryEntity); + query.Criteria.AddCondition(SdkMessageFilter.Fields.SecondaryObjectTypeCode, ConditionOperator.Equal, secondaryEntity); } var results = await RetrieveMultipleAsync(query); @@ -382,12 +413,12 @@ public async Task UpsertAssemblyAsync(string name, byte[] content, string? { var existing = await GetAssemblyByNameAsync(name); - var entity = new Entity("pluginassembly") + var entity = new PluginAssembly { - ["name"] = name, - ["content"] = Convert.ToBase64String(content), - ["isolationmode"] = new OptionSetValue(2), // Sandbox - ["sourcetype"] = new OptionSetValue(0) // Database + Name = name, + Content = Convert.ToBase64String(content), + IsolationMode = pluginassembly_isolationmode.Sandbox, + SourceType = pluginassembly_sourcetype.Database }; if (existing != null) @@ -425,9 +456,10 @@ public async Task UpsertPackageAsync(string packageName, byte[] nupkgConte if (existing != null) { // UPDATE: Only update content, use solution header for solution association - var updateEntity = new Entity("pluginpackage", existing.Id) + var updateEntity = new PluginPackage { - ["content"] = Convert.ToBase64String(nupkgContent) + Id = existing.Id, + Content = Convert.ToBase64String(nupkgContent) }; var request = new UpdateRequest { Target = updateEntity }; @@ -441,10 +473,10 @@ public async Task UpsertPackageAsync(string packageName, byte[] nupkgConte } // CREATE: Set name and content only - Dataverse extracts uniquename from .nuspec inside nupkg - var entity = new Entity("pluginpackage") + var entity = new PluginPackage { - ["name"] = packageName, - ["content"] = Convert.ToBase64String(nupkgContent) + Name = packageName, + Content = Convert.ToBase64String(nupkgContent) }; return await CreateWithSolutionHeaderAsync(entity, solutionName); @@ -465,15 +497,15 @@ public async Task UpsertPackageAsync(string packageName, byte[] nupkgConte public async Task UpsertPluginTypeAsync(Guid assemblyId, string typeName, string? solutionName = null) { // Check if type exists - var query = new QueryExpression("plugintype") + var query = new QueryExpression(PluginType.EntityLogicalName) { - ColumnSet = new ColumnSet("plugintypeid"), + ColumnSet = new ColumnSet(PluginType.Fields.PluginTypeId), Criteria = new FilterExpression { Conditions = { - new ConditionExpression("pluginassemblyid", ConditionOperator.Equal, assemblyId), - new ConditionExpression("typename", ConditionOperator.Equal, typeName) + new ConditionExpression(PluginType.Fields.PluginAssemblyId, ConditionOperator.Equal, assemblyId), + new ConditionExpression(PluginType.Fields.TypeName, ConditionOperator.Equal, typeName) } } }; @@ -486,12 +518,12 @@ public async Task UpsertPluginTypeAsync(Guid assemblyId, string typeName, return existing.Id; } - var entity = new Entity("plugintype") + var entity = new PluginType { - ["pluginassemblyid"] = new EntityReference("pluginassembly", assemblyId), - ["typename"] = typeName, - ["friendlyname"] = typeName, - ["name"] = typeName + PluginAssemblyId = new EntityReference(PluginAssembly.EntityLogicalName, assemblyId), + TypeName = typeName, + FriendlyName = typeName, + Name = typeName }; return await CreateWithSolutionAsync(entity, solutionName); @@ -508,15 +540,15 @@ public async Task UpsertStepAsync( string? solutionName = null) { // Check if step exists by name - var query = new QueryExpression("sdkmessageprocessingstep") + var query = new QueryExpression(SdkMessageProcessingStep.EntityLogicalName) { - ColumnSet = new ColumnSet("sdkmessageprocessingstepid"), + ColumnSet = new ColumnSet(SdkMessageProcessingStep.Fields.SdkMessageProcessingStepId), Criteria = new FilterExpression { Conditions = { - new ConditionExpression("plugintypeid", ConditionOperator.Equal, pluginTypeId), - new ConditionExpression("name", ConditionOperator.Equal, stepConfig.Name) + new ConditionExpression(SdkMessageProcessingStep.Fields.EventHandler, ConditionOperator.Equal, pluginTypeId), + new ConditionExpression(SdkMessageProcessingStep.Fields.Name, ConditionOperator.Equal, stepConfig.Name) } } }; @@ -524,36 +556,36 @@ public async Task UpsertStepAsync( var results = await RetrieveMultipleAsync(query); var existing = results.Entities.FirstOrDefault(); - var entity = new Entity("sdkmessageprocessingstep") + var entity = new SdkMessageProcessingStep { - ["name"] = stepConfig.Name, - ["plugintypeid"] = new EntityReference("plugintype", pluginTypeId), - ["sdkmessageid"] = new EntityReference("sdkmessage", messageId), - ["stage"] = new OptionSetValue(MapStageToValue(stepConfig.Stage)), - ["mode"] = new OptionSetValue(MapModeToValue(stepConfig.Mode)), - ["rank"] = stepConfig.ExecutionOrder, - ["supporteddeployment"] = new OptionSetValue(MapDeploymentToValue(stepConfig.Deployment)), - ["invocationsource"] = new OptionSetValue(0) // Internal (legacy, but required) + Name = stepConfig.Name, + EventHandler = new EntityReference(PluginType.EntityLogicalName, pluginTypeId), + SdkMessageId = new EntityReference(SdkMessage.EntityLogicalName, messageId), + Stage = (sdkmessageprocessingstep_stage)MapStageToValue(stepConfig.Stage), + Mode = (sdkmessageprocessingstep_mode)MapModeToValue(stepConfig.Mode), + Rank = stepConfig.ExecutionOrder, + SupportedDeployment = (sdkmessageprocessingstep_supporteddeployment)MapDeploymentToValue(stepConfig.Deployment), + InvocationSource = sdkmessageprocessingstep_invocationsource.Internal }; if (filterId.HasValue) { - entity["sdkmessagefilterid"] = new EntityReference("sdkmessagefilter", filterId.Value); + entity.SdkMessageFilterId = new EntityReference(SdkMessageFilter.EntityLogicalName, filterId.Value); } if (!string.IsNullOrEmpty(stepConfig.FilteringAttributes)) { - entity["filteringattributes"] = stepConfig.FilteringAttributes; + entity.FilteringAttributes = stepConfig.FilteringAttributes; } if (!string.IsNullOrEmpty(stepConfig.UnsecureConfiguration)) { - entity["configuration"] = stepConfig.UnsecureConfiguration; + entity.Configuration = stepConfig.UnsecureConfiguration; } if (!string.IsNullOrEmpty(stepConfig.Description)) { - entity["description"] = stepConfig.Description; + entity.Description = stepConfig.Description; } // Handle impersonating user (Run in User's Context) @@ -562,14 +594,14 @@ public async Task UpsertStepAsync( { if (Guid.TryParse(stepConfig.RunAsUser, out var userId)) { - entity["impersonatinguserid"] = new EntityReference("systemuser", userId); + entity.ImpersonatingUserId = new EntityReference(SystemUser.EntityLogicalName, userId); } } // Async auto-delete (only applies to async steps) if (stepConfig.AsyncAutoDelete == true && stepConfig.Mode == "Asynchronous") { - entity["asyncautodelete"] = true; + entity.AsyncAutoDelete = true; } if (existing != null) @@ -597,15 +629,15 @@ public async Task UpsertStepAsync( public async Task UpsertImageAsync(Guid stepId, PluginImageConfig imageConfig) { // Check if image exists - var query = new QueryExpression("sdkmessageprocessingstepimage") + var query = new QueryExpression(SdkMessageProcessingStepImage.EntityLogicalName) { - ColumnSet = new ColumnSet("sdkmessageprocessingstepimageid"), + ColumnSet = new ColumnSet(SdkMessageProcessingStepImage.Fields.SdkMessageProcessingStepImageId), Criteria = new FilterExpression { Conditions = { - new ConditionExpression("sdkmessageprocessingstepid", ConditionOperator.Equal, stepId), - new ConditionExpression("name", ConditionOperator.Equal, imageConfig.Name) + new ConditionExpression(SdkMessageProcessingStepImage.Fields.SdkMessageProcessingStepId, ConditionOperator.Equal, stepId), + new ConditionExpression(SdkMessageProcessingStepImage.Fields.Name, ConditionOperator.Equal, imageConfig.Name) } } }; @@ -613,18 +645,18 @@ public async Task UpsertImageAsync(Guid stepId, PluginImageConfig imageCon var results = await RetrieveMultipleAsync(query); var existing = results.Entities.FirstOrDefault(); - var entity = new Entity("sdkmessageprocessingstepimage") + var entity = new SdkMessageProcessingStepImage { - ["sdkmessageprocessingstepid"] = new EntityReference("sdkmessageprocessingstep", stepId), - ["name"] = imageConfig.Name, - ["entityalias"] = imageConfig.EntityAlias ?? imageConfig.Name, - ["imagetype"] = new OptionSetValue(MapImageTypeToValue(imageConfig.ImageType)), - ["messagepropertyname"] = "Target" + SdkMessageProcessingStepId = new EntityReference(SdkMessageProcessingStep.EntityLogicalName, stepId), + Name = imageConfig.Name, + EntityAlias = imageConfig.EntityAlias ?? imageConfig.Name, + ImageType = (sdkmessageprocessingstepimage_imagetype)MapImageTypeToValue(imageConfig.ImageType), + MessagePropertyName = "Target" }; if (!string.IsNullOrEmpty(imageConfig.Attributes)) { - entity["attributes"] = imageConfig.Attributes; + entity.Attributes1 = imageConfig.Attributes; } if (existing != null) @@ -648,7 +680,7 @@ public async Task UpsertImageAsync(Guid stepId, PluginImageConfig imageCon /// public async Task DeleteImageAsync(Guid imageId) { - await DeleteAsync("sdkmessageprocessingstepimage", imageId); + await DeleteAsync(SdkMessageProcessingStepImage.EntityLogicalName, imageId); } /// @@ -663,7 +695,7 @@ public async Task DeleteStepAsync(Guid stepId) await DeleteImageAsync(image.Id); } - await DeleteAsync("sdkmessageprocessingstep", stepId); + await DeleteAsync(SdkMessageProcessingStep.EntityLogicalName, stepId); } /// @@ -671,7 +703,7 @@ public async Task DeleteStepAsync(Guid stepId) /// public async Task DeletePluginTypeAsync(Guid pluginTypeId) { - await DeleteAsync("plugintype", pluginTypeId); + await DeleteAsync(PluginType.EntityLogicalName, pluginTypeId); } #endregion diff --git a/src/PPDS.Dataverse/Generated/.editorconfig b/src/PPDS.Dataverse/Generated/.editorconfig new file mode 100644 index 000000000..b595aed3c --- /dev/null +++ b/src/PPDS.Dataverse/Generated/.editorconfig @@ -0,0 +1,9 @@ +# Auto-generated code - suppress documentation and naming warnings +# These files are regenerated by pac modelbuilder and should not be manually edited + +[*.cs] +# CS1591: Missing XML comment for publicly visible type or member +dotnet_diagnostic.CS1591.severity = none + +# CS8981: The type name only contains lower-cased ascii characters +dotnet_diagnostic.CS8981.severity = none diff --git a/src/PPDS.Dataverse/Generated/Entities/asyncoperation.cs b/src/PPDS.Dataverse/Generated/Entities/asyncoperation.cs new file mode 100644 index 000000000..4236a2a51 --- /dev/null +++ b/src/PPDS.Dataverse/Generated/Entities/asyncoperation.cs @@ -0,0 +1,1482 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// Type of the system job. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum asyncoperation_operationtype + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + SystemEvent = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + BulkEmail = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ImportFileParse = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + TransformParseData = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Import = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ActivityPropagation = 6, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DuplicateDetectionRulePublish = 7, + + [System.Runtime.Serialization.EnumMemberAttribute()] + BulkDuplicateDetection = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SQMDataCollection = 9, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Workflow = 10, + + [System.Runtime.Serialization.EnumMemberAttribute()] + QuickCampaign = 11, + + [System.Runtime.Serialization.EnumMemberAttribute()] + MatchcodeUpdate = 12, + + [System.Runtime.Serialization.EnumMemberAttribute()] + BulkDelete = 13, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DeletionService = 14, + + [System.Runtime.Serialization.EnumMemberAttribute()] + IndexManagement = 15, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CollectOrganizationStatistics = 16, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ImportSubprocess = 17, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CalculateOrganizationStorageSize = 18, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CollectOrganizationDatabaseStatistics = 19, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CollectionOrganizationSizeStatistics = 20, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DatabaseTuning = 21, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CalculateOrganizationMaximumStorageSize = 22, + + [System.Runtime.Serialization.EnumMemberAttribute()] + BulkDeleteSubprocess = 23, + + [System.Runtime.Serialization.EnumMemberAttribute()] + UpdateStatisticIntervals = 24, + + [System.Runtime.Serialization.EnumMemberAttribute()] + OrganizationFullTextCatalogIndex = 25, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Databaselogbackup = 26, + + [System.Runtime.Serialization.EnumMemberAttribute()] + UpdateContractStates = 27, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DBCCSHRINKDATABASEmaintenancejob = 28, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DBCCSHRINKFILEmaintenancejob = 29, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Reindexallindicesmaintenancejob = 30, + + [System.Runtime.Serialization.EnumMemberAttribute()] + StorageLimitNotification = 31, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Cleanupinactiveworkflowassemblies = 32, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RecurringSeriesExpansion = 35, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ImportSampleData = 38, + + [System.Runtime.Serialization.EnumMemberAttribute()] + GoalRollUp = 40, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AuditPartitionCreation = 41, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CheckForLanguagePackUpdates = 42, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ProvisionLanguagePack = 43, + + [System.Runtime.Serialization.EnumMemberAttribute()] + UpdateOrganizationDatabase = 44, + + [System.Runtime.Serialization.EnumMemberAttribute()] + UpdateSolution = 45, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RegenerateEntityRowCountSnapshotData = 46, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RegenerateReadShareSnapshotData = 47, + + [System.Runtime.Serialization.EnumMemberAttribute()] + OutgoingActivity = 50, + + [System.Runtime.Serialization.EnumMemberAttribute()] + IncomingEmailProcessing = 51, + + [System.Runtime.Serialization.EnumMemberAttribute()] + MailboxTestAccess = 52, + + [System.Runtime.Serialization.EnumMemberAttribute()] + EncryptionHealthCheck = 53, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ExecuteAsyncRequest = 54, + + [System.Runtime.Serialization.EnumMemberAttribute()] + PosttoYammer = 49, + + [System.Runtime.Serialization.EnumMemberAttribute()] + UpdateEntitlementStates = 56, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CalculateRollupField = 57, + + [System.Runtime.Serialization.EnumMemberAttribute()] + MassCalculateRollupField = 58, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ImportTranslation = 59, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ConvertDateAndTimeBehavior = 62, + + [System.Runtime.Serialization.EnumMemberAttribute()] + EntityKeyIndexCreation = 63, + + [System.Runtime.Serialization.EnumMemberAttribute()] + UpdateKnowledgeArticleStates = 65, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ResourceBookingSync = 68, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RelationshipAssistantCards = 69, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CleanupSolutionComponents = 71, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AppModuleMetadataOperation = 72, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ALMAnomalyDetectionOperation = 73, + + [System.Runtime.Serialization.EnumMemberAttribute()] + FlowNotification = 75, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RibbonClientMetadataOperation = 76, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CallbackRegistrationExpanderOperation = 79, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CascadeAssign = 90, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CascadeDelete = 91, + + [System.Runtime.Serialization.EnumMemberAttribute()] + EventExpanderOperation = 92, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ImportSolutionMetadata = 93, + + [System.Runtime.Serialization.EnumMemberAttribute()] + BulkDeleteFileAttachment = 94, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RefreshBusinessUnitforRecordsOwnedByPrincipal = 95, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RevokeInheritedAccess = 96, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Provisionlanguageforuser = 201, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Migratenotestoattachmentsjob = 85, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Migratearticlecontenttofilestorage = 86, + + [System.Runtime.Serialization.EnumMemberAttribute()] + UpdatedDeactivedOnforResolvedCasesjob = 87, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CascadeReparentDBAsyncOperation = 88, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CascadeMergeAsyncOperation = 89, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CreateOrRefreshVirtualEntity = 98, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ExportSolutionAsyncOperation = 202, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ImportSolutionAsyncOperation = 203, + + [System.Runtime.Serialization.EnumMemberAttribute()] + PublishAllAsyncOperation = 204, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DeleteAndPromoteAsyncOperation = 207, + + [System.Runtime.Serialization.EnumMemberAttribute()] + UninstallSolutionAsyncOperation = 208, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ProvisionLanguageAsyncOperation = 209, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ImportTranslationAsyncOperation = 210, + + [System.Runtime.Serialization.EnumMemberAttribute()] + StageAndUpgradeAsyncOperation = 211, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DenormalizationAsyncOperation = 239, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RefreshRuntimeIntegrationComponentsAsyncOperation = 250, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CascadeFlowSessionPermissionsAsyncOperation = 100, + + [System.Runtime.Serialization.EnumMemberAttribute()] + UpdateModernFlowAsyncOperation = 101, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AsyncArchiveAsyncOperation = 102, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CancelAsyncOperations_System = 103, + + [System.Runtime.Serialization.EnumMemberAttribute()] + BulkArchiveOperation = 300, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ArchiveExecutionAsyncOperation = 301, + + [System.Runtime.Serialization.EnumMemberAttribute()] + FinOpsDeploymentAsyncOperation = 302, + + [System.Runtime.Serialization.EnumMemberAttribute()] + PurgeArchivedContentOperation = 304, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RegisterOfferingAsyncOperation = 305, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ExecuteDataProcessingConfiguration = 306, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SyncSynapseTablesSchema = 307, + + [System.Runtime.Serialization.EnumMemberAttribute()] + FinOpsDBSyncAsyncOperation = 308, + + [System.Runtime.Serialization.EnumMemberAttribute()] + FinOpsUnitTestAsyncOperation = 309, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CatalogServiceGeneratePackageAsyncOperation = 320, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CatalogServiceSubmitApprovalRequestAsyncOperation = 321, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CatalogServiceInstallRequestAsyncOperation = 322, + + [System.Runtime.Serialization.EnumMemberAttribute()] + TDSendpointprovisioningnewTVFfunctionsandgrantpermissionAsyncOperation = 330, + + [System.Runtime.Serialization.EnumMemberAttribute()] + FinOpsDeployCustomPackageAsyncOperation = 332, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DeletesrelatedElasticTablerecordswhenaSQLrecordisdeleted = 333, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DeletesrelatedElasticorSQLTablerecordswhenanElasticTablerecordisdeleted = 334, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Catalogserviceasycoperationtopollforasolutioncheckerrequest = 335, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Catalogserviceasycoperationtosubmitasolutioncheckerrequest = 336, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Solutionserviceasyncoperationtoinstallsolutionafterappupdates = 337, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Promptcolumnbulkupdateoperation = 338, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Instantentitiescleanupoperation = 339, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CascadeAssignAllAsyncOperation = 105, + + [System.Runtime.Serialization.EnumMemberAttribute()] + BackgroundTeamServiceAsyncOperation = 106, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CascadeGrantorRevokeAccessVersionTrackingAsyncOperation = 12801, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AIBuilderTrainingEvents = 190690091, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AIBuilderPredictionEvents = 190690092, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ProcessTableForRecycleBin = 104, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AsyncRestoreJob = 187, + } + + /// + /// Status of the system job. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum asyncoperation_statecode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Ready = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Suspended = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Locked = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 3, + } + + /// + /// Reason for the status of the system job. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum asyncoperation_statuscode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + WaitingForResources = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Waiting = 10, + + [System.Runtime.Serialization.EnumMemberAttribute()] + InProgress = 20, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Pausing = 21, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceling = 22, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Succeeded = 30, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Failed = 31, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 32, + } + + /// + /// Process whose execution can proceed independently or in the background. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("asyncoperation")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public partial class AsyncOperation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Available fields, a the time of codegen, for the asyncoperation entity + /// + public partial class Fields + { + public const string AsyncOperationId = "asyncoperationid"; + public const string Id = "asyncoperationid"; + public const string BreadcrumbId = "breadcrumbid"; + public const string CallerOrigin = "callerorigin"; + public const string CompletedOn = "completedon"; + public const string CorrelationId = "correlationid"; + public const string CorrelationUpdatedTime = "correlationupdatedtime"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string Data = "data"; + public const string DataBlobId = "datablobid"; + public const string DependencyToken = "dependencytoken"; + public const string Depth = "depth"; + public const string ErrorCode = "errorcode"; + public const string ExecutionTimeSpan = "executiontimespan"; + public const string ExpanderStartTime = "expanderstarttime"; + public const string FriendlyMessage = "friendlymessage"; + public const string HostId = "hostid"; + public const string IsWaitingForEvent = "iswaitingforevent"; + public const string Message = "message"; + public const string MessageName = "messagename"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OperationType = "operationtype"; + public const string OwnerId = "ownerid"; + public const string OwningBusinessUnit = "owningbusinessunit"; + public const string OwningExtensionId = "owningextensionid"; + public const string OwningTeam = "owningteam"; + public const string OwningUser = "owninguser"; + public const string ParentPluginExecutionId = "parentpluginexecutionid"; + public const string PostponeUntil = "postponeuntil"; + public const string PrimaryEntityType = "primaryentitytype"; + public const string RecurrencePattern = "recurrencepattern"; + public const string RecurrenceStartTime = "recurrencestarttime"; + public const string RegardingObjectId = "regardingobjectid"; + public const string RequestId = "requestid"; + public const string RetainJobHistory = "retainjobhistory"; + public const string RetryCount = "retrycount"; + public const string RootExecutionContext = "rootexecutioncontext"; + public const string Sequence = "sequence"; + public const string StartedOn = "startedon"; + public const string StateCode = "statecode"; + public const string StatusCode = "statuscode"; + public const string Subtype = "subtype"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string WorkflowActivationId = "workflowactivationid"; + public const string WorkflowStageName = "workflowstagename"; + public const string Workload = "workload"; + public const string lk_asyncoperation_createdby = "lk_asyncoperation_createdby"; + public const string lk_asyncoperation_createdonbehalfby = "lk_asyncoperation_createdonbehalfby"; + public const string lk_asyncoperation_modifiedby = "lk_asyncoperation_modifiedby"; + public const string lk_asyncoperation_modifiedonbehalfby = "lk_asyncoperation_modifiedonbehalfby"; + public const string pluginpackage_AsyncOperations = "pluginpackage_AsyncOperations"; + public const string SdkMessageProcessingStep_AsyncOperations = "SdkMessageProcessingStep_AsyncOperations"; + public const string system_user_asyncoperation = "system_user_asyncoperation"; + public const string SystemUser_AsyncOperations = "SystemUser_AsyncOperations"; + } + + /// + /// Default Constructor. + /// + public AsyncOperation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "asyncoperation"; + + public const string EntityLogicalCollectionName = "asyncoperations"; + + public const string EntitySetName = "asyncoperations"; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public System.Nullable AsyncOperationId + { + get + { + return this.GetAttributeValue>("asyncoperationid"); + } + set + { + this.OnPropertyChanging("AsyncOperationId"); + this.SetAttributeValue("asyncoperationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("AsyncOperationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.AsyncOperationId = value; + } + } + + /// + /// The breadcrumb record ID. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("breadcrumbid")] + public System.Nullable BreadcrumbId + { + get + { + return this.GetAttributeValue>("breadcrumbid"); + } + set + { + this.OnPropertyChanging("BreadcrumbId"); + this.SetAttributeValue("breadcrumbid", value); + this.OnPropertyChanged("BreadcrumbId"); + } + } + + /// + /// The origin of the caller. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("callerorigin")] + public string CallerOrigin + { + get + { + return this.GetAttributeValue("callerorigin"); + } + set + { + this.OnPropertyChanging("CallerOrigin"); + this.SetAttributeValue("callerorigin", value); + this.OnPropertyChanged("CallerOrigin"); + } + } + + /// + /// Date and time when the system job was completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedon")] + public System.Nullable CompletedOn + { + get + { + return this.GetAttributeValue>("completedon"); + } + } + + /// + /// Unique identifier used to correlate between multiple SDK requests and system jobs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("correlationid")] + public System.Nullable CorrelationId + { + get + { + return this.GetAttributeValue>("correlationid"); + } + set + { + this.OnPropertyChanging("CorrelationId"); + this.SetAttributeValue("correlationid", value); + this.OnPropertyChanged("CorrelationId"); + } + } + + /// + /// Last time the correlation depth was updated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("correlationupdatedtime")] + public System.Nullable CorrelationUpdatedTime + { + get + { + return this.GetAttributeValue>("correlationupdatedtime"); + } + set + { + this.OnPropertyChanging("CorrelationUpdatedTime"); + this.SetAttributeValue("correlationupdatedtime", value); + this.OnPropertyChanged("CorrelationUpdatedTime"); + } + } + + /// + /// Unique identifier of the user who created the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the system job was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the asyncoperation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unstructured data associated with the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("data")] + public string Data + { + get + { + return this.GetAttributeValue("data"); + } + set + { + this.OnPropertyChanging("Data"); + this.SetAttributeValue("data", value); + this.OnPropertyChanged("Data"); + } + } + + /// + /// File Id for the blob url used for file storage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datablobid")] + public System.Nullable DataBlobId + { + get + { + return this.GetAttributeValue>("datablobid"); + } + } + + /// + /// Execution of all operations with the same dependency token is serialized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencytoken")] + public string DependencyToken + { + get + { + return this.GetAttributeValue("dependencytoken"); + } + set + { + this.OnPropertyChanging("DependencyToken"); + this.SetAttributeValue("dependencytoken", value); + this.OnPropertyChanged("DependencyToken"); + } + } + + /// + /// Number of SDK calls made since the first call. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("depth")] + public System.Nullable Depth + { + get + { + return this.GetAttributeValue>("depth"); + } + set + { + this.OnPropertyChanging("Depth"); + this.SetAttributeValue("depth", value); + this.OnPropertyChanged("Depth"); + } + } + + /// + /// Error code returned from a canceled system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("errorcode")] + public System.Nullable ErrorCode + { + get + { + return this.GetAttributeValue>("errorcode"); + } + } + + /// + /// Time that the system job has taken to execute. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executiontimespan")] + public System.Nullable ExecutionTimeSpan + { + get + { + return this.GetAttributeValue>("executiontimespan"); + } + } + + /// + /// The datetime when the Expander pipeline started. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expanderstarttime")] + public System.Nullable ExpanderStartTime + { + get + { + return this.GetAttributeValue>("expanderstarttime"); + } + set + { + this.OnPropertyChanging("ExpanderStartTime"); + this.SetAttributeValue("expanderstarttime", value); + this.OnPropertyChanged("ExpanderStartTime"); + } + } + + /// + /// Message provided by the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlymessage")] + public string FriendlyMessage + { + get + { + return this.GetAttributeValue("friendlymessage"); + } + set + { + this.OnPropertyChanging("FriendlyMessage"); + this.SetAttributeValue("friendlymessage", value); + this.OnPropertyChanged("FriendlyMessage"); + } + } + + /// + /// Unique identifier of the host that owns this system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hostid")] + public string HostId + { + get + { + return this.GetAttributeValue("hostid"); + } + set + { + this.OnPropertyChanging("HostId"); + this.SetAttributeValue("hostid", value); + this.OnPropertyChanged("HostId"); + } + } + + /// + /// Indicates that the system job is waiting for an event. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iswaitingforevent")] + public System.Nullable IsWaitingForEvent + { + get + { + return this.GetAttributeValue>("iswaitingforevent"); + } + } + + /// + /// Message related to the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("message")] + public string Message + { + get + { + return this.GetAttributeValue("message"); + } + } + + /// + /// Name of the message that started this system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("messagename")] + public string MessageName + { + get + { + return this.GetAttributeValue("messagename"); + } + set + { + this.OnPropertyChanging("MessageName"); + this.SetAttributeValue("messagename", value); + this.OnPropertyChanged("MessageName"); + } + } + + /// + /// Unique identifier of the user who last modified the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the system job was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the asyncoperation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Type of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("operationtype")] + public virtual asyncoperation_operationtype? OperationType + { + get + { + return ((asyncoperation_operationtype?)(EntityOptionSetEnum.GetEnum(this, "operationtype"))); + } + set + { + this.OnPropertyChanging("OperationType"); + this.SetAttributeValue("operationtype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("OperationType"); + } + } + + /// + /// Unique identifier of the user or team who owns the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + set + { + this.OnPropertyChanging("OwnerId"); + this.SetAttributeValue("ownerid", value); + this.OnPropertyChanged("OwnerId"); + } + } + + /// + /// Unique identifier of the business unit that owns the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the owning extension with which the system job is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningextensionid")] + public Microsoft.Xrm.Sdk.EntityReference OwningExtensionId + { + get + { + return this.GetAttributeValue("owningextensionid"); + } + set + { + this.OnPropertyChanging("OwningExtensionId"); + this.SetAttributeValue("owningextensionid", value); + this.OnPropertyChanged("OwningExtensionId"); + } + } + + /// + /// Unique identifier of the team who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentpluginexecutionid")] + public System.Nullable ParentPluginExecutionId + { + get + { + return this.GetAttributeValue>("parentpluginexecutionid"); + } + set + { + this.OnPropertyChanging("ParentPluginExecutionId"); + this.SetAttributeValue("parentpluginexecutionid", value); + this.OnPropertyChanged("ParentPluginExecutionId"); + } + } + + /// + /// Indicates whether the system job should run only after the specified date and time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postponeuntil")] + public System.Nullable PostponeUntil + { + get + { + return this.GetAttributeValue>("postponeuntil"); + } + set + { + this.OnPropertyChanging("PostponeUntil"); + this.SetAttributeValue("postponeuntil", value); + this.OnPropertyChanged("PostponeUntil"); + } + } + + /// + /// Type of entity with which the system job is primarily associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryentitytype")] + public string PrimaryEntityType + { + get + { + return this.GetAttributeValue("primaryentitytype"); + } + set + { + this.OnPropertyChanging("PrimaryEntityType"); + this.SetAttributeValue("primaryentitytype", value); + this.OnPropertyChanged("PrimaryEntityType"); + } + } + + /// + /// Pattern of the system job's recurrence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrencepattern")] + public string RecurrencePattern + { + get + { + return this.GetAttributeValue("recurrencepattern"); + } + set + { + this.OnPropertyChanging("RecurrencePattern"); + this.SetAttributeValue("recurrencepattern", value); + this.OnPropertyChanged("RecurrencePattern"); + } + } + + /// + /// Starting time in UTC for the recurrence pattern. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("recurrencestarttime")] + public System.Nullable RecurrenceStartTime + { + get + { + return this.GetAttributeValue>("recurrencestarttime"); + } + set + { + this.OnPropertyChanging("RecurrenceStartTime"); + this.SetAttributeValue("recurrencestarttime", value); + this.OnPropertyChanged("RecurrenceStartTime"); + } + } + + /// + /// Unique identifier of the object with which the system job is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + set + { + this.OnPropertyChanging("RegardingObjectId"); + this.SetAttributeValue("regardingobjectid", value); + this.OnPropertyChanged("RegardingObjectId"); + } + } + + /// + /// Unique identifier of the request that generated the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requestid")] + public System.Nullable RequestId + { + get + { + return this.GetAttributeValue>("requestid"); + } + set + { + this.OnPropertyChanging("RequestId"); + this.SetAttributeValue("requestid", value); + this.OnPropertyChanged("RequestId"); + } + } + + /// + /// Retain job history. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("retainjobhistory")] + public System.Nullable RetainJobHistory + { + get + { + return this.GetAttributeValue>("retainjobhistory"); + } + set + { + this.OnPropertyChanging("RetainJobHistory"); + this.SetAttributeValue("retainjobhistory", value); + this.OnPropertyChanged("RetainJobHistory"); + } + } + + /// + /// Number of times to retry the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("retrycount")] + public System.Nullable RetryCount + { + get + { + return this.GetAttributeValue>("retrycount"); + } + } + + /// + /// Root execution context of the job that trigerred async job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rootexecutioncontext")] + public string RootExecutionContext + { + get + { + return this.GetAttributeValue("rootexecutioncontext"); + } + set + { + this.OnPropertyChanging("RootExecutionContext"); + this.SetAttributeValue("rootexecutioncontext", value); + this.OnPropertyChanged("RootExecutionContext"); + } + } + + /// + /// Order in which operations were submitted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sequence")] + public System.Nullable Sequence + { + get + { + return this.GetAttributeValue>("sequence"); + } + } + + /// + /// Date and time when the system job was started. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("startedon")] + public System.Nullable StartedOn + { + get + { + return this.GetAttributeValue>("startedon"); + } + } + + /// + /// Status of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public virtual asyncoperation_statecode? StateCode + { + get + { + return ((asyncoperation_statecode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); + } + set + { + this.OnPropertyChanging("StateCode"); + this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("StateCode"); + } + } + + /// + /// Reason for the status of the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual asyncoperation_statuscode? StatusCode + { + get + { + return ((asyncoperation_statuscode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// The Subtype of the Async Job + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subtype")] + public System.Nullable Subtype + { + get + { + return this.GetAttributeValue>("subtype"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Unique identifier of the workflow activation related to the system job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowactivationid")] + public Microsoft.Xrm.Sdk.EntityReference WorkflowActivationId + { + get + { + return this.GetAttributeValue("workflowactivationid"); + } + set + { + this.OnPropertyChanging("WorkflowActivationId"); + this.SetAttributeValue("workflowactivationid", value); + this.OnPropertyChanged("WorkflowActivationId"); + } + } + + /// + /// Name of a workflow stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowstagename")] + public string WorkflowStageName + { + get + { + return this.GetAttributeValue("workflowstagename"); + } + } + + /// + /// The workload name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workload")] + public string Workload + { + get + { + return this.GetAttributeValue("workload"); + } + set + { + this.OnPropertyChanging("Workload"); + this.SetAttributeValue("workload", value); + this.OnPropertyChanged("Workload"); + } + } + + /// + /// N:1 lk_asyncoperation_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_createdby")] + public PPDS.Dataverse.Generated.SystemUser lk_asyncoperation_createdby + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_createdby", null); + } + } + + /// + /// N:1 lk_asyncoperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_createdonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_asyncoperation_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_asyncoperation_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_modifiedby")] + public PPDS.Dataverse.Generated.SystemUser lk_asyncoperation_modifiedby + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_modifiedby", null); + } + } + + /// + /// N:1 lk_asyncoperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_modifiedonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_asyncoperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_asyncoperation_modifiedonbehalfby", null); + } + } + + /// + /// N:1 pluginpackage_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pluginpackage_AsyncOperations")] + public PPDS.Dataverse.Generated.PluginPackage pluginpackage_AsyncOperations + { + get + { + return this.GetRelatedEntity("pluginpackage_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("pluginpackage_AsyncOperations"); + this.SetRelatedEntity("pluginpackage_AsyncOperations", null, value); + this.OnPropertyChanged("pluginpackage_AsyncOperations"); + } + } + + /// + /// N:1 SdkMessageProcessingStep_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningextensionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SdkMessageProcessingStep_AsyncOperations")] + public PPDS.Dataverse.Generated.SdkMessageProcessingStep SdkMessageProcessingStep_AsyncOperations + { + get + { + return this.GetRelatedEntity("SdkMessageProcessingStep_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStep_AsyncOperations"); + this.SetRelatedEntity("SdkMessageProcessingStep_AsyncOperations", null, value); + this.OnPropertyChanged("SdkMessageProcessingStep_AsyncOperations"); + } + } + + /// + /// N:1 system_user_asyncoperation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_asyncoperation")] + public PPDS.Dataverse.Generated.SystemUser system_user_asyncoperation + { + get + { + return this.GetRelatedEntity("system_user_asyncoperation", null); + } + } + + /// + /// N:1 SystemUser_AsyncOperations + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_AsyncOperations")] + public PPDS.Dataverse.Generated.SystemUser SystemUser_AsyncOperations + { + get + { + return this.GetRelatedEntity("SystemUser_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SystemUser_AsyncOperations"); + this.SetRelatedEntity("SystemUser_AsyncOperations", null, value); + this.OnPropertyChanged("SystemUser_AsyncOperations"); + } + } + } +} diff --git a/src/PPDS.Dataverse/Generated/Entities/importjob.cs b/src/PPDS.Dataverse/Generated/Entities/importjob.cs new file mode 100644 index 000000000..8dc6b4d32 --- /dev/null +++ b/src/PPDS.Dataverse/Generated/Entities/importjob.cs @@ -0,0 +1,443 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// For internal use only. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("importjob")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public partial class ImportJob : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Available fields, a the time of codegen, for the importjob entity + /// + public partial class Fields + { + public const string CompletedOn = "completedon"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string Data = "data"; + public const string ImportContext = "importcontext"; + public const string ImportJobId = "importjobid"; + public const string Id = "importjobid"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OperationContext = "operationcontext"; + public const string OrganizationId = "organizationid"; + public const string Progress = "progress"; + public const string SolutionId = "solutionid"; + public const string SolutionName = "solutionname"; + public const string StartedOn = "startedon"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string lk_importjobbase_createdby = "lk_importjobbase_createdby"; + public const string lk_importjobbase_createdonbehalfby = "lk_importjobbase_createdonbehalfby"; + public const string lk_importjobbase_modifiedby = "lk_importjobbase_modifiedby"; + public const string lk_importjobbase_modifiedonbehalfby = "lk_importjobbase_modifiedonbehalfby"; + } + + /// + /// Default Constructor. + /// + public ImportJob() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "importjob"; + + public const string EntityLogicalCollectionName = "importjobs"; + + public const string EntitySetName = "importjobs"; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Date and time when the import job was completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("completedon")] + public System.Nullable CompletedOn + { + get + { + return this.GetAttributeValue>("completedon"); + } + } + + /// + /// Unique identifier of the user who created the importJob. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the import job record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the import job record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Unstructured data associated with the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("data")] + public string Data + { + get + { + return this.GetAttributeValue("data"); + } + set + { + this.OnPropertyChanging("Data"); + this.SetAttributeValue("data", value); + this.OnPropertyChanged("Data"); + } + } + + /// + /// The context of the import + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importcontext")] + public string ImportContext + { + get + { + return this.GetAttributeValue("importcontext"); + } + set + { + this.OnPropertyChanging("ImportContext"); + this.SetAttributeValue("importcontext", value); + this.OnPropertyChanged("ImportContext"); + } + } + + /// + /// Unique identifier of the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importjobid")] + public System.Nullable ImportJobId + { + get + { + return this.GetAttributeValue>("importjobid"); + } + set + { + this.OnPropertyChanging("ImportJobId"); + this.SetAttributeValue("importjobid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ImportJobId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importjobid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ImportJobId = value; + } + } + + /// + /// Unique identifier of the user who modified the importJob. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the import job was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the import job record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the import job. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// The context of the solution operation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("operationcontext")] + public string OperationContext + { + get + { + return this.GetAttributeValue("operationcontext"); + } + set + { + this.OnPropertyChanging("OperationContext"); + this.SetAttributeValue("operationcontext", value); + this.OnPropertyChanged("OperationContext"); + } + } + + /// + /// Unique identifier of the organization associated with the importjob. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Import Progress Percentage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("progress")] + public System.Nullable Progress + { + get + { + return this.GetAttributeValue>("progress"); + } + set + { + this.OnPropertyChanging("Progress"); + this.SetAttributeValue("progress", value); + this.OnPropertyChanged("Progress"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Unique identifier of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionname")] + public string SolutionName + { + get + { + return this.GetAttributeValue("solutionname"); + } + set + { + this.OnPropertyChanging("SolutionName"); + this.SetAttributeValue("solutionname", value); + this.OnPropertyChanged("SolutionName"); + } + } + + /// + /// Date and time when the import job was started. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("startedon")] + public System.Nullable StartedOn + { + get + { + return this.GetAttributeValue>("startedon"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// N:1 lk_importjobbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_createdby")] + public PPDS.Dataverse.Generated.SystemUser lk_importjobbase_createdby + { + get + { + return this.GetRelatedEntity("lk_importjobbase_createdby", null); + } + } + + /// + /// N:1 lk_importjobbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_createdonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_importjobbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importjobbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_importjobbase_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_modifiedby")] + public PPDS.Dataverse.Generated.SystemUser lk_importjobbase_modifiedby + { + get + { + return this.GetRelatedEntity("lk_importjobbase_modifiedby", null); + } + } + + /// + /// N:1 lk_importjobbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_modifiedonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_importjobbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_importjobbase_modifiedonbehalfby", null); + } + } + } +} diff --git a/src/PPDS.Dataverse/Generated/Entities/pluginassembly.cs b/src/PPDS.Dataverse/Generated/Entities/pluginassembly.cs new file mode 100644 index 000000000..77b185bf8 --- /dev/null +++ b/src/PPDS.Dataverse/Generated/Entities/pluginassembly.cs @@ -0,0 +1,830 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// Authentication Type for the Web sources like AzureWebApp, for example 0=BasicAuth + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum pluginassembly_authtype + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + BasicAuth = 0, + } + + /// + /// Information about how the plugin assembly is to be isolated at execution time; None / Sandboxed / External. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum pluginassembly_isolationmode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Sandbox = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + External = 3, + } + + /// + /// Location of the assembly, for example 0=database, 1=on-disk, 2=Normal, 3=AzureWebApp. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum pluginassembly_sourcetype + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Database = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Disk = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Normal = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AzureWebApp = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + FileStore = 4, + } + + /// + /// Assembly that contains one or more plug-in types. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("pluginassembly")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public partial class PluginAssembly : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Available fields, a the time of codegen, for the pluginassembly entity + /// + public partial class Fields + { + public const string AuthType = "authtype"; + public const string ComponentState = "componentstate"; + public const string Content = "content"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string Culture = "culture"; + public const string CustomizationLevel = "customizationlevel"; + public const string Description = "description"; + public const string IntroducedVersion = "introducedversion"; + public const string IsCustomizable = "iscustomizable"; + public const string IsHidden = "ishidden"; + public const string IsManaged = "ismanaged"; + public const string IsolationMode = "isolationmode"; + public const string IsPasswordSet = "ispasswordset"; + public const string Major = "major"; + public const string ManagedIdentityId = "managedidentityid"; + public const string Minor = "minor"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OrganizationId = "organizationid"; + public const string OverwriteTime = "overwritetime"; + public const string PackageId = "packageid"; + public const string Password = "password"; + public const string Path = "path"; + public const string PluginAssemblyId = "pluginassemblyid"; + public const string Id = "pluginassemblyid"; + public const string PluginAssemblyIdUnique = "pluginassemblyidunique"; + public const string PublicKeyToken = "publickeytoken"; + public const string SolutionId = "solutionid"; + public const string SourceHash = "sourcehash"; + public const string SourceType = "sourcetype"; + public const string Url = "url"; + public const string UserName = "username"; + public const string Version = "version"; + public const string VersionNumber = "versionnumber"; + public const string pluginassembly_plugintype = "pluginassembly_plugintype"; + public const string createdby_pluginassembly = "createdby_pluginassembly"; + public const string lk_pluginassembly_createdonbehalfby = "lk_pluginassembly_createdonbehalfby"; + public const string lk_pluginassembly_modifiedonbehalfby = "lk_pluginassembly_modifiedonbehalfby"; + public const string modifiedby_pluginassembly = "modifiedby_pluginassembly"; + public const string pluginpackage_pluginassembly = "pluginpackage_pluginassembly"; + } + + /// + /// Default Constructor. + /// + public PluginAssembly() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "pluginassembly"; + + public const string EntityLogicalCollectionName = "pluginassemblies"; + + public const string EntitySetName = "pluginassemblies"; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Specifies mode of authentication with web sources like WebApp + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("authtype")] + public virtual pluginassembly_authtype? AuthType + { + get + { + return ((pluginassembly_authtype?)(EntityOptionSetEnum.GetEnum(this, "authtype"))); + } + set + { + this.OnPropertyChanging("AuthType"); + this.SetAttributeValue("authtype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("AuthType"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public virtual componentstate? ComponentState + { + get + { + return ((componentstate?)(EntityOptionSetEnum.GetEnum(this, "componentstate"))); + } + } + + /// + /// Bytes of the assembly, in Base64 format. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("content")] + public string Content + { + get + { + return this.GetAttributeValue("content"); + } + set + { + this.OnPropertyChanging("Content"); + this.SetAttributeValue("content", value); + this.OnPropertyChanged("Content"); + } + } + + /// + /// Unique identifier of the user who created the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the plug-in assembly was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the pluginassembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Culture code for the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("culture")] + public string Culture + { + get + { + return this.GetAttributeValue("culture"); + } + set + { + this.OnPropertyChanging("Culture"); + this.SetAttributeValue("culture", value); + this.OnPropertyChanged("Culture"); + } + } + + /// + /// Customization Level. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Description of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information that specifies whether this component should be hidden. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ishidden")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsHidden + { + get + { + return this.GetAttributeValue("ishidden"); + } + set + { + this.OnPropertyChanging("IsHidden"); + this.SetAttributeValue("ishidden", value); + this.OnPropertyChanged("IsHidden"); + } + } + + /// + /// Information that specifies whether this component is managed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Information about how the plugin assembly is to be isolated at execution time; None / Sandboxed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isolationmode")] + public virtual pluginassembly_isolationmode? IsolationMode + { + get + { + return ((pluginassembly_isolationmode?)(EntityOptionSetEnum.GetEnum(this, "isolationmode"))); + } + set + { + this.OnPropertyChanging("IsolationMode"); + this.SetAttributeValue("isolationmode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("IsolationMode"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispasswordset")] + public System.Nullable IsPasswordSet + { + get + { + return this.GetAttributeValue>("ispasswordset"); + } + } + + /// + /// Major of the assembly version. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("major")] + public System.Nullable Major + { + get + { + return this.GetAttributeValue>("major"); + } + } + + /// + /// Unique identifier for managedidentity associated with pluginassembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("managedidentityid")] + public Microsoft.Xrm.Sdk.EntityReference ManagedIdentityId + { + get + { + return this.GetAttributeValue("managedidentityid"); + } + set + { + this.OnPropertyChanging("ManagedIdentityId"); + this.SetAttributeValue("managedidentityid", value); + this.OnPropertyChanged("ManagedIdentityId"); + } + } + + /// + /// Minor of the assembly version. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minor")] + public System.Nullable Minor + { + get + { + return this.GetAttributeValue>("minor"); + } + } + + /// + /// Unique identifier of the user who last modified the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the plug-in assembly was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the pluginassembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the plug-in assembly is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier for Plugin Package associated with Plug-in Assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("packageid")] + public Microsoft.Xrm.Sdk.EntityReference PackageId + { + get + { + return this.GetAttributeValue("packageid"); + } + set + { + this.OnPropertyChanging("PackageId"); + this.SetAttributeValue("packageid", value); + this.OnPropertyChanged("PackageId"); + } + } + + /// + /// User Password + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("password")] + public string Password + { + get + { + return this.GetAttributeValue("password"); + } + set + { + this.OnPropertyChanging("Password"); + this.SetAttributeValue("password", value); + this.OnPropertyChanged("Password"); + } + } + + /// + /// File name of the plug-in assembly. Used when the source type is set to 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("path")] + public string Path + { + get + { + return this.GetAttributeValue("path"); + } + set + { + this.OnPropertyChanging("Path"); + this.SetAttributeValue("path", value); + this.OnPropertyChanged("Path"); + } + } + + /// + /// Unique identifier of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] + public System.Nullable PluginAssemblyId + { + get + { + return this.GetAttributeValue>("pluginassemblyid"); + } + set + { + this.OnPropertyChanging("PluginAssemblyId"); + this.SetAttributeValue("pluginassemblyid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PluginAssemblyId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PluginAssemblyId = value; + } + } + + /// + /// Unique identifier of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyidunique")] + public System.Nullable PluginAssemblyIdUnique + { + get + { + return this.GetAttributeValue>("pluginassemblyidunique"); + } + } + + /// + /// Public key token of the assembly. This value can be obtained from the assembly by using reflection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publickeytoken")] + public string PublicKeyToken + { + get + { + return this.GetAttributeValue("publickeytoken"); + } + set + { + this.OnPropertyChanging("PublicKeyToken"); + this.SetAttributeValue("publickeytoken", value); + this.OnPropertyChanged("PublicKeyToken"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Hash of the source of the assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcehash")] + public string SourceHash + { + get + { + return this.GetAttributeValue("sourcehash"); + } + set + { + this.OnPropertyChanging("SourceHash"); + this.SetAttributeValue("sourcehash", value); + this.OnPropertyChanged("SourceHash"); + } + } + + /// + /// Location of the assembly, for example 0=database, 1=on-disk. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcetype")] + public virtual pluginassembly_sourcetype? SourceType + { + get + { + return ((pluginassembly_sourcetype?)(EntityOptionSetEnum.GetEnum(this, "sourcetype"))); + } + set + { + this.OnPropertyChanging("SourceType"); + this.SetAttributeValue("sourcetype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("SourceType"); + } + } + + /// + /// Web Url + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("url")] + public string Url + { + get + { + return this.GetAttributeValue("url"); + } + set + { + this.OnPropertyChanging("Url"); + this.SetAttributeValue("url", value); + this.OnPropertyChanged("Url"); + } + } + + /// + /// User Name + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("username")] + public string UserName + { + get + { + return this.GetAttributeValue("username"); + } + set + { + this.OnPropertyChanging("UserName"); + this.SetAttributeValue("username", value); + this.OnPropertyChanged("UserName"); + } + } + + /// + /// Version number of the assembly. The value can be obtained from the assembly through reflection. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public string Version + { + get + { + return this.GetAttributeValue("version"); + } + set + { + this.OnPropertyChanging("Version"); + this.SetAttributeValue("version", value); + this.OnPropertyChanged("Version"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N pluginassembly_plugintype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pluginassembly_plugintype")] + public System.Collections.Generic.IEnumerable pluginassembly_plugintype + { + get + { + return this.GetRelatedEntities("pluginassembly_plugintype", null); + } + set + { + this.OnPropertyChanging("pluginassembly_plugintype"); + this.SetRelatedEntities("pluginassembly_plugintype", null, value); + this.OnPropertyChanged("pluginassembly_plugintype"); + } + } + + /// + /// N:1 createdby_pluginassembly + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_pluginassembly")] + public PPDS.Dataverse.Generated.SystemUser createdby_pluginassembly + { + get + { + return this.GetRelatedEntity("createdby_pluginassembly", null); + } + } + + /// + /// N:1 lk_pluginassembly_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_createdonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_pluginassembly_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_pluginassembly_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_pluginassembly_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_modifiedonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_pluginassembly_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_pluginassembly_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_pluginassembly + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_pluginassembly")] + public PPDS.Dataverse.Generated.SystemUser modifiedby_pluginassembly + { + get + { + return this.GetRelatedEntity("modifiedby_pluginassembly", null); + } + } + + /// + /// N:1 pluginpackage_pluginassembly + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("packageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pluginpackage_pluginassembly")] + public PPDS.Dataverse.Generated.PluginPackage pluginpackage_pluginassembly + { + get + { + return this.GetRelatedEntity("pluginpackage_pluginassembly", null); + } + set + { + this.OnPropertyChanging("pluginpackage_pluginassembly"); + this.SetRelatedEntity("pluginpackage_pluginassembly", null, value); + this.OnPropertyChanged("pluginpackage_pluginassembly"); + } + } + } +} diff --git a/src/PPDS.Dataverse/Generated/Entities/pluginpackage.cs b/src/PPDS.Dataverse/Generated/Entities/pluginpackage.cs new file mode 100644 index 000000000..49e90783f --- /dev/null +++ b/src/PPDS.Dataverse/Generated/Entities/pluginpackage.cs @@ -0,0 +1,665 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// Status of the Plugin Package + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum pluginpackage_statecode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Reason for the status of the Plugin Package + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum pluginpackage_statuscode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("pluginpackage")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public partial class PluginPackage : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Available fields, a the time of codegen, for the pluginpackage entity + /// + public partial class Fields + { + public const string ComponentIdUnique = "componentidunique"; + public const string ComponentState = "componentstate"; + public const string Content = "content"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string ExportKeyVersion = "exportkeyversion"; + public const string FileId = "fileid"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string IsCustomizable = "iscustomizable"; + public const string IsManaged = "ismanaged"; + public const string managedidentityid = "managedidentityid"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OrganizationId = "organizationid"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OverwriteTime = "overwritetime"; + public const string Package = "package"; + public const string PluginPackageId = "pluginpackageid"; + public const string Id = "pluginpackageid"; + public const string SolutionId = "solutionid"; + public const string statecode = "statecode"; + public const string statuscode = "statuscode"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string UniqueName = "uniquename"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string Version = "version"; + public const string VersionNumber = "versionnumber"; + public const string pluginpackage_AsyncOperations = "pluginpackage_AsyncOperations"; + public const string pluginpackage_pluginassembly = "pluginpackage_pluginassembly"; + public const string lk_pluginpackage_createdby = "lk_pluginpackage_createdby"; + public const string lk_pluginpackage_createdonbehalfby = "lk_pluginpackage_createdonbehalfby"; + public const string lk_pluginpackage_modifiedby = "lk_pluginpackage_modifiedby"; + public const string lk_pluginpackage_modifiedonbehalfby = "lk_pluginpackage_modifiedonbehalfby"; + } + + /// + /// Default Constructor. + /// + public PluginPackage() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "pluginpackage"; + + public const string EntityLogicalCollectionName = "pluginpackages"; + + public const string EntitySetName = "pluginpackages"; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentidunique")] + public System.Nullable ComponentIdUnique + { + get + { + return this.GetAttributeValue>("componentidunique"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public virtual componentstate? ComponentState + { + get + { + return ((componentstate?)(EntityOptionSetEnum.GetEnum(this, "componentstate"))); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("content")] + public string Content + { + get + { + return this.GetAttributeValue("content"); + } + set + { + this.OnPropertyChanging("Content"); + this.SetAttributeValue("content", value); + this.OnPropertyChanged("Content"); + } + } + + /// + /// Unique identifier of the user who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + 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 + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Export Key Version + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exportkeyversion")] + public System.Nullable ExportKeyVersion + { + get + { + return this.GetAttributeValue>("exportkeyversion"); + } + set + { + this.OnPropertyChanging("ExportKeyVersion"); + this.SetAttributeValue("exportkeyversion", value); + this.OnPropertyChanged("ExportKeyVersion"); + } + } + + /// + /// Lookup to FileAttachment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fileid")] + public System.Nullable FileId + { + get + { + return this.GetAttributeValue>("fileid"); + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Managed Identity Id to look up to ManagedIdentity Entity + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("managedidentityid")] + public Microsoft.Xrm.Sdk.EntityReference managedidentityid + { + get + { + return this.GetAttributeValue("managedidentityid"); + } + set + { + this.OnPropertyChanging("managedidentityid"); + this.SetAttributeValue("managedidentityid", value); + this.OnPropertyChanged("managedidentityid"); + } + } + + /// + /// Unique identifier of the user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + 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 + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// The name of the plugin package entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier for the organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Lookup to FileAttachment + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("package")] + public System.Nullable Package + { + get + { + return this.GetAttributeValue>("package"); + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginpackageid")] + public System.Nullable PluginPackageId + { + get + { + return this.GetAttributeValue>("pluginpackageid"); + } + set + { + this.OnPropertyChanging("PluginPackageId"); + this.SetAttributeValue("pluginpackageid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PluginPackageId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginpackageid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PluginPackageId = value; + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Status of the Plugin Package + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public virtual pluginpackage_statecode? statecode + { + get + { + return ((pluginpackage_statecode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); + } + set + { + this.OnPropertyChanging("statecode"); + this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("statecode"); + } + } + + /// + /// Reason for the status of the Plugin Package + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual pluginpackage_statuscode? statuscode + { + get + { + return ((pluginpackage_statuscode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + set + { + this.OnPropertyChanging("statuscode"); + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("statuscode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Unique name for the package + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] + public string UniqueName + { + get + { + return this.GetAttributeValue("uniquename"); + } + set + { + this.OnPropertyChanging("UniqueName"); + this.SetAttributeValue("uniquename", value); + this.OnPropertyChanged("UniqueName"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version of the package + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public string Version + { + get + { + return this.GetAttributeValue("version"); + } + set + { + this.OnPropertyChanging("Version"); + this.SetAttributeValue("version", value); + this.OnPropertyChanged("Version"); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N pluginpackage_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pluginpackage_AsyncOperations")] + public System.Collections.Generic.IEnumerable pluginpackage_AsyncOperations + { + get + { + return this.GetRelatedEntities("pluginpackage_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("pluginpackage_AsyncOperations"); + this.SetRelatedEntities("pluginpackage_AsyncOperations", null, value); + this.OnPropertyChanged("pluginpackage_AsyncOperations"); + } + } + + /// + /// 1:N pluginpackage_pluginassembly + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pluginpackage_pluginassembly")] + public System.Collections.Generic.IEnumerable pluginpackage_pluginassembly + { + get + { + return this.GetRelatedEntities("pluginpackage_pluginassembly", null); + } + set + { + this.OnPropertyChanging("pluginpackage_pluginassembly"); + this.SetRelatedEntities("pluginpackage_pluginassembly", null, value); + this.OnPropertyChanged("pluginpackage_pluginassembly"); + } + } + + /// + /// N:1 lk_pluginpackage_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginpackage_createdby")] + public PPDS.Dataverse.Generated.SystemUser lk_pluginpackage_createdby + { + get + { + return this.GetRelatedEntity("lk_pluginpackage_createdby", null); + } + } + + /// + /// N:1 lk_pluginpackage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginpackage_createdonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_pluginpackage_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_pluginpackage_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_pluginpackage_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginpackage_modifiedby")] + public PPDS.Dataverse.Generated.SystemUser lk_pluginpackage_modifiedby + { + get + { + return this.GetRelatedEntity("lk_pluginpackage_modifiedby", null); + } + } + + /// + /// N:1 lk_pluginpackage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginpackage_modifiedonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_pluginpackage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_pluginpackage_modifiedonbehalfby", null); + } + } + } +} diff --git a/src/PPDS.Dataverse/Generated/Entities/plugintype.cs b/src/PPDS.Dataverse/Generated/Entities/plugintype.cs new file mode 100644 index 000000000..fe9724c80 --- /dev/null +++ b/src/PPDS.Dataverse/Generated/Entities/plugintype.cs @@ -0,0 +1,632 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// Type that inherits from the IPlugin interface and is contained within a plug-in assembly. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("plugintype")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public partial class PluginType : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Available fields, a the time of codegen, for the plugintype entity + /// + public partial class Fields + { + public const string AssemblyName = "assemblyname"; + public const string ComponentState = "componentstate"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string Culture = "culture"; + public const string CustomizationLevel = "customizationlevel"; + public const string CustomWorkflowActivityInfo = "customworkflowactivityinfo"; + public const string Description = "description"; + public const string FriendlyName = "friendlyname"; + public const string IsManaged = "ismanaged"; + public const string IsWorkflowActivity = "isworkflowactivity"; + public const string Major = "major"; + public const string Minor = "minor"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OrganizationId = "organizationid"; + public const string OverwriteTime = "overwritetime"; + public const string PluginAssemblyId = "pluginassemblyid"; + public const string PluginTypeExportKey = "plugintypeexportkey"; + public const string PluginTypeId = "plugintypeid"; + public const string Id = "plugintypeid"; + public const string PluginTypeIdUnique = "plugintypeidunique"; + public const string PublicKeyToken = "publickeytoken"; + public const string SolutionId = "solutionid"; + public const string TypeName = "typename"; + public const string Version = "version"; + public const string VersionNumber = "versionnumber"; + public const string WorkflowActivityGroupName = "workflowactivitygroupname"; + public const string plugintype_sdkmessageprocessingstep = "plugintype_sdkmessageprocessingstep"; + public const string plugintypeid_sdkmessageprocessingstep = "plugintypeid_sdkmessageprocessingstep"; + public const string createdby_plugintype = "createdby_plugintype"; + public const string lk_plugintype_createdonbehalfby = "lk_plugintype_createdonbehalfby"; + public const string lk_plugintype_modifiedonbehalfby = "lk_plugintype_modifiedonbehalfby"; + public const string modifiedby_plugintype = "modifiedby_plugintype"; + public const string pluginassembly_plugintype = "pluginassembly_plugintype"; + } + + /// + /// Default Constructor. + /// + public PluginType() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "plugintype"; + + public const string EntityLogicalCollectionName = "plugintypes"; + + public const string EntitySetName = "plugintypes"; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Full path name of the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("assemblyname")] + public string AssemblyName + { + get + { + return this.GetAttributeValue("assemblyname"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public virtual componentstate? ComponentState + { + get + { + return ((componentstate?)(EntityOptionSetEnum.GetEnum(this, "componentstate"))); + } + } + + /// + /// Unique identifier of the user who created the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the plug-in type was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the plugintype. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Culture code for the plug-in assembly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("culture")] + public string Culture + { + get + { + return this.GetAttributeValue("culture"); + } + } + + /// + /// Customization level of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Serialized Custom Activity Type information, including required arguments. For more information, see SandboxCustomActivityInfo. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customworkflowactivityinfo")] + public string CustomWorkflowActivityInfo + { + get + { + return this.GetAttributeValue("customworkflowactivityinfo"); + } + } + + /// + /// Description of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// User friendly name for the plug-in. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlyname")] + public string FriendlyName + { + get + { + return this.GetAttributeValue("friendlyname"); + } + set + { + this.OnPropertyChanging("FriendlyName"); + this.SetAttributeValue("friendlyname", value); + this.OnPropertyChanged("FriendlyName"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Indicates if the plug-in is a custom activity for workflows. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isworkflowactivity")] + public System.Nullable IsWorkflowActivity + { + get + { + return this.GetAttributeValue>("isworkflowactivity"); + } + } + + /// + /// Major of the version number of the assembly for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("major")] + public System.Nullable Major + { + get + { + return this.GetAttributeValue>("major"); + } + } + + /// + /// Minor of the version number of the assembly for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minor")] + public System.Nullable Minor + { + get + { + return this.GetAttributeValue>("minor"); + } + } + + /// + /// Unique identifier of the user who last modified the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the plug-in type was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the plugintype. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the plug-in type is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the plug-in assembly that contains this plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] + public Microsoft.Xrm.Sdk.EntityReference PluginAssemblyId + { + get + { + return this.GetAttributeValue("pluginassemblyid"); + } + set + { + this.OnPropertyChanging("PluginAssemblyId"); + this.SetAttributeValue("pluginassemblyid", value); + this.OnPropertyChanged("PluginAssemblyId"); + } + } + + /// + /// Uniquely identifies the plug-in type associated with a plugin package when exporting a solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeexportkey")] + public string PluginTypeExportKey + { + get + { + return this.GetAttributeValue("plugintypeexportkey"); + } + set + { + this.OnPropertyChanging("PluginTypeExportKey"); + this.SetAttributeValue("plugintypeexportkey", value); + this.OnPropertyChanged("PluginTypeExportKey"); + } + } + + /// + /// Unique identifier of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + public System.Nullable PluginTypeId + { + get + { + return this.GetAttributeValue>("plugintypeid"); + } + set + { + this.OnPropertyChanging("PluginTypeId"); + this.SetAttributeValue("plugintypeid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PluginTypeId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PluginTypeId = value; + } + } + + /// + /// Unique identifier of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeidunique")] + public System.Nullable PluginTypeIdUnique + { + get + { + return this.GetAttributeValue>("plugintypeidunique"); + } + } + + /// + /// Public key token of the assembly for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publickeytoken")] + public string PublicKeyToken + { + get + { + return this.GetAttributeValue("publickeytoken"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Fully qualified type name of the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("typename")] + public string TypeName + { + get + { + return this.GetAttributeValue("typename"); + } + set + { + this.OnPropertyChanging("TypeName"); + this.SetAttributeValue("typename", value); + this.OnPropertyChanged("TypeName"); + } + } + + /// + /// Version number of the assembly for the plug-in type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public string Version + { + get + { + return this.GetAttributeValue("version"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Group name of workflow custom activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowactivitygroupname")] + public string WorkflowActivityGroupName + { + get + { + return this.GetAttributeValue("workflowactivitygroupname"); + } + set + { + this.OnPropertyChanging("WorkflowActivityGroupName"); + this.SetAttributeValue("workflowactivitygroupname", value); + this.OnPropertyChanged("WorkflowActivityGroupName"); + } + } + + /// + /// 1:N plugintype_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable plugintype_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("plugintype_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("plugintype_sdkmessageprocessingstep"); + this.SetRelatedEntities("plugintype_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("plugintype_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N plugintypeid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintypeid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable plugintypeid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("plugintypeid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("plugintypeid_sdkmessageprocessingstep"); + this.SetRelatedEntities("plugintypeid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("plugintypeid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 createdby_plugintype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_plugintype")] + public PPDS.Dataverse.Generated.SystemUser createdby_plugintype + { + get + { + return this.GetRelatedEntity("createdby_plugintype", null); + } + } + + /// + /// N:1 lk_plugintype_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_createdonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_plugintype_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_plugintype_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_plugintype_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_modifiedonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_plugintype_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_plugintype_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_plugintype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_plugintype")] + public PPDS.Dataverse.Generated.SystemUser modifiedby_plugintype + { + get + { + return this.GetRelatedEntity("modifiedby_plugintype", null); + } + } + + /// + /// N:1 pluginassembly_plugintype + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pluginassembly_plugintype")] + public PPDS.Dataverse.Generated.PluginAssembly pluginassembly_plugintype + { + get + { + return this.GetRelatedEntity("pluginassembly_plugintype", null); + } + set + { + this.OnPropertyChanging("pluginassembly_plugintype"); + this.SetRelatedEntity("pluginassembly_plugintype", null, value); + this.OnPropertyChanged("pluginassembly_plugintype"); + } + } + } +} diff --git a/src/PPDS.Dataverse/Generated/Entities/publisher.cs b/src/PPDS.Dataverse/Generated/Entities/publisher.cs new file mode 100644 index 000000000..364dee6df --- /dev/null +++ b/src/PPDS.Dataverse/Generated/Entities/publisher.cs @@ -0,0 +1,1351 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// Type of address for address 1, such as billing, shipping, or primary address. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum publisher_address1_addresstypecode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + DefaultValue = 1, + } + + /// + /// Method of shipment for address 1. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum publisher_address1_shippingmethodcode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + DefaultValue = 1, + } + + /// + /// Type of address for address 2. such as billing, shipping, or primary address. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum publisher_address2_addresstypecode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + DefaultValue = 1, + } + + /// + /// Method of shipment for address 2. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum publisher_address2_shippingmethodcode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + DefaultValue = 1, + } + + /// + /// A publisher of a CRM solution. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("publisher")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public partial class Publisher : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Available fields, a the time of codegen, for the publisher entity + /// + public partial class Fields + { + public const string Address1_AddressId = "address1_addressid"; + public const string Address1_AddressTypeCode = "address1_addresstypecode"; + public const string Address1_City = "address1_city"; + 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_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_City = "address2_city"; + 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_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 CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CustomizationOptionValuePrefix = "customizationoptionvalueprefix"; + public const string CustomizationPrefix = "customizationprefix"; + public const string Description = "description"; + public const string EMailAddress = "emailaddress"; + 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 FriendlyName = "friendlyname"; + public const string IsReadonly = "isreadonly"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string OrganizationId = "organizationid"; + public const string PinpointPublisherDefaultLocale = "pinpointpublisherdefaultlocale"; + public const string PinpointPublisherId = "pinpointpublisherid"; + public const string PublisherId = "publisherid"; + public const string Id = "publisherid"; + public const string SupportingWebsiteUrl = "supportingwebsiteurl"; + public const string UniqueName = "uniquename"; + public const string VersionNumber = "versionnumber"; + public const string publisher_solution = "publisher_solution"; + public const string lk_publisher_createdby = "lk_publisher_createdby"; + public const string lk_publisher_modifiedby = "lk_publisher_modifiedby"; + public const string lk_publisherbase_createdonbehalfby = "lk_publisherbase_createdonbehalfby"; + public const string lk_publisherbase_modifiedonbehalfby = "lk_publisherbase_modifiedonbehalfby"; + } + + /// + /// Default Constructor. + /// + public Publisher() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "publisher"; + + public const string EntityLogicalCollectionName = "publishers"; + + public const string EntitySetName = "publishers"; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// Type of address for address 1, such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] + public virtual publisher_address1_addresstypecode? Address1_AddressTypeCode + { + get + { + return ((publisher_address1_addresstypecode?)(EntityOptionSetEnum.GetEnum(this, "address1_addresstypecode"))); + } + set + { + this.OnPropertyChanging("Address1_AddressTypeCode"); + this.SetAttributeValue("address1_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address1_AddressTypeCode"); + } + } + + /// + /// City name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] + public string Address1_City + { + get + { + return this.GetAttributeValue("address1_city"); + } + set + { + this.OnPropertyChanging("Address1_City"); + this.SetAttributeValue("address1_city", value); + this.OnPropertyChanged("Address1_City"); + } + } + + /// + /// Country/region name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] + public string Address1_Country + { + get + { + return this.GetAttributeValue("address1_country"); + } + set + { + this.OnPropertyChanging("Address1_Country"); + this.SetAttributeValue("address1_country", value); + this.OnPropertyChanged("Address1_Country"); + } + } + + /// + /// County name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] + public string Address1_County + { + get + { + return this.GetAttributeValue("address1_county"); + } + set + { + this.OnPropertyChanging("Address1_County"); + this.SetAttributeValue("address1_county", value); + this.OnPropertyChanged("Address1_County"); + } + } + + /// + /// Fax number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] + public string Address1_Fax + { + get + { + return this.GetAttributeValue("address1_fax"); + } + set + { + this.OnPropertyChanging("Address1_Fax"); + this.SetAttributeValue("address1_fax", value); + this.OnPropertyChanged("Address1_Fax"); + } + } + + /// + /// Latitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] + public System.Nullable Address1_Latitude + { + get + { + return this.GetAttributeValue>("address1_latitude"); + } + set + { + this.OnPropertyChanging("Address1_Latitude"); + this.SetAttributeValue("address1_latitude", value); + this.OnPropertyChanged("Address1_Latitude"); + } + } + + /// + /// First line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] + public string Address1_Line1 + { + get + { + return this.GetAttributeValue("address1_line1"); + } + set + { + this.OnPropertyChanging("Address1_Line1"); + this.SetAttributeValue("address1_line1", value); + this.OnPropertyChanged("Address1_Line1"); + } + } + + /// + /// Second line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] + public string Address1_Line2 + { + get + { + return this.GetAttributeValue("address1_line2"); + } + set + { + this.OnPropertyChanging("Address1_Line2"); + this.SetAttributeValue("address1_line2", value); + this.OnPropertyChanged("Address1_Line2"); + } + } + + /// + /// Third line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] + public string Address1_Line3 + { + get + { + return this.GetAttributeValue("address1_line3"); + } + set + { + this.OnPropertyChanging("Address1_Line3"); + this.SetAttributeValue("address1_line3", value); + this.OnPropertyChanged("Address1_Line3"); + } + } + + /// + /// Longitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] + public System.Nullable Address1_Longitude + { + get + { + return this.GetAttributeValue>("address1_longitude"); + } + set + { + this.OnPropertyChanging("Address1_Longitude"); + this.SetAttributeValue("address1_longitude", value); + this.OnPropertyChanged("Address1_Longitude"); + } + } + + /// + /// Name to enter for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] + public string Address1_Name + { + get + { + return this.GetAttributeValue("address1_name"); + } + set + { + this.OnPropertyChanging("Address1_Name"); + this.SetAttributeValue("address1_name", value); + this.OnPropertyChanged("Address1_Name"); + } + } + + /// + /// ZIP Code or postal code for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] + public string Address1_PostalCode + { + get + { + return this.GetAttributeValue("address1_postalcode"); + } + set + { + this.OnPropertyChanging("Address1_PostalCode"); + this.SetAttributeValue("address1_postalcode", value); + this.OnPropertyChanged("Address1_PostalCode"); + } + } + + /// + /// Post office box number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] + public string Address1_PostOfficeBox + { + get + { + return this.GetAttributeValue("address1_postofficebox"); + } + set + { + this.OnPropertyChanging("Address1_PostOfficeBox"); + this.SetAttributeValue("address1_postofficebox", value); + this.OnPropertyChanged("Address1_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public virtual publisher_address1_shippingmethodcode? Address1_ShippingMethodCode + { + get + { + return ((publisher_address1_shippingmethodcode?)(EntityOptionSetEnum.GetEnum(this, "address1_shippingmethodcode"))); + } + set + { + this.OnPropertyChanging("Address1_ShippingMethodCode"); + this.SetAttributeValue("address1_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address1_ShippingMethodCode"); + } + } + + /// + /// State or province for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] + public string Address1_StateOrProvince + { + get + { + return this.GetAttributeValue("address1_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address1_StateOrProvince"); + this.SetAttributeValue("address1_stateorprovince", value); + this.OnPropertyChanged("Address1_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] + public string Address1_Telephone1 + { + get + { + return this.GetAttributeValue("address1_telephone1"); + } + set + { + this.OnPropertyChanging("Address1_Telephone1"); + this.SetAttributeValue("address1_telephone1", value); + this.OnPropertyChanged("Address1_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] + public string Address1_Telephone2 + { + get + { + return this.GetAttributeValue("address1_telephone2"); + } + set + { + this.OnPropertyChanging("Address1_Telephone2"); + this.SetAttributeValue("address1_telephone2", value); + this.OnPropertyChanged("Address1_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] + public string Address1_Telephone3 + { + get + { + return this.GetAttributeValue("address1_telephone3"); + } + set + { + this.OnPropertyChanging("Address1_Telephone3"); + this.SetAttributeValue("address1_telephone3", value); + this.OnPropertyChanged("Address1_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] + public string Address1_UPSZone + { + get + { + return this.GetAttributeValue("address1_upszone"); + } + set + { + this.OnPropertyChanging("Address1_UPSZone"); + this.SetAttributeValue("address1_upszone", value); + this.OnPropertyChanged("Address1_UPSZone"); + } + } + + /// + /// 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 + { + get + { + return this.GetAttributeValue>("address1_utcoffset"); + } + set + { + this.OnPropertyChanging("Address1_UTCOffset"); + this.SetAttributeValue("address1_utcoffset", value); + this.OnPropertyChanged("Address1_UTCOffset"); + } + } + + /// + /// Unique identifier for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] + public System.Nullable Address2_AddressId + { + get + { + return this.GetAttributeValue>("address2_addressid"); + } + set + { + this.OnPropertyChanging("Address2_AddressId"); + this.SetAttributeValue("address2_addressid", value); + this.OnPropertyChanged("Address2_AddressId"); + } + } + + /// + /// Type of address for address 2. such as billing, shipping, or primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] + public virtual publisher_address2_addresstypecode? Address2_AddressTypeCode + { + get + { + return ((publisher_address2_addresstypecode?)(EntityOptionSetEnum.GetEnum(this, "address2_addresstypecode"))); + } + set + { + this.OnPropertyChanging("Address2_AddressTypeCode"); + this.SetAttributeValue("address2_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address2_AddressTypeCode"); + } + } + + /// + /// City name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] + public string Address2_City + { + get + { + return this.GetAttributeValue("address2_city"); + } + set + { + this.OnPropertyChanging("Address2_City"); + this.SetAttributeValue("address2_city", value); + this.OnPropertyChanged("Address2_City"); + } + } + + /// + /// Country/region name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] + public string Address2_Country + { + get + { + return this.GetAttributeValue("address2_country"); + } + set + { + this.OnPropertyChanging("Address2_Country"); + this.SetAttributeValue("address2_country", value); + this.OnPropertyChanged("Address2_Country"); + } + } + + /// + /// County name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] + public string Address2_County + { + get + { + return this.GetAttributeValue("address2_county"); + } + set + { + this.OnPropertyChanging("Address2_County"); + this.SetAttributeValue("address2_county", value); + this.OnPropertyChanged("Address2_County"); + } + } + + /// + /// Fax number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] + public string Address2_Fax + { + get + { + return this.GetAttributeValue("address2_fax"); + } + set + { + this.OnPropertyChanging("Address2_Fax"); + this.SetAttributeValue("address2_fax", value); + this.OnPropertyChanged("Address2_Fax"); + } + } + + /// + /// Latitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] + public System.Nullable Address2_Latitude + { + get + { + return this.GetAttributeValue>("address2_latitude"); + } + set + { + this.OnPropertyChanging("Address2_Latitude"); + this.SetAttributeValue("address2_latitude", value); + this.OnPropertyChanged("Address2_Latitude"); + } + } + + /// + /// First line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] + public string Address2_Line1 + { + get + { + return this.GetAttributeValue("address2_line1"); + } + set + { + this.OnPropertyChanging("Address2_Line1"); + this.SetAttributeValue("address2_line1", value); + this.OnPropertyChanged("Address2_Line1"); + } + } + + /// + /// Second line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] + public string Address2_Line2 + { + get + { + return this.GetAttributeValue("address2_line2"); + } + set + { + this.OnPropertyChanging("Address2_Line2"); + this.SetAttributeValue("address2_line2", value); + this.OnPropertyChanged("Address2_Line2"); + } + } + + /// + /// Third line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] + public string Address2_Line3 + { + get + { + return this.GetAttributeValue("address2_line3"); + } + set + { + this.OnPropertyChanging("Address2_Line3"); + this.SetAttributeValue("address2_line3", value); + this.OnPropertyChanged("Address2_Line3"); + } + } + + /// + /// Longitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] + public System.Nullable Address2_Longitude + { + get + { + return this.GetAttributeValue>("address2_longitude"); + } + set + { + this.OnPropertyChanging("Address2_Longitude"); + this.SetAttributeValue("address2_longitude", value); + this.OnPropertyChanged("Address2_Longitude"); + } + } + + /// + /// Name to enter for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] + public string Address2_Name + { + get + { + return this.GetAttributeValue("address2_name"); + } + set + { + this.OnPropertyChanging("Address2_Name"); + this.SetAttributeValue("address2_name", value); + this.OnPropertyChanged("Address2_Name"); + } + } + + /// + /// ZIP Code or postal code for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] + public string Address2_PostalCode + { + get + { + return this.GetAttributeValue("address2_postalcode"); + } + set + { + this.OnPropertyChanging("Address2_PostalCode"); + this.SetAttributeValue("address2_postalcode", value); + this.OnPropertyChanged("Address2_PostalCode"); + } + } + + /// + /// Post office box number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] + public string Address2_PostOfficeBox + { + get + { + return this.GetAttributeValue("address2_postofficebox"); + } + set + { + this.OnPropertyChanging("Address2_PostOfficeBox"); + this.SetAttributeValue("address2_postofficebox", value); + this.OnPropertyChanged("Address2_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public virtual publisher_address2_shippingmethodcode? Address2_ShippingMethodCode + { + get + { + return ((publisher_address2_shippingmethodcode?)(EntityOptionSetEnum.GetEnum(this, "address2_shippingmethodcode"))); + } + set + { + this.OnPropertyChanging("Address2_ShippingMethodCode"); + this.SetAttributeValue("address2_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address2_ShippingMethodCode"); + } + } + + /// + /// State or province for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] + public string Address2_StateOrProvince + { + get + { + return this.GetAttributeValue("address2_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address2_StateOrProvince"); + this.SetAttributeValue("address2_stateorprovince", value); + this.OnPropertyChanged("Address2_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] + public string Address2_Telephone1 + { + get + { + return this.GetAttributeValue("address2_telephone1"); + } + set + { + this.OnPropertyChanging("Address2_Telephone1"); + this.SetAttributeValue("address2_telephone1", value); + this.OnPropertyChanged("Address2_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] + public string Address2_Telephone2 + { + get + { + return this.GetAttributeValue("address2_telephone2"); + } + set + { + this.OnPropertyChanging("Address2_Telephone2"); + this.SetAttributeValue("address2_telephone2", value); + this.OnPropertyChanged("Address2_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] + public string Address2_Telephone3 + { + get + { + return this.GetAttributeValue("address2_telephone3"); + } + set + { + this.OnPropertyChanging("Address2_Telephone3"); + this.SetAttributeValue("address2_telephone3", value); + this.OnPropertyChanged("Address2_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] + public string Address2_UPSZone + { + get + { + return this.GetAttributeValue("address2_upszone"); + } + set + { + this.OnPropertyChanging("Address2_UPSZone"); + this.SetAttributeValue("address2_upszone", value); + this.OnPropertyChanged("Address2_UPSZone"); + } + } + + /// + /// 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 + { + get + { + return this.GetAttributeValue>("address2_utcoffset"); + } + set + { + this.OnPropertyChanging("Address2_UTCOffset"); + this.SetAttributeValue("address2_utcoffset", value); + this.OnPropertyChanged("Address2_UTCOffset"); + } + } + + /// + /// Unique identifier of the user who created the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the publisher was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Default option value prefix used for newly created options for solutions associated with this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationoptionvalueprefix")] + public System.Nullable CustomizationOptionValuePrefix + { + get + { + return this.GetAttributeValue>("customizationoptionvalueprefix"); + } + set + { + this.OnPropertyChanging("CustomizationOptionValuePrefix"); + this.SetAttributeValue("customizationoptionvalueprefix", value); + this.OnPropertyChanged("CustomizationOptionValuePrefix"); + } + } + + /// + /// Prefix used for new entities, attributes, and entity relationships for solutions associated with this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationprefix")] + public string CustomizationPrefix + { + get + { + return this.GetAttributeValue("customizationprefix"); + } + set + { + this.OnPropertyChanging("CustomizationPrefix"); + this.SetAttributeValue("customizationprefix", value); + this.OnPropertyChanged("CustomizationPrefix"); + } + } + + /// + /// Description of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Email address for the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EMailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EMailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EMailAddress"); + } + } + + /// + /// Shows the default image for the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] + public byte[] EntityImage + { + get + { + return this.GetAttributeValue("entityimage"); + } + set + { + this.OnPropertyChanging("EntityImage"); + this.SetAttributeValue("entityimage", value); + this.OnPropertyChanged("EntityImage"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] + public System.Nullable EntityImage_Timestamp + { + get + { + return this.GetAttributeValue>("entityimage_timestamp"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] + public string EntityImage_URL + { + get + { + return this.GetAttributeValue("entityimage_url"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// User display name for this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlyname")] + public string FriendlyName + { + get + { + return this.GetAttributeValue("friendlyname"); + } + set + { + this.OnPropertyChanging("FriendlyName"); + this.SetAttributeValue("friendlyname", value); + this.OnPropertyChanged("FriendlyName"); + } + } + + /// + /// Indicates whether the publisher was created as part of a managed solution installation. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isreadonly")] + public System.Nullable IsReadonly + { + get + { + return this.GetAttributeValue>("isreadonly"); + } + } + + /// + /// Unique identifier of the user who last modified the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the publisher was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Default locale of the publisher in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointpublisherdefaultlocale")] + public string PinpointPublisherDefaultLocale + { + get + { + return this.GetAttributeValue("pinpointpublisherdefaultlocale"); + } + } + + /// + /// Identifier of the publisher in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointpublisherid")] + public System.Nullable PinpointPublisherId + { + get + { + return this.GetAttributeValue>("pinpointpublisherid"); + } + } + + /// + /// Unique identifier of the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] + public System.Nullable PublisherId + { + get + { + return this.GetAttributeValue>("publisherid"); + } + set + { + this.OnPropertyChanging("PublisherId"); + this.SetAttributeValue("publisherid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("PublisherId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.PublisherId = value; + } + } + + /// + /// URL for the supporting website of this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("supportingwebsiteurl")] + public string SupportingWebsiteUrl + { + get + { + return this.GetAttributeValue("supportingwebsiteurl"); + } + set + { + this.OnPropertyChanging("SupportingWebsiteUrl"); + this.SetAttributeValue("supportingwebsiteurl", value); + this.OnPropertyChanged("SupportingWebsiteUrl"); + } + } + + /// + /// The unique name of this publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] + public string UniqueName + { + get + { + return this.GetAttributeValue("uniquename"); + } + set + { + this.OnPropertyChanging("UniqueName"); + this.SetAttributeValue("uniquename", value); + this.OnPropertyChanged("UniqueName"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N publisher_solution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("publisher_solution")] + public System.Collections.Generic.IEnumerable publisher_solution + { + get + { + return this.GetRelatedEntities("publisher_solution", null); + } + set + { + this.OnPropertyChanging("publisher_solution"); + this.SetRelatedEntities("publisher_solution", null, value); + this.OnPropertyChanged("publisher_solution"); + } + } + + /// + /// N:1 lk_publisher_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_createdby")] + public PPDS.Dataverse.Generated.SystemUser lk_publisher_createdby + { + get + { + return this.GetRelatedEntity("lk_publisher_createdby", null); + } + } + + /// + /// N:1 lk_publisher_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_modifiedby")] + public PPDS.Dataverse.Generated.SystemUser lk_publisher_modifiedby + { + get + { + return this.GetRelatedEntity("lk_publisher_modifiedby", null); + } + } + + /// + /// N:1 lk_publisherbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_createdonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_publisherbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_publisherbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_publisherbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_modifiedonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_publisherbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_publisherbase_modifiedonbehalfby", null); + } + } + } +} diff --git a/src/PPDS.Dataverse/Generated/Entities/sdkmessage.cs b/src/PPDS.Dataverse/Generated/Entities/sdkmessage.cs new file mode 100644 index 000000000..db99377bc --- /dev/null +++ b/src/PPDS.Dataverse/Generated/Entities/sdkmessage.cs @@ -0,0 +1,629 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// Message that is supported by the SDK. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessage")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public partial class SdkMessage : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Available fields, a the time of codegen, for the sdkmessage entity + /// + public partial class Fields + { + public const string AutoTransact = "autotransact"; + public const string Availability = "availability"; + public const string CategoryName = "categoryname"; + public const string ComponentState = "componentstate"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CustomizationLevel = "customizationlevel"; + public const string ExecutePrivilegeName = "executeprivilegename"; + public const string Expand = "expand"; + public const string IntroducedVersion = "introducedversion"; + public const string IsActive = "isactive"; + public const string IsManaged = "ismanaged"; + public const string IsPrivate = "isprivate"; + public const string IsReadOnly = "isreadonly"; + public const string IsValidForExecuteAsync = "isvalidforexecuteasync"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OrganizationId = "organizationid"; + public const string OverwriteTime = "overwritetime"; + public const string SdkMessageId = "sdkmessageid"; + public const string Id = "sdkmessageid"; + public const string SdkMessageIdUnique = "sdkmessageidunique"; + public const string SolutionId = "solutionid"; + public const string Template = "template"; + public const string ThrottleSettings = "throttlesettings"; + public const string VersionNumber = "versionnumber"; + public const string WorkflowSdkStepEnabled = "workflowsdkstepenabled"; + public const string sdkmessageid_sdkmessagefilter = "sdkmessageid_sdkmessagefilter"; + public const string sdkmessageid_sdkmessageprocessingstep = "sdkmessageid_sdkmessageprocessingstep"; + public const string createdby_sdkmessage = "createdby_sdkmessage"; + public const string lk_sdkmessage_createdonbehalfby = "lk_sdkmessage_createdonbehalfby"; + public const string lk_sdkmessage_modifiedonbehalfby = "lk_sdkmessage_modifiedonbehalfby"; + public const string modifiedby_sdkmessage = "modifiedby_sdkmessage"; + } + + /// + /// Default Constructor. + /// + public SdkMessage() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessage"; + + public const string EntityLogicalCollectionName = "sdkmessages"; + + public const string EntitySetName = "sdkmessages"; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Information about whether the SDK message is automatically transacted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("autotransact")] + public System.Nullable AutoTransact + { + get + { + return this.GetAttributeValue>("autotransact"); + } + set + { + this.OnPropertyChanging("AutoTransact"); + this.SetAttributeValue("autotransact", value); + this.OnPropertyChanged("AutoTransact"); + } + } + + /// + /// Identifies where a method will be exposed. 0 - Server, 1 - Client, 2 - both. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("availability")] + public System.Nullable Availability + { + get + { + return this.GetAttributeValue>("availability"); + } + set + { + this.OnPropertyChanging("Availability"); + this.SetAttributeValue("availability", value); + this.OnPropertyChanged("Availability"); + } + } + + /// + /// If this is a categorized method, this is the name, otherwise None. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("categoryname")] + public string CategoryName + { + get + { + return this.GetAttributeValue("categoryname"); + } + set + { + this.OnPropertyChanging("CategoryName"); + this.SetAttributeValue("categoryname", value); + this.OnPropertyChanged("CategoryName"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public virtual componentstate? ComponentState + { + get + { + return ((componentstate?)(EntityOptionSetEnum.GetEnum(this, "componentstate"))); + } + } + + /// + /// Unique identifier of the user who created the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Name of the privilege that allows execution of the SDK message + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executeprivilegename")] + public string ExecutePrivilegeName + { + get + { + return this.GetAttributeValue("executeprivilegename"); + } + set + { + this.OnPropertyChanging("ExecutePrivilegeName"); + this.SetAttributeValue("executeprivilegename", value); + this.OnPropertyChanged("ExecutePrivilegeName"); + } + } + + /// + /// Indicates whether the SDK message should have its requests expanded per primary entity defined in its filters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expand")] + public System.Nullable Expand + { + get + { + return this.GetAttributeValue>("expand"); + } + set + { + this.OnPropertyChanging("Expand"); + this.SetAttributeValue("expand", value); + this.OnPropertyChanged("Expand"); + } + } + + /// + /// Version in which the component is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information about whether the SDK message is active. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isactive")] + public System.Nullable IsActive + { + get + { + return this.GetAttributeValue>("isactive"); + } + set + { + this.OnPropertyChanging("IsActive"); + this.SetAttributeValue("isactive", value); + this.OnPropertyChanged("IsActive"); + } + } + + /// + /// Information that specifies whether this component is managed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Indicates whether the SDK message is private. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isprivate")] + public System.Nullable IsPrivate + { + get + { + return this.GetAttributeValue>("isprivate"); + } + set + { + this.OnPropertyChanging("IsPrivate"); + this.SetAttributeValue("isprivate", value); + this.OnPropertyChanged("IsPrivate"); + } + } + + /// + /// Identifies whether an SDK message will be ReadOnly or Read Write. false - ReadWrite, true - ReadOnly . + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isreadonly")] + public System.Nullable IsReadOnly + { + get + { + return this.GetAttributeValue>("isreadonly"); + } + set + { + this.OnPropertyChanging("IsReadOnly"); + this.SetAttributeValue("isreadonly", value); + this.OnPropertyChanged("IsReadOnly"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvalidforexecuteasync")] + public System.Nullable IsValidForExecuteAsync + { + get + { + return this.GetAttributeValue>("isvalidforexecuteasync"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the SDK message entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public System.Nullable SdkMessageId + { + get + { + return this.GetAttributeValue>("sdkmessageid"); + } + set + { + this.OnPropertyChanging("SdkMessageId"); + this.SetAttributeValue("sdkmessageid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageId = value; + } + } + + /// + /// Unique identifier of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageidunique")] + public System.Nullable SdkMessageIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Indicates whether the SDK message is a template. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("template")] + public System.Nullable Template + { + get + { + return this.GetAttributeValue>("template"); + } + set + { + this.OnPropertyChanging("Template"); + this.SetAttributeValue("template", value); + this.OnPropertyChanged("Template"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("throttlesettings")] + public string ThrottleSettings + { + get + { + return this.GetAttributeValue("throttlesettings"); + } + } + + /// + /// Number that identifies a specific revision of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Whether or not the SDK message can be called from a workflow. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowsdkstepenabled")] + public System.Nullable WorkflowSdkStepEnabled + { + get + { + return this.GetAttributeValue>("workflowsdkstepenabled"); + } + } + + /// + /// 1:N sdkmessageid_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessagefilter")] + public System.Collections.Generic.IEnumerable sdkmessageid_sdkmessagefilter + { + get + { + return this.GetRelatedEntities("sdkmessageid_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_sdkmessagefilter"); + this.SetRelatedEntities("sdkmessageid_sdkmessagefilter", null, value); + this.OnPropertyChanged("sdkmessageid_sdkmessagefilter"); + } + } + + /// + /// 1:N sdkmessageid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable sdkmessageid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("sdkmessageid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_sdkmessageprocessingstep"); + this.SetRelatedEntities("sdkmessageid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessageid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 createdby_sdkmessage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessage")] + public PPDS.Dataverse.Generated.SystemUser createdby_sdkmessage + { + get + { + return this.GetRelatedEntity("createdby_sdkmessage", null); + } + } + + /// + /// N:1 lk_sdkmessage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_createdonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_sdkmessage_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessage_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_modifiedonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_sdkmessage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessage_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessage")] + public PPDS.Dataverse.Generated.SystemUser modifiedby_sdkmessage + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessage", null); + } + } + } +} diff --git a/src/PPDS.Dataverse/Generated/Entities/sdkmessagefilter.cs b/src/PPDS.Dataverse/Generated/Entities/sdkmessagefilter.cs new file mode 100644 index 000000000..c2958e725 --- /dev/null +++ b/src/PPDS.Dataverse/Generated/Entities/sdkmessagefilter.cs @@ -0,0 +1,545 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// Filter that defines which SDK messages are valid for each type of entity. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessagefilter")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public partial class SdkMessageFilter : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Available fields, a the time of codegen, for the sdkmessagefilter entity + /// + public partial class Fields + { + public const string Availability = "availability"; + public const string ComponentState = "componentstate"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CustomizationLevel = "customizationlevel"; + public const string IntroducedVersion = "introducedversion"; + public const string IsCustomProcessingStepAllowed = "iscustomprocessingstepallowed"; + public const string IsManaged = "ismanaged"; + public const string IsVisible = "isvisible"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OrganizationId = "organizationid"; + public const string OverwriteTime = "overwritetime"; + public const string PrimaryObjectTypeCode = "primaryobjecttypecode"; + public const string RestrictionLevel = "restrictionlevel"; + public const string SdkMessageFilterId = "sdkmessagefilterid"; + public const string Id = "sdkmessagefilterid"; + public const string SdkMessageFilterIdUnique = "sdkmessagefilteridunique"; + public const string SdkMessageId = "sdkmessageid"; + public const string SecondaryObjectTypeCode = "secondaryobjecttypecode"; + public const string SolutionId = "solutionid"; + public const string VersionNumber = "versionnumber"; + public const string WorkflowSdkStepEnabled = "workflowsdkstepenabled"; + public const string sdkmessagefilterid_sdkmessageprocessingstep = "sdkmessagefilterid_sdkmessageprocessingstep"; + public const string createdby_sdkmessagefilter = "createdby_sdkmessagefilter"; + public const string lk_sdkmessagefilter_createdonbehalfby = "lk_sdkmessagefilter_createdonbehalfby"; + public const string lk_sdkmessagefilter_modifiedonbehalfby = "lk_sdkmessagefilter_modifiedonbehalfby"; + public const string modifiedby_sdkmessagefilter = "modifiedby_sdkmessagefilter"; + public const string sdkmessageid_sdkmessagefilter = "sdkmessageid_sdkmessagefilter"; + } + + /// + /// Default Constructor. + /// + public SdkMessageFilter() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessagefilter"; + + public const string EntityLogicalCollectionName = "sdkmessagefilters"; + + public const string EntitySetName = "sdkmessagefilters"; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Identifies where a method will be exposed. 0 - Server, 1 - Client, 2 - both. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("availability")] + public System.Nullable Availability + { + get + { + return this.GetAttributeValue>("availability"); + } + set + { + this.OnPropertyChanging("Availability"); + this.SetAttributeValue("availability", value); + this.OnPropertyChanged("Availability"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public virtual componentstate? ComponentState + { + get + { + return ((componentstate?)(EntityOptionSetEnum.GetEnum(this, "componentstate"))); + } + } + + /// + /// Unique identifier of the user who created the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message filter was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessagefilter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Version in which the component is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Indicates whether a custom SDK message processing step is allowed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomprocessingstepallowed")] + public System.Nullable IsCustomProcessingStepAllowed + { + get + { + return this.GetAttributeValue>("iscustomprocessingstepallowed"); + } + set + { + this.OnPropertyChanging("IsCustomProcessingStepAllowed"); + this.SetAttributeValue("iscustomprocessingstepallowed", value); + this.OnPropertyChanged("IsCustomProcessingStepAllowed"); + } + } + + /// + /// Information that specifies whether this component is managed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Indicates whether the filter should be visible. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvisible")] + public System.Nullable IsVisible + { + get + { + return this.GetAttributeValue>("isvisible"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message filter was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessagefilter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message filter is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Type of entity with which the SDK message filter is primarily associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryobjecttypecode")] + public string PrimaryObjectTypeCode + { + get + { + return this.GetAttributeValue("primaryobjecttypecode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("restrictionlevel")] + public System.Nullable RestrictionLevel + { + get + { + return this.GetAttributeValue>("restrictionlevel"); + } + set + { + this.OnPropertyChanging("RestrictionLevel"); + this.SetAttributeValue("restrictionlevel", value); + this.OnPropertyChanged("RestrictionLevel"); + } + } + + /// + /// Unique identifier of the SDK message filter entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] + public System.Nullable SdkMessageFilterId + { + get + { + return this.GetAttributeValue>("sdkmessagefilterid"); + } + set + { + this.OnPropertyChanging("SdkMessageFilterId"); + this.SetAttributeValue("sdkmessagefilterid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageFilterId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageFilterId = value; + } + } + + /// + /// Unique identifier of the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilteridunique")] + public System.Nullable SdkMessageFilterIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessagefilteridunique"); + } + } + + /// + /// Unique identifier of the related SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageId + { + get + { + return this.GetAttributeValue("sdkmessageid"); + } + set + { + this.OnPropertyChanging("SdkMessageId"); + this.SetAttributeValue("sdkmessageid", value); + this.OnPropertyChanged("SdkMessageId"); + } + } + + /// + /// Type of entity with which the SDK message filter is secondarily associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("secondaryobjecttypecode")] + public string SecondaryObjectTypeCode + { + get + { + return this.GetAttributeValue("secondaryobjecttypecode"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Whether or not the SDK message can be called from a workflow. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowsdkstepenabled")] + public System.Nullable WorkflowSdkStepEnabled + { + get + { + return this.GetAttributeValue>("workflowsdkstepenabled"); + } + } + + /// + /// 1:N sdkmessagefilterid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessagefilterid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable sdkmessagefilterid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("sdkmessagefilterid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessagefilterid_sdkmessageprocessingstep"); + this.SetRelatedEntities("sdkmessagefilterid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessagefilterid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 createdby_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagefilter")] + public PPDS.Dataverse.Generated.SystemUser createdby_sdkmessagefilter + { + get + { + return this.GetRelatedEntity("createdby_sdkmessagefilter", null); + } + } + + /// + /// N:1 lk_sdkmessagefilter_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_createdonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_sdkmessagefilter_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagefilter_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessagefilter_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_modifiedonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_sdkmessagefilter_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessagefilter_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagefilter")] + public PPDS.Dataverse.Generated.SystemUser modifiedby_sdkmessagefilter + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessagefilter", null); + } + } + + /// + /// N:1 sdkmessageid_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessagefilter")] + public PPDS.Dataverse.Generated.SdkMessage sdkmessageid_sdkmessagefilter + { + get + { + return this.GetRelatedEntity("sdkmessageid_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_sdkmessagefilter"); + this.SetRelatedEntity("sdkmessageid_sdkmessagefilter", null, value); + this.OnPropertyChanged("sdkmessageid_sdkmessagefilter"); + } + } + } +} diff --git a/src/PPDS.Dataverse/Generated/Entities/sdkmessageprocessingstep.cs b/src/PPDS.Dataverse/Generated/Entities/sdkmessageprocessingstep.cs new file mode 100644 index 000000000..9fc50028f --- /dev/null +++ b/src/PPDS.Dataverse/Generated/Entities/sdkmessageprocessingstep.cs @@ -0,0 +1,1159 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// Identifies if a plug-in should be executed from a parent pipeline, a child pipeline, or both. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum sdkmessageprocessingstep_invocationsource + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Internal = -1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Parent = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Child = 1, + } + + /// + /// Run-time mode of execution, for example, synchronous or asynchronous. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum sdkmessageprocessingstep_mode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Synchronous = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Asynchronous = 1, + } + + /// + /// Stage in the execution pipeline that the SDK message processing step is in. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum sdkmessageprocessingstep_stage + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + InitialPreoperation_Forinternaluseonly = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Prevalidation = 10, + + [System.Runtime.Serialization.EnumMemberAttribute()] + InternalPreoperationBeforeExternalPlugins_Forinternaluseonly = 15, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Preoperation = 20, + + [System.Runtime.Serialization.EnumMemberAttribute()] + InternalPreoperationAfterExternalPlugins_Forinternaluseonly = 25, + + [System.Runtime.Serialization.EnumMemberAttribute()] + MainOperation_Forinternaluseonly = 30, + + [System.Runtime.Serialization.EnumMemberAttribute()] + InternalPostoperationBeforeExternalPlugins_Forinternaluseonly = 35, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Postoperation = 40, + + [System.Runtime.Serialization.EnumMemberAttribute()] + InternalPostoperationAfterExternalPlugins_Forinternaluseonly = 45, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Postoperation_Deprecated = 50, + + [System.Runtime.Serialization.EnumMemberAttribute()] + FinalPostoperation_Forinternaluseonly = 55, + + [System.Runtime.Serialization.EnumMemberAttribute()] + PreCommitstagefiredbeforetransactioncommit_Forinternaluseonly = 80, + + [System.Runtime.Serialization.EnumMemberAttribute()] + PostCommitstagefiredaftertransactioncommit_Forinternaluseonly = 90, + } + + /// + /// Status of the SDK message processing step. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum sdkmessageprocessingstep_statecode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Enabled = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Disabled = 1, + } + + /// + /// Reason for the status of the SDK message processing step. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum sdkmessageprocessingstep_statuscode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Enabled = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Disabled = 2, + } + + /// + /// Deployment that the SDK message processing step should be executed on; server, client, or both. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum sdkmessageprocessingstep_supporteddeployment + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + ServerOnly = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + MicrosoftDynamics365ClientforOutlookOnly = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Both = 2, + } + + /// + /// Stage in the execution pipeline that a plug-in is to execute. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageprocessingstep")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public partial class SdkMessageProcessingStep : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Available fields, a the time of codegen, for the sdkmessageprocessingstep entity + /// + public partial class Fields + { + public const string AsyncAutoDelete = "asyncautodelete"; + public const string CanBeBypassed = "canbebypassed"; + public const string CanUseReadOnlyConnection = "canusereadonlyconnection"; + public const string Category = "category"; + public const string ComponentState = "componentstate"; + public const string Configuration = "configuration"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CustomizationLevel = "customizationlevel"; + public const string Description = "description"; + public const string EnablePluginProfiler = "enablepluginprofiler"; + public const string EventExpander = "eventexpander"; + public const string EventHandler = "eventhandler"; + public const string FilteringAttributes = "filteringattributes"; + public const string FxExpressionId = "fxexpressionid"; + public const string ImpersonatingUserId = "impersonatinguserid"; + public const string IntroducedVersion = "introducedversion"; + public const string InvocationSource = "invocationsource"; + public const string IsCustomizable = "iscustomizable"; + public const string IsHidden = "ishidden"; + public const string IsManaged = "ismanaged"; + public const string Mode = "mode"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OrganizationId = "organizationid"; + public const string OverwriteTime = "overwritetime"; + public const string PluginTypeId = "plugintypeid"; + public const string PowerfxRuleId = "powerfxruleid"; + public const string Rank = "rank"; + public const string RuntimeIntegrationProperties = "runtimeintegrationproperties"; + public const string SdkMessageFilterId = "sdkmessagefilterid"; + public const string SdkMessageId = "sdkmessageid"; + public const string SdkMessageProcessingStepId = "sdkmessageprocessingstepid"; + public const string Id = "sdkmessageprocessingstepid"; + public const string SdkMessageProcessingStepIdUnique = "sdkmessageprocessingstepidunique"; + public const string SdkMessageProcessingStepSecureConfigId = "sdkmessageprocessingstepsecureconfigid"; + public const string SolutionId = "solutionid"; + public const string Stage = "stage"; + public const string StateCode = "statecode"; + public const string StatusCode = "statuscode"; + public const string SupportedDeployment = "supporteddeployment"; + public const string VersionNumber = "versionnumber"; + public const string SdkMessageProcessingStep_AsyncOperations = "SdkMessageProcessingStep_AsyncOperations"; + public const string sdkmessageprocessingstepid_sdkmessageprocessingstepimage = "sdkmessageprocessingstepid_sdkmessageprocessingstepimage"; + public const string createdby_sdkmessageprocessingstep = "createdby_sdkmessageprocessingstep"; + public const string impersonatinguserid_sdkmessageprocessingstep = "impersonatinguserid_sdkmessageprocessingstep"; + public const string lk_sdkmessageprocessingstep_createdonbehalfby = "lk_sdkmessageprocessingstep_createdonbehalfby"; + public const string lk_sdkmessageprocessingstep_modifiedonbehalfby = "lk_sdkmessageprocessingstep_modifiedonbehalfby"; + public const string modifiedby_sdkmessageprocessingstep = "modifiedby_sdkmessageprocessingstep"; + public const string plugintype_sdkmessageprocessingstep = "plugintype_sdkmessageprocessingstep"; + public const string plugintypeid_sdkmessageprocessingstep = "plugintypeid_sdkmessageprocessingstep"; + public const string sdkmessagefilterid_sdkmessageprocessingstep = "sdkmessagefilterid_sdkmessageprocessingstep"; + public const string sdkmessageid_sdkmessageprocessingstep = "sdkmessageid_sdkmessageprocessingstep"; + } + + /// + /// Default Constructor. + /// + public SdkMessageProcessingStep() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessageprocessingstep"; + + public const string EntityLogicalCollectionName = "sdkmessageprocessingsteps"; + + public const string EntitySetName = "sdkmessageprocessingsteps"; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Indicates whether the asynchronous system job is automatically deleted on completion. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncautodelete")] + public System.Nullable AsyncAutoDelete + { + get + { + return this.GetAttributeValue>("asyncautodelete"); + } + set + { + this.OnPropertyChanging("AsyncAutoDelete"); + this.SetAttributeValue("asyncautodelete", value); + this.OnPropertyChanged("AsyncAutoDelete"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbebypassed")] + public System.Nullable CanBeBypassed + { + get + { + return this.GetAttributeValue>("canbebypassed"); + } + set + { + this.OnPropertyChanging("CanBeBypassed"); + this.SetAttributeValue("canbebypassed", value); + this.OnPropertyChanged("CanBeBypassed"); + } + } + + /// + /// Identifies whether a SDK Message Processing Step type will be ReadOnly or Read Write. false - ReadWrite, true - ReadOnly + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canusereadonlyconnection")] + public System.Nullable CanUseReadOnlyConnection + { + get + { + return this.GetAttributeValue>("canusereadonlyconnection"); + } + set + { + this.OnPropertyChanging("CanUseReadOnlyConnection"); + this.SetAttributeValue("canusereadonlyconnection", value); + this.OnPropertyChanged("CanUseReadOnlyConnection"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public virtual componentstate? ComponentState + { + get + { + return ((componentstate?)(EntityOptionSetEnum.GetEnum(this, "componentstate"))); + } + } + + /// + /// Step-specific configuration for the plug-in type. Passed to the plug-in constructor at run time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("configuration")] + public string Configuration + { + get + { + return this.GetAttributeValue("configuration"); + } + set + { + this.OnPropertyChanging("Configuration"); + this.SetAttributeValue("configuration", value); + this.OnPropertyChanged("Configuration"); + } + } + + /// + /// Unique identifier of the user who created the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message processing step was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessageprocessingstep. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Description of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// EnablePluginProfiler + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enablepluginprofiler")] + public System.Nullable EnablePluginProfiler + { + get + { + return this.GetAttributeValue>("enablepluginprofiler"); + } + set + { + this.OnPropertyChanging("EnablePluginProfiler"); + this.SetAttributeValue("enablepluginprofiler", value); + this.OnPropertyChanged("EnablePluginProfiler"); + } + } + + /// + /// Configuration for sending pipeline events to the Event Expander service. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("eventexpander")] + public string EventExpander + { + get + { + return this.GetAttributeValue("eventexpander"); + } + set + { + this.OnPropertyChanging("EventExpander"); + this.SetAttributeValue("eventexpander", value); + this.OnPropertyChanged("EventExpander"); + } + } + + /// + /// Unique identifier of the associated event handler. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("eventhandler")] + public Microsoft.Xrm.Sdk.EntityReference EventHandler + { + get + { + return this.GetAttributeValue("eventhandler"); + } + set + { + this.OnPropertyChanging("EventHandler"); + this.SetAttributeValue("eventhandler", value); + this.OnPropertyChanged("EventHandler"); + } + } + + /// + /// Comma-separated list of attributes. If at least one of these attributes is modified, the plug-in should execute. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("filteringattributes")] + public string FilteringAttributes + { + get + { + return this.GetAttributeValue("filteringattributes"); + } + set + { + this.OnPropertyChanging("FilteringAttributes"); + this.SetAttributeValue("filteringattributes", value); + this.OnPropertyChanged("FilteringAttributes"); + } + } + + /// + /// Unique identifier for fxexpression associated with SdkMessageProcessingStep. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fxexpressionid")] + public Microsoft.Xrm.Sdk.EntityReference FxExpressionId + { + get + { + return this.GetAttributeValue("fxexpressionid"); + } + set + { + this.OnPropertyChanging("FxExpressionId"); + this.SetAttributeValue("fxexpressionid", value); + this.OnPropertyChanged("FxExpressionId"); + } + } + + /// + /// Unique identifier of the user to impersonate context when step is executed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("impersonatinguserid")] + public Microsoft.Xrm.Sdk.EntityReference ImpersonatingUserId + { + get + { + return this.GetAttributeValue("impersonatinguserid"); + } + set + { + this.OnPropertyChanging("ImpersonatingUserId"); + this.SetAttributeValue("impersonatinguserid", value); + this.OnPropertyChanged("ImpersonatingUserId"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Identifies if a plug-in should be executed from a parent pipeline, a child pipeline, or both. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invocationsource")] + public virtual sdkmessageprocessingstep_invocationsource? InvocationSource + { + get + { + return ((sdkmessageprocessingstep_invocationsource?)(EntityOptionSetEnum.GetEnum(this, "invocationsource"))); + } + set + { + this.OnPropertyChanging("InvocationSource"); + this.SetAttributeValue("invocationsource", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("InvocationSource"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + /// + /// Information that specifies whether this component should be hidden. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ishidden")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsHidden + { + get + { + return this.GetAttributeValue("ishidden"); + } + set + { + this.OnPropertyChanging("IsHidden"); + this.SetAttributeValue("ishidden", value); + this.OnPropertyChanged("IsHidden"); + } + } + + /// + /// Information that specifies whether this component is managed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Run-time mode of execution, for example, synchronous or asynchronous. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mode")] + public virtual sdkmessageprocessingstep_mode? Mode + { + get + { + return ((sdkmessageprocessingstep_mode?)(EntityOptionSetEnum.GetEnum(this, "mode"))); + } + set + { + this.OnPropertyChanging("Mode"); + this.SetAttributeValue("mode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Mode"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message processing step was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessageprocessingstep. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of SdkMessage processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message processing step is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Unique identifier of the plug-in type associated with the step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + [System.ObsoleteAttribute()] + public Microsoft.Xrm.Sdk.EntityReference PluginTypeId + { + get + { + return this.GetAttributeValue("plugintypeid"); + } + set + { + this.OnPropertyChanging("PluginTypeId"); + this.SetAttributeValue("plugintypeid", value); + this.OnPropertyChanged("PluginTypeId"); + } + } + + /// + /// Unique identifier for powerfxrule associated with SdkMessageProcessingStep. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("powerfxruleid")] + public Microsoft.Xrm.Sdk.EntityReference PowerfxRuleId + { + get + { + return this.GetAttributeValue("powerfxruleid"); + } + set + { + this.OnPropertyChanging("PowerfxRuleId"); + this.SetAttributeValue("powerfxruleid", value); + this.OnPropertyChanged("PowerfxRuleId"); + } + } + + /// + /// Processing order within the stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rank")] + public System.Nullable Rank + { + get + { + return this.GetAttributeValue>("rank"); + } + set + { + this.OnPropertyChanging("Rank"); + this.SetAttributeValue("rank", value); + this.OnPropertyChanged("Rank"); + } + } + + /// + /// For internal use only. Holds miscellaneous properties related to runtime integration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("runtimeintegrationproperties")] + public string RuntimeIntegrationProperties + { + get + { + return this.GetAttributeValue("runtimeintegrationproperties"); + } + set + { + this.OnPropertyChanging("RuntimeIntegrationProperties"); + this.SetAttributeValue("runtimeintegrationproperties", value); + this.OnPropertyChanged("RuntimeIntegrationProperties"); + } + } + + /// + /// Unique identifier of the SDK message filter. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageFilterId + { + get + { + return this.GetAttributeValue("sdkmessagefilterid"); + } + set + { + this.OnPropertyChanging("SdkMessageFilterId"); + this.SetAttributeValue("sdkmessagefilterid", value); + this.OnPropertyChanged("SdkMessageFilterId"); + } + } + + /// + /// Unique identifier of the SDK message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageId + { + get + { + return this.GetAttributeValue("sdkmessageid"); + } + set + { + this.OnPropertyChanging("SdkMessageId"); + this.SetAttributeValue("sdkmessageid", value); + this.OnPropertyChanged("SdkMessageId"); + } + } + + /// + /// Unique identifier of the SDK message processing step entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] + public System.Nullable SdkMessageProcessingStepId + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepId"); + this.SetAttributeValue("sdkmessageprocessingstepid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageProcessingStepId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageProcessingStepId = value; + } + } + + /// + /// Unique identifier of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepidunique")] + public System.Nullable SdkMessageProcessingStepIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepidunique"); + } + } + + /// + /// Unique identifier of the Sdk message processing step secure configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepsecureconfigid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageProcessingStepSecureConfigId + { + get + { + return this.GetAttributeValue("sdkmessageprocessingstepsecureconfigid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepSecureConfigId"); + this.SetAttributeValue("sdkmessageprocessingstepsecureconfigid", value); + this.OnPropertyChanged("SdkMessageProcessingStepSecureConfigId"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Stage in the execution pipeline that the SDK message processing step is in. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stage")] + public virtual sdkmessageprocessingstep_stage? Stage + { + get + { + return ((sdkmessageprocessingstep_stage?)(EntityOptionSetEnum.GetEnum(this, "stage"))); + } + set + { + this.OnPropertyChanging("Stage"); + this.SetAttributeValue("stage", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Stage"); + } + } + + /// + /// Status of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public virtual sdkmessageprocessingstep_statecode? StateCode + { + get + { + return ((sdkmessageprocessingstep_statecode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); + } + set + { + this.OnPropertyChanging("StateCode"); + this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("StateCode"); + } + } + + /// + /// Reason for the status of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual sdkmessageprocessingstep_statuscode? StatusCode + { + get + { + return ((sdkmessageprocessingstep_statuscode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Deployment that the SDK message processing step should be executed on; server, client, or both. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("supporteddeployment")] + public virtual sdkmessageprocessingstep_supporteddeployment? SupportedDeployment + { + get + { + return ((sdkmessageprocessingstep_supporteddeployment?)(EntityOptionSetEnum.GetEnum(this, "supporteddeployment"))); + } + set + { + this.OnPropertyChanging("SupportedDeployment"); + this.SetAttributeValue("supporteddeployment", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("SupportedDeployment"); + } + } + + /// + /// Number that identifies a specific revision of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N SdkMessageProcessingStep_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SdkMessageProcessingStep_AsyncOperations")] + public System.Collections.Generic.IEnumerable SdkMessageProcessingStep_AsyncOperations + { + get + { + return this.GetRelatedEntities("SdkMessageProcessingStep_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStep_AsyncOperations"); + this.SetRelatedEntities("SdkMessageProcessingStep_AsyncOperations", null, value); + this.OnPropertyChanged("SdkMessageProcessingStep_AsyncOperations"); + } + } + + /// + /// 1:N sdkmessageprocessingstepid_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageprocessingstepid_sdkmessageprocessingstepimage")] + public System.Collections.Generic.IEnumerable sdkmessageprocessingstepid_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntities("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("sdkmessageprocessingstepid_sdkmessageprocessingstepimage"); + this.SetRelatedEntities("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("sdkmessageprocessingstepid_sdkmessageprocessingstepimage"); + } + } + + /// + /// N:1 createdby_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstep")] + public PPDS.Dataverse.Generated.SystemUser createdby_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("createdby_sdkmessageprocessingstep", null); + } + } + + /// + /// N:1 impersonatinguserid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("impersonatinguserid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("impersonatinguserid_sdkmessageprocessingstep")] + public PPDS.Dataverse.Generated.SystemUser impersonatinguserid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("impersonatinguserid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("impersonatinguserid_sdkmessageprocessingstep"); + this.SetRelatedEntity("impersonatinguserid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("impersonatinguserid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstep_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_createdonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_sdkmessageprocessingstep_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstep_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstep_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_modifiedonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_sdkmessageprocessingstep_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstep_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstep")] + public PPDS.Dataverse.Generated.SystemUser modifiedby_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessageprocessingstep", null); + } + } + + /// + /// N:1 plugintype_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("eventhandler")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_sdkmessageprocessingstep")] + public PPDS.Dataverse.Generated.PluginType plugintype_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("plugintype_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("plugintype_sdkmessageprocessingstep"); + this.SetRelatedEntity("plugintype_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("plugintype_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 plugintypeid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintypeid_sdkmessageprocessingstep")] + public PPDS.Dataverse.Generated.PluginType plugintypeid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("plugintypeid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("plugintypeid_sdkmessageprocessingstep"); + this.SetRelatedEntity("plugintypeid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("plugintypeid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 sdkmessagefilterid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessagefilterid_sdkmessageprocessingstep")] + public PPDS.Dataverse.Generated.SdkMessageFilter sdkmessagefilterid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("sdkmessagefilterid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessagefilterid_sdkmessageprocessingstep"); + this.SetRelatedEntity("sdkmessagefilterid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessagefilterid_sdkmessageprocessingstep"); + } + } + + /// + /// N:1 sdkmessageid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessageprocessingstep")] + public PPDS.Dataverse.Generated.SdkMessage sdkmessageid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntity("sdkmessageid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("sdkmessageid_sdkmessageprocessingstep"); + this.SetRelatedEntity("sdkmessageid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("sdkmessageid_sdkmessageprocessingstep"); + } + } + } +} diff --git a/src/PPDS.Dataverse/Generated/Entities/sdkmessageprocessingstepimage.cs b/src/PPDS.Dataverse/Generated/Entities/sdkmessageprocessingstepimage.cs new file mode 100644 index 000000000..e014811c7 --- /dev/null +++ b/src/PPDS.Dataverse/Generated/Entities/sdkmessageprocessingstepimage.cs @@ -0,0 +1,568 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// Type of image requested. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum sdkmessageprocessingstepimage_imagetype + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + PreImage = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + PostImage = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Both = 2, + } + + /// + /// Copy of an entity's attributes before or after the core system operation. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageprocessingstepimage")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public partial class SdkMessageProcessingStepImage : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Available fields, a the time of codegen, for the sdkmessageprocessingstepimage entity + /// + public partial class Fields + { + public const string Attributes1 = "attributes"; + public const string ComponentState = "componentstate"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CustomizationLevel = "customizationlevel"; + public const string Description = "description"; + public const string EntityAlias = "entityalias"; + public const string ImageType = "imagetype"; + public const string IntroducedVersion = "introducedversion"; + public const string IsCustomizable = "iscustomizable"; + public const string IsManaged = "ismanaged"; + public const string MessagePropertyName = "messagepropertyname"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OrganizationId = "organizationid"; + public const string OverwriteTime = "overwritetime"; + public const string RelatedAttributeName = "relatedattributename"; + public const string SdkMessageProcessingStepId = "sdkmessageprocessingstepid"; + public const string SdkMessageProcessingStepImageId = "sdkmessageprocessingstepimageid"; + public const string Id = "sdkmessageprocessingstepimageid"; + public const string SdkMessageProcessingStepImageIdUnique = "sdkmessageprocessingstepimageidunique"; + public const string SolutionId = "solutionid"; + public const string VersionNumber = "versionnumber"; + public const string createdby_sdkmessageprocessingstepimage = "createdby_sdkmessageprocessingstepimage"; + public const string lk_sdkmessageprocessingstepimage_createdonbehalfby = "lk_sdkmessageprocessingstepimage_createdonbehalfby"; + public const string lk_sdkmessageprocessingstepimage_modifiedonbehalfby = "lk_sdkmessageprocessingstepimage_modifiedonbehalfby"; + public const string modifiedby_sdkmessageprocessingstepimage = "modifiedby_sdkmessageprocessingstepimage"; + public const string sdkmessageprocessingstepid_sdkmessageprocessingstepimage = "sdkmessageprocessingstepid_sdkmessageprocessingstepimage"; + } + + /// + /// Default Constructor. + /// + public SdkMessageProcessingStepImage() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "sdkmessageprocessingstepimage"; + + public const string EntityLogicalCollectionName = "sdkmessageprocessingstepimages"; + + public const string EntitySetName = "sdkmessageprocessingstepimages"; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Comma-separated list of attributes that are to be passed into the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("attributes")] + public string Attributes1 + { + get + { + return this.GetAttributeValue("attributes"); + } + set + { + this.OnPropertyChanging("Attributes1"); + this.SetAttributeValue("attributes", value); + this.OnPropertyChanged("Attributes1"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] + public virtual componentstate? ComponentState + { + get + { + return ((componentstate?)(EntityOptionSetEnum.GetEnum(this, "componentstate"))); + } + } + + /// + /// Unique identifier of the user who created the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the SDK message processing step image was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the sdkmessageprocessingstepimage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Customization level of the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] + public System.Nullable CustomizationLevel + { + get + { + return this.GetAttributeValue>("customizationlevel"); + } + } + + /// + /// Description of the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Key name used to access the pre-image or post-image property bags in a step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityalias")] + public string EntityAlias + { + get + { + return this.GetAttributeValue("entityalias"); + } + set + { + this.OnPropertyChanging("EntityAlias"); + this.SetAttributeValue("entityalias", value); + this.OnPropertyChanged("EntityAlias"); + } + } + + /// + /// Type of image requested. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("imagetype")] + public virtual sdkmessageprocessingstepimage_imagetype? ImageType + { + get + { + return ((sdkmessageprocessingstepimage_imagetype?)(EntityOptionSetEnum.GetEnum(this, "imagetype"))); + } + set + { + this.OnPropertyChanging("ImageType"); + this.SetAttributeValue("imagetype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("ImageType"); + } + } + + /// + /// Version in which the form is introduced. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] + public string IntroducedVersion + { + get + { + return this.GetAttributeValue("introducedversion"); + } + set + { + this.OnPropertyChanging("IntroducedVersion"); + this.SetAttributeValue("introducedversion", value); + this.OnPropertyChanged("IntroducedVersion"); + } + } + + /// + /// Information that specifies whether this component can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] + public Microsoft.Xrm.Sdk.BooleanManagedProperty IsCustomizable + { + get + { + return this.GetAttributeValue("iscustomizable"); + } + set + { + this.OnPropertyChanging("IsCustomizable"); + this.SetAttributeValue("iscustomizable", value); + this.OnPropertyChanged("IsCustomizable"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Name of the property on the Request message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("messagepropertyname")] + public string MessagePropertyName + { + get + { + return this.GetAttributeValue("messagepropertyname"); + } + set + { + this.OnPropertyChanging("MessagePropertyName"); + this.SetAttributeValue("messagepropertyname", value); + this.OnPropertyChanged("MessagePropertyName"); + } + } + + /// + /// Unique identifier of the user who last modified the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the SDK message processing step was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessageprocessingstepimage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Name of SdkMessage processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier of the organization with which the SDK message processing step is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] + public System.Nullable OverwriteTime + { + get + { + return this.GetAttributeValue>("overwritetime"); + } + } + + /// + /// Name of the related entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedattributename")] + public string RelatedAttributeName + { + get + { + return this.GetAttributeValue("relatedattributename"); + } + set + { + this.OnPropertyChanging("RelatedAttributeName"); + this.SetAttributeValue("relatedattributename", value); + this.OnPropertyChanged("RelatedAttributeName"); + } + } + + /// + /// Unique identifier of the SDK message processing step. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] + public Microsoft.Xrm.Sdk.EntityReference SdkMessageProcessingStepId + { + get + { + return this.GetAttributeValue("sdkmessageprocessingstepid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepId"); + this.SetAttributeValue("sdkmessageprocessingstepid", value); + this.OnPropertyChanged("SdkMessageProcessingStepId"); + } + } + + /// + /// Unique identifier of the SDK message processing step image entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepimageid")] + public System.Nullable SdkMessageProcessingStepImageId + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepimageid"); + } + set + { + this.OnPropertyChanging("SdkMessageProcessingStepImageId"); + this.SetAttributeValue("sdkmessageprocessingstepimageid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SdkMessageProcessingStepImageId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepimageid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SdkMessageProcessingStepImageId = value; + } + } + + /// + /// Unique identifier of the SDK message processing step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepimageidunique")] + public System.Nullable SdkMessageProcessingStepImageIdUnique + { + get + { + return this.GetAttributeValue>("sdkmessageprocessingstepimageidunique"); + } + } + + /// + /// Unique identifier of the associated solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + } + + /// + /// Number that identifies a specific revision of the step image. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:1 createdby_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstepimage")] + public PPDS.Dataverse.Generated.SystemUser createdby_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntity("createdby_sdkmessageprocessingstepimage", null); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstepimage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_createdonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_sdkmessageprocessingstepimage_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstepimage_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_sdkmessageprocessingstepimage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_modifiedonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_sdkmessageprocessingstepimage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null); + } + } + + /// + /// N:1 modifiedby_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstepimage")] + public PPDS.Dataverse.Generated.SystemUser modifiedby_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntity("modifiedby_sdkmessageprocessingstepimage", null); + } + } + + /// + /// N:1 sdkmessageprocessingstepid_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageprocessingstepid_sdkmessageprocessingstepimage")] + public PPDS.Dataverse.Generated.SdkMessageProcessingStep sdkmessageprocessingstepid_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntity("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("sdkmessageprocessingstepid_sdkmessageprocessingstepimage"); + this.SetRelatedEntity("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("sdkmessageprocessingstepid_sdkmessageprocessingstepimage"); + } + } + } +} diff --git a/src/PPDS.Dataverse/Generated/Entities/solution.cs b/src/PPDS.Dataverse/Generated/Entities/solution.cs new file mode 100644 index 000000000..a2061330c --- /dev/null +++ b/src/PPDS.Dataverse/Generated/Entities/solution.cs @@ -0,0 +1,741 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// All possible types of solution + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum solution_solutiontype + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Snapshot = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Internal = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum solution_sourcecontrolsyncstatus + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Notstarted = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Initialsyncinprogress = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Errorsininitialsync = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Pendingchangestobecommitted = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Committed = 4, + } + + /// + /// A solution which contains CRM customizations. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("solution")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public partial class Solution : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Available fields, a the time of codegen, for the solution entity + /// + public partial class Fields + { + public const string ConfigurationPageId = "configurationpageid"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string Description = "description"; + public const string EnabledForSourceControlIntegration = "enabledforsourcecontrolintegration"; + public const string FriendlyName = "friendlyname"; + public const string InstalledOn = "installedon"; + public const string IsApiManaged = "isapimanaged"; + public const string IsManaged = "ismanaged"; + public const string IsVisible = "isvisible"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string OrganizationId = "organizationid"; + public const string ParentSolutionId = "parentsolutionid"; + public const string PinpointAssetId = "pinpointassetid"; + public const string PinpointPublisherId = "pinpointpublisherid"; + public const string PinpointSolutionDefaultLocale = "pinpointsolutiondefaultlocale"; + public const string PinpointSolutionId = "pinpointsolutionid"; + public const string PublisherId = "publisherid"; + public const string SolutionId = "solutionid"; + public const string Id = "solutionid"; + public const string SolutionPackageVersion = "solutionpackageversion"; + public const string SolutionType = "solutiontype"; + public const string SourceControlSyncStatus = "sourcecontrolsyncstatus"; + public const string TemplateSuffix = "templatesuffix"; + public const string Thumbprint = "thumbprint"; + public const string UniqueName = "uniquename"; + public const string UpdatedOn = "updatedon"; + public const string UpgradeInfo = "upgradeinfo"; + public const string Version = "version"; + public const string VersionNumber = "versionnumber"; + public const string Referencedsolution_parent_solution = "Referencedsolution_parent_solution"; + public const string solution_solutioncomponent = "solution_solutioncomponent"; + public const string lk_solution_createdby = "lk_solution_createdby"; + public const string lk_solution_modifiedby = "lk_solution_modifiedby"; + public const string lk_solutionbase_createdonbehalfby = "lk_solutionbase_createdonbehalfby"; + public const string lk_solutionbase_modifiedonbehalfby = "lk_solutionbase_modifiedonbehalfby"; + public const string publisher_solution = "publisher_solution"; + public const string Referencingsolution_parent_solution = "solution_parent_solution"; + } + + /// + /// Default Constructor. + /// + public Solution() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "solution"; + + public const string EntityLogicalCollectionName = "solutions"; + + public const string EntitySetName = "solutions"; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// A link to an optional configuration page for this solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("configurationpageid")] + public Microsoft.Xrm.Sdk.EntityReference ConfigurationPageId + { + get + { + return this.GetAttributeValue("configurationpageid"); + } + set + { + this.OnPropertyChanging("ConfigurationPageId"); + this.SetAttributeValue("configurationpageid", value); + this.OnPropertyChanged("ConfigurationPageId"); + } + } + + /// + /// Unique identifier of the user who created the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the solution was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Description of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Indicates if solution is enabled for source control integration + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enabledforsourcecontrolintegration")] + public System.Nullable EnabledForSourceControlIntegration + { + get + { + return this.GetAttributeValue>("enabledforsourcecontrolintegration"); + } + set + { + this.OnPropertyChanging("EnabledForSourceControlIntegration"); + this.SetAttributeValue("enabledforsourcecontrolintegration", value); + this.OnPropertyChanged("EnabledForSourceControlIntegration"); + } + } + + /// + /// User display name for the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlyname")] + public string FriendlyName + { + get + { + return this.GetAttributeValue("friendlyname"); + } + set + { + this.OnPropertyChanging("FriendlyName"); + this.SetAttributeValue("friendlyname", value); + this.OnPropertyChanged("FriendlyName"); + } + } + + /// + /// Date and time when the solution was installed/upgraded. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("installedon")] + public System.Nullable InstalledOn + { + get + { + return this.GetAttributeValue>("installedon"); + } + } + + /// + /// Information about whether the solution is api managed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isapimanaged")] + public System.Nullable IsApiManaged + { + get + { + return this.GetAttributeValue>("isapimanaged"); + } + } + + /// + /// Indicates whether the solution is managed or unmanaged. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] + public System.Nullable IsManaged + { + get + { + return this.GetAttributeValue>("ismanaged"); + } + } + + /// + /// Indicates whether the solution is visible outside of the platform. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvisible")] + public System.Nullable IsVisible + { + get + { + return this.GetAttributeValue>("isvisible"); + } + } + + /// + /// Unique identifier of the user who last modified the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the solution was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the organization associated with the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Unique identifier of the parent solution. Should only be non-null if this solution is a patch. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsolutionid")] + public Microsoft.Xrm.Sdk.EntityReference ParentSolutionId + { + get + { + return this.GetAttributeValue("parentsolutionid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointassetid")] + public string PinpointAssetId + { + get + { + return this.GetAttributeValue("pinpointassetid"); + } + } + + /// + /// Identifier of the publisher of this solution in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointpublisherid")] + public System.Nullable PinpointPublisherId + { + get + { + return this.GetAttributeValue>("pinpointpublisherid"); + } + } + + /// + /// Default locale of the solution in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointsolutiondefaultlocale")] + public string PinpointSolutionDefaultLocale + { + get + { + return this.GetAttributeValue("pinpointsolutiondefaultlocale"); + } + } + + /// + /// Identifier of the solution in Microsoft Pinpoint. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointsolutionid")] + public System.Nullable PinpointSolutionId + { + get + { + return this.GetAttributeValue>("pinpointsolutionid"); + } + } + + /// + /// Unique identifier of the publisher. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] + public Microsoft.Xrm.Sdk.EntityReference PublisherId + { + get + { + return this.GetAttributeValue("publisherid"); + } + set + { + this.OnPropertyChanging("PublisherId"); + this.SetAttributeValue("publisherid", value); + this.OnPropertyChanged("PublisherId"); + } + } + + /// + /// Unique identifier of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public System.Nullable SolutionId + { + get + { + return this.GetAttributeValue>("solutionid"); + } + set + { + this.OnPropertyChanging("SolutionId"); + this.SetAttributeValue("solutionid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SolutionId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SolutionId = value; + } + } + + /// + /// Solution package source organization version + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionpackageversion")] + public string SolutionPackageVersion + { + get + { + return this.GetAttributeValue("solutionpackageversion"); + } + set + { + this.OnPropertyChanging("SolutionPackageVersion"); + this.SetAttributeValue("solutionpackageversion", value); + this.OnPropertyChanged("SolutionPackageVersion"); + } + } + + /// + /// Solution Type + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutiontype")] + public virtual solution_solutiontype? SolutionType + { + get + { + return ((solution_solutiontype?)(EntityOptionSetEnum.GetEnum(this, "solutiontype"))); + } + set + { + this.OnPropertyChanging("SolutionType"); + this.SetAttributeValue("solutiontype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("SolutionType"); + } + } + + /// + /// Indicates the current status of source control integration + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcecontrolsyncstatus")] + public virtual solution_sourcecontrolsyncstatus? SourceControlSyncStatus + { + get + { + return ((solution_sourcecontrolsyncstatus?)(EntityOptionSetEnum.GetEnum(this, "sourcecontrolsyncstatus"))); + } + set + { + this.OnPropertyChanging("SourceControlSyncStatus"); + this.SetAttributeValue("sourcecontrolsyncstatus", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("SourceControlSyncStatus"); + } + } + + /// + /// The template suffix of this solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("templatesuffix")] + public string TemplateSuffix + { + get + { + return this.GetAttributeValue("templatesuffix"); + } + set + { + this.OnPropertyChanging("TemplateSuffix"); + this.SetAttributeValue("templatesuffix", value); + this.OnPropertyChanged("TemplateSuffix"); + } + } + + /// + /// thumbprint of the solution signature + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("thumbprint")] + public string Thumbprint + { + get + { + return this.GetAttributeValue("thumbprint"); + } + set + { + this.OnPropertyChanging("Thumbprint"); + this.SetAttributeValue("thumbprint", value); + this.OnPropertyChanged("Thumbprint"); + } + } + + /// + /// The unique name of this solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] + public string UniqueName + { + get + { + return this.GetAttributeValue("uniquename"); + } + set + { + this.OnPropertyChanging("UniqueName"); + this.SetAttributeValue("uniquename", value); + this.OnPropertyChanged("UniqueName"); + } + } + + /// + /// Date and time when the solution was updated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("updatedon")] + public System.Nullable UpdatedOn + { + get + { + return this.GetAttributeValue>("updatedon"); + } + } + + /// + /// Contains component info for the solution upgrade operation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("upgradeinfo")] + public string UpgradeInfo + { + get + { + return this.GetAttributeValue("upgradeinfo"); + } + } + + /// + /// Solution version, used to identify a solution for upgrades and hotfixes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] + public string Version + { + get + { + return this.GetAttributeValue("version"); + } + set + { + this.OnPropertyChanging("Version"); + this.SetAttributeValue("version", value); + this.OnPropertyChanged("Version"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N solution_parent_solution + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_parent_solution", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedsolution_parent_solution + { + get + { + return this.GetRelatedEntities("solution_parent_solution", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedsolution_parent_solution"); + this.SetRelatedEntities("solution_parent_solution", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedsolution_parent_solution"); + } + } + + /// + /// 1:N solution_solutioncomponent + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_solutioncomponent")] + public System.Collections.Generic.IEnumerable solution_solutioncomponent + { + get + { + return this.GetRelatedEntities("solution_solutioncomponent", null); + } + set + { + this.OnPropertyChanging("solution_solutioncomponent"); + this.SetRelatedEntities("solution_solutioncomponent", null, value); + this.OnPropertyChanged("solution_solutioncomponent"); + } + } + + /// + /// N:1 lk_solution_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_createdby")] + public PPDS.Dataverse.Generated.SystemUser lk_solution_createdby + { + get + { + return this.GetRelatedEntity("lk_solution_createdby", null); + } + } + + /// + /// N:1 lk_solution_modifiedby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_modifiedby")] + public PPDS.Dataverse.Generated.SystemUser lk_solution_modifiedby + { + get + { + return this.GetRelatedEntity("lk_solution_modifiedby", null); + } + } + + /// + /// N:1 lk_solutionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_createdonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_solutionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_solutionbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_solutionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_modifiedonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_solutionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_solutionbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 publisher_solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("publisher_solution")] + public PPDS.Dataverse.Generated.Publisher publisher_solution + { + get + { + return this.GetRelatedEntity("publisher_solution", null); + } + set + { + this.OnPropertyChanging("publisher_solution"); + this.SetRelatedEntity("publisher_solution", null, value); + this.OnPropertyChanged("publisher_solution"); + } + } + + /// + /// N:1 solution_parent_solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsolutionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_parent_solution", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public PPDS.Dataverse.Generated.Solution Referencingsolution_parent_solution + { + get + { + return this.GetRelatedEntity("solution_parent_solution", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + } +} diff --git a/src/PPDS.Dataverse/Generated/Entities/solutioncomponent.cs b/src/PPDS.Dataverse/Generated/Entities/solutioncomponent.cs new file mode 100644 index 000000000..048c3da6c --- /dev/null +++ b/src/PPDS.Dataverse/Generated/Entities/solutioncomponent.cs @@ -0,0 +1,350 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// Indicates the include behavior of the root component. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum solutioncomponent_rootcomponentbehavior + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + IncludeSubcomponents = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Donotincludesubcomponents = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + IncludeAsShellOnly = 2, + } + + /// + /// A component of a CRM solution. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("solutioncomponent")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public partial class SolutionComponent : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Available fields, a the time of codegen, for the solutioncomponent entity + /// + public partial class Fields + { + public const string ComponentType = "componenttype"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string IsMetadata = "ismetadata"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string ObjectId = "objectid"; + public const string RootComponentBehavior = "rootcomponentbehavior"; + public const string RootSolutionComponentId = "rootsolutioncomponentid"; + public const string SolutionComponentId = "solutioncomponentid"; + public const string Id = "solutioncomponentid"; + public const string SolutionId = "solutionid"; + public const string VersionNumber = "versionnumber"; + public const string Referencedsolutioncomponent_parent_solutioncomponent = "Referencedsolutioncomponent_parent_solutioncomponent"; + public const string lk_solutioncomponentbase_createdonbehalfby = "lk_solutioncomponentbase_createdonbehalfby"; + public const string lk_solutioncomponentbase_modifiedonbehalfby = "lk_solutioncomponentbase_modifiedonbehalfby"; + public const string solution_solutioncomponent = "solution_solutioncomponent"; + public const string Referencingsolutioncomponent_parent_solutioncomponent = "solutioncomponent_parent_solutioncomponent"; + } + + /// + /// Default Constructor. + /// + public SolutionComponent() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "solutioncomponent"; + + public const string EntityLogicalCollectionName = "solutioncomponentss"; + + public const string EntitySetName = "solutioncomponents"; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// The object type code of the component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componenttype")] + public virtual componenttype? ComponentType + { + get + { + return ((componenttype?)(EntityOptionSetEnum.GetEnum(this, "componenttype"))); + } + } + + /// + /// Unique identifier of the user who created the solution + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the solution was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Indicates whether this component is metadata or data. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismetadata")] + public System.Nullable IsMetadata + { + get + { + return this.GetAttributeValue>("ismetadata"); + } + } + + /// + /// Unique identifier of the user who last modified the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the solution was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Unique identifier of the object with which the component is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] + public System.Nullable ObjectId + { + get + { + return this.GetAttributeValue>("objectid"); + } + } + + /// + /// Indicates the include behavior of the root component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rootcomponentbehavior")] + public virtual solutioncomponent_rootcomponentbehavior? RootComponentBehavior + { + get + { + return ((solutioncomponent_rootcomponentbehavior?)(EntityOptionSetEnum.GetEnum(this, "rootcomponentbehavior"))); + } + } + + /// + /// The parent ID of the subcomponent, which will be a root + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rootsolutioncomponentid")] + public System.Nullable RootSolutionComponentId + { + get + { + return this.GetAttributeValue>("rootsolutioncomponentid"); + } + } + + /// + /// Unique identifier of the solution component. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutioncomponentid")] + public System.Nullable SolutionComponentId + { + get + { + return this.GetAttributeValue>("solutioncomponentid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutioncomponentid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + base.Id = value; + } + } + + /// + /// Unique identifier of the solution. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + public Microsoft.Xrm.Sdk.EntityReference SolutionId + { + get + { + return this.GetAttributeValue("solutionid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// 1:N solutioncomponent_parent_solutioncomponent + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solutioncomponent_parent_solutioncomponent", Microsoft.Xrm.Sdk.EntityRole.Referenced)] + public System.Collections.Generic.IEnumerable Referencedsolutioncomponent_parent_solutioncomponent + { + get + { + return this.GetRelatedEntities("solutioncomponent_parent_solutioncomponent", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedsolutioncomponent_parent_solutioncomponent"); + this.SetRelatedEntities("solutioncomponent_parent_solutioncomponent", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedsolutioncomponent_parent_solutioncomponent"); + } + } + + /// + /// N:1 lk_solutioncomponentbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_createdonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_solutioncomponentbase_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_solutioncomponentbase_createdonbehalfby", null); + } + } + + /// + /// N:1 lk_solutioncomponentbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_modifiedonbehalfby")] + public PPDS.Dataverse.Generated.SystemUser lk_solutioncomponentbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_solutioncomponentbase_modifiedonbehalfby", null); + } + } + + /// + /// N:1 solution_solutioncomponent + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_solutioncomponent")] + public PPDS.Dataverse.Generated.Solution solution_solutioncomponent + { + get + { + return this.GetRelatedEntity("solution_solutioncomponent", null); + } + } + + /// + /// N:1 solutioncomponent_parent_solutioncomponent + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rootsolutioncomponentid")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solutioncomponent_parent_solutioncomponent", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public PPDS.Dataverse.Generated.SolutionComponent Referencingsolutioncomponent_parent_solutioncomponent + { + get + { + return this.GetRelatedEntity("solutioncomponent_parent_solutioncomponent", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + } +} diff --git a/src/PPDS.Dataverse/Generated/Entities/systemuser.cs b/src/PPDS.Dataverse/Generated/Entities/systemuser.cs new file mode 100644 index 000000000..5c5016c9d --- /dev/null +++ b/src/PPDS.Dataverse/Generated/Entities/systemuser.cs @@ -0,0 +1,3840 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// Type of user. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_accessmode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + ReadWrite = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Administrative = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Read = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SupportUser = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Noninteractive = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DelegatedAdmin = 5, + } + + /// + /// Type of address for address 1, such as billing, shipping, or primary address. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_address1_addresstypecode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + DefaultValue = 1, + } + + /// + /// Method of shipment for address 1. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_address1_shippingmethodcode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + DefaultValue = 1, + } + + /// + /// Type of address for address 2, such as billing, shipping, or primary address. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_address2_addresstypecode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + DefaultValue = 1, + } + + /// + /// Method of shipment for address 2. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_address2_shippingmethodcode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + DefaultValue = 1, + } + + /// + /// Azure state of user. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_azurestate + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Exists = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Softdeleted = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Notfoundorharddeleted = 2, + } + + /// + /// License type of user. This is used only in the on-premises version of the product. Online licenses are managed through Microsoft 365 Office Portal. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_caltype + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Professional = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Administrative = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Basic = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DeviceProfessional = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DeviceBasic = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Essential = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DeviceEssential = 6, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Enterprise = 7, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DeviceEnterprise = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Sales = 9, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Service = 10, + + [System.Runtime.Serialization.EnumMemberAttribute()] + FieldService = 11, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ProjectService = 12, + } + + /// + /// User delete state. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_deletestate + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Notdeleted = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Softdeleted = 1, + } + + /// + /// Indicates the approval options for server-side synchronization or Email Router access. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_emailrouteraccessapproval + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Empty = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Approved = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + PendingApproval = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Rejected = 3, + } + + /// + /// Incoming email delivery method for the user. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_incomingemaildeliverymethod + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + MicrosoftDynamics365forOutlook = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ServerSideSynchronizationorEmailRouter = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ForwardMailbox = 3, + } + + /// + /// User invitation status. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_invitestatuscode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + InvitationNotSent = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Invited = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + InvitationNearExpired = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + InvitationExpired = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + InvitationAccepted = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + InvitationRejected = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + InvitationRevoked = 6, + } + + /// + /// Outgoing email delivery method for the user. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_outgoingemaildeliverymethod + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + MicrosoftDynamics365forOutlook = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ServerSideSynchronizationorEmailRouter = 2, + } + + /// + /// Preferred address for the user. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_preferredaddresscode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + MailingAddress = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + OtherAddress = 2, + } + + /// + /// Preferred email address for the user. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_preferredemailcode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + DefaultValue = 1, + } + + /// + /// Preferred phone number for the user. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_preferredphonecode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + MainPhone = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + OtherPhone = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + HomePhone = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + MobilePhone = 4, + } + + /// + /// The type of user + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum systemuser_systemmanagedusertype + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + EntraUser = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + C2User = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ImpersonableStubUser = 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")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public partial class SystemUser : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + /// + /// Available fields, a the time of codegen, for the systemuser entity + /// + public partial class Fields + { + public const string AccessMode = "accessmode"; + public const string Address1_AddressId = "address1_addressid"; + public const string Address1_AddressTypeCode = "address1_addresstypecode"; + 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_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_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_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 AzureDeletedOn = "azuredeletedon"; + public const string AzureState = "azurestate"; + public const string BusinessUnitId = "businessunitid"; + public const string CalendarId = "calendarid"; + public const string CALType = "caltype"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string DefaultFiltersPopulated = "defaultfilterspopulated"; + public const string DefaultMailbox = "defaultmailbox"; + public const string DefaultOdbFolderName = "defaultodbfoldername"; + public const string DeletedState = "deletedstate"; + public const string DisabledReason = "disabledreason"; + public const string DisplayInServiceViews = "displayinserviceviews"; + public const string DomainName = "domainname"; + public const string EmailRouterAccessApproval = "emailrouteraccessapproval"; + 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 InternalEMailAddress = "internalemailaddress"; + public const string InviteStatusCode = "invitestatuscode"; + public const string IsAllowedByIpFirewall = "isallowedbyipfirewall"; + public const string IsDisabled = "isdisabled"; + public const string IsEmailAddressApprovedByO365Admin = "isemailaddressapprovedbyo365admin"; + public const string IsIntegrationUser = "isintegrationuser"; + public const string IsLicensed = "islicensed"; + public const string IsSyncWithDirectory = "issyncwithdirectory"; + public const string JobTitle = "jobtitle"; + public const string LastName = "lastname"; + public const string MiddleName = "middlename"; + public const string MobileAlertEMail = "mobilealertemail"; + public const string MobileOfflineProfileId = "mobileofflineprofileid"; + public const string MobilePhone = "mobilephone"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string NickName = "nickname"; + public const string OrganizationId = "organizationid"; + public const string OutgoingEmailDeliveryMethod = "outgoingemaildeliverymethod"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string ParentSystemUserId = "parentsystemuserid"; + 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 PreferredAddressCode = "preferredaddresscode"; + public const string PreferredEmailCode = "preferredemailcode"; + public const string PreferredPhoneCode = "preferredphonecode"; + public const string ProcessId = "processid"; + public const string QueueId = "queueid"; + public const string Salutation = "salutation"; + public const string SetupUser = "setupuser"; + public const string SharePointEmailAddress = "sharepointemailaddress"; + public const string Skills = "skills"; + public const string StageId = "stageid"; + public const string SystemManagedUserType = "systemmanagedusertype"; + public const string SystemUserId = "systemuserid"; + public const string Id = "systemuserid"; + public const string TerritoryId = "territoryid"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string Title = "title"; + public const string TransactionCurrencyId = "transactioncurrencyid"; + public const string TraversedPath = "traversedpath"; + 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"; + public const string createdby_pluginassembly = "createdby_pluginassembly"; + public const string createdby_plugintype = "createdby_plugintype"; + public const string createdby_sdkmessage = "createdby_sdkmessage"; + public const string createdby_sdkmessagefilter = "createdby_sdkmessagefilter"; + public const string createdby_sdkmessageprocessingstep = "createdby_sdkmessageprocessingstep"; + public const string createdby_sdkmessageprocessingstepimage = "createdby_sdkmessageprocessingstepimage"; + public const string impersonatinguserid_sdkmessageprocessingstep = "impersonatinguserid_sdkmessageprocessingstep"; + public const string lk_asyncoperation_createdby = "lk_asyncoperation_createdby"; + public const string lk_asyncoperation_createdonbehalfby = "lk_asyncoperation_createdonbehalfby"; + public const string lk_asyncoperation_modifiedby = "lk_asyncoperation_modifiedby"; + public const string lk_asyncoperation_modifiedonbehalfby = "lk_asyncoperation_modifiedonbehalfby"; + public const string lk_importjobbase_createdby = "lk_importjobbase_createdby"; + public const string lk_importjobbase_createdonbehalfby = "lk_importjobbase_createdonbehalfby"; + public const string lk_importjobbase_modifiedby = "lk_importjobbase_modifiedby"; + public const string lk_importjobbase_modifiedonbehalfby = "lk_importjobbase_modifiedonbehalfby"; + public const string lk_pluginassembly_createdonbehalfby = "lk_pluginassembly_createdonbehalfby"; + public const string lk_pluginassembly_modifiedonbehalfby = "lk_pluginassembly_modifiedonbehalfby"; + public const string lk_pluginpackage_createdby = "lk_pluginpackage_createdby"; + public const string lk_pluginpackage_createdonbehalfby = "lk_pluginpackage_createdonbehalfby"; + public const string lk_pluginpackage_modifiedby = "lk_pluginpackage_modifiedby"; + public const string lk_pluginpackage_modifiedonbehalfby = "lk_pluginpackage_modifiedonbehalfby"; + public const string lk_plugintype_createdonbehalfby = "lk_plugintype_createdonbehalfby"; + public const string lk_plugintype_modifiedonbehalfby = "lk_plugintype_modifiedonbehalfby"; + public const string lk_publisher_createdby = "lk_publisher_createdby"; + public const string lk_publisher_modifiedby = "lk_publisher_modifiedby"; + public const string lk_publisherbase_createdonbehalfby = "lk_publisherbase_createdonbehalfby"; + public const string lk_publisherbase_modifiedonbehalfby = "lk_publisherbase_modifiedonbehalfby"; + public const string lk_sdkmessage_createdonbehalfby = "lk_sdkmessage_createdonbehalfby"; + public const string lk_sdkmessage_modifiedonbehalfby = "lk_sdkmessage_modifiedonbehalfby"; + public const string lk_sdkmessagefilter_createdonbehalfby = "lk_sdkmessagefilter_createdonbehalfby"; + public const string lk_sdkmessagefilter_modifiedonbehalfby = "lk_sdkmessagefilter_modifiedonbehalfby"; + public const string lk_sdkmessageprocessingstep_createdonbehalfby = "lk_sdkmessageprocessingstep_createdonbehalfby"; + public const string lk_sdkmessageprocessingstep_modifiedonbehalfby = "lk_sdkmessageprocessingstep_modifiedonbehalfby"; + public const string lk_sdkmessageprocessingstepimage_createdonbehalfby = "lk_sdkmessageprocessingstepimage_createdonbehalfby"; + public const string lk_sdkmessageprocessingstepimage_modifiedonbehalfby = "lk_sdkmessageprocessingstepimage_modifiedonbehalfby"; + public const string lk_solution_createdby = "lk_solution_createdby"; + public const string lk_solution_modifiedby = "lk_solution_modifiedby"; + public const string lk_solutionbase_createdonbehalfby = "lk_solutionbase_createdonbehalfby"; + public const string lk_solutionbase_modifiedonbehalfby = "lk_solutionbase_modifiedonbehalfby"; + public const string lk_solutioncomponentbase_createdonbehalfby = "lk_solutioncomponentbase_createdonbehalfby"; + public const string lk_solutioncomponentbase_modifiedonbehalfby = "lk_solutioncomponentbase_modifiedonbehalfby"; + 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 modifiedby_pluginassembly = "modifiedby_pluginassembly"; + public const string modifiedby_plugintype = "modifiedby_plugintype"; + public const string modifiedby_sdkmessage = "modifiedby_sdkmessage"; + public const string modifiedby_sdkmessagefilter = "modifiedby_sdkmessagefilter"; + public const string modifiedby_sdkmessageprocessingstep = "modifiedby_sdkmessageprocessingstep"; + public const string modifiedby_sdkmessageprocessingstepimage = "modifiedby_sdkmessageprocessingstepimage"; + public const string system_user_asyncoperation = "system_user_asyncoperation"; + public const string SystemUser_AsyncOperations = "SystemUser_AsyncOperations"; + public const string Referenceduser_parent_user = "Referenceduser_parent_user"; + 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 Referencinguser_parent_user = "user_parent_user"; + } + + /// + /// Default Constructor. + /// + public SystemUser() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "systemuser"; + + public const string EntityLogicalCollectionName = "systemusers"; + + public const string EntitySetName = "systemusers"; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Type of user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accessmode")] + public virtual systemuser_accessmode? AccessMode + { + get + { + return ((systemuser_accessmode?)(EntityOptionSetEnum.GetEnum(this, "accessmode"))); + } + set + { + this.OnPropertyChanging("AccessMode"); + this.SetAttributeValue("accessmode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("AccessMode"); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// 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 + { + get + { + return ((systemuser_address1_addresstypecode?)(EntityOptionSetEnum.GetEnum(this, "address1_addresstypecode"))); + } + set + { + this.OnPropertyChanging("Address1_AddressTypeCode"); + this.SetAttributeValue("address1_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address1_AddressTypeCode"); + } + } + + /// + /// City name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] + public string Address1_City + { + get + { + return this.GetAttributeValue("address1_city"); + } + set + { + this.OnPropertyChanging("Address1_City"); + this.SetAttributeValue("address1_city", value); + this.OnPropertyChanged("Address1_City"); + } + } + + /// + /// Shows the complete primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_composite")] + public string Address1_Composite + { + get + { + return this.GetAttributeValue("address1_composite"); + } + } + + /// + /// Country/region name in address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] + public string Address1_Country + { + get + { + return this.GetAttributeValue("address1_country"); + } + set + { + this.OnPropertyChanging("Address1_Country"); + this.SetAttributeValue("address1_country", value); + this.OnPropertyChanged("Address1_Country"); + } + } + + /// + /// County name for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] + public string Address1_County + { + get + { + return this.GetAttributeValue("address1_county"); + } + set + { + this.OnPropertyChanging("Address1_County"); + this.SetAttributeValue("address1_county", value); + this.OnPropertyChanged("Address1_County"); + } + } + + /// + /// Fax number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] + public string Address1_Fax + { + get + { + return this.GetAttributeValue("address1_fax"); + } + set + { + this.OnPropertyChanging("Address1_Fax"); + this.SetAttributeValue("address1_fax", value); + this.OnPropertyChanged("Address1_Fax"); + } + } + + /// + /// Latitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] + public System.Nullable Address1_Latitude + { + get + { + return this.GetAttributeValue>("address1_latitude"); + } + set + { + this.OnPropertyChanging("Address1_Latitude"); + this.SetAttributeValue("address1_latitude", value); + this.OnPropertyChanged("Address1_Latitude"); + } + } + + /// + /// First line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] + public string Address1_Line1 + { + get + { + return this.GetAttributeValue("address1_line1"); + } + set + { + this.OnPropertyChanging("Address1_Line1"); + this.SetAttributeValue("address1_line1", value); + this.OnPropertyChanged("Address1_Line1"); + } + } + + /// + /// Second line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] + public string Address1_Line2 + { + get + { + return this.GetAttributeValue("address1_line2"); + } + set + { + this.OnPropertyChanging("Address1_Line2"); + this.SetAttributeValue("address1_line2", value); + this.OnPropertyChanged("Address1_Line2"); + } + } + + /// + /// Third line for entering address 1 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] + public string Address1_Line3 + { + get + { + return this.GetAttributeValue("address1_line3"); + } + set + { + this.OnPropertyChanging("Address1_Line3"); + this.SetAttributeValue("address1_line3", value); + this.OnPropertyChanged("Address1_Line3"); + } + } + + /// + /// Longitude for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] + public System.Nullable Address1_Longitude + { + get + { + return this.GetAttributeValue>("address1_longitude"); + } + set + { + this.OnPropertyChanging("Address1_Longitude"); + this.SetAttributeValue("address1_longitude", value); + this.OnPropertyChanged("Address1_Longitude"); + } + } + + /// + /// Name to enter for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] + public string Address1_Name + { + get + { + return this.GetAttributeValue("address1_name"); + } + set + { + this.OnPropertyChanging("Address1_Name"); + this.SetAttributeValue("address1_name", value); + this.OnPropertyChanged("Address1_Name"); + } + } + + /// + /// ZIP Code or postal code for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] + public string Address1_PostalCode + { + get + { + return this.GetAttributeValue("address1_postalcode"); + } + set + { + this.OnPropertyChanging("Address1_PostalCode"); + this.SetAttributeValue("address1_postalcode", value); + this.OnPropertyChanged("Address1_PostalCode"); + } + } + + /// + /// Post office box number for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] + public string Address1_PostOfficeBox + { + get + { + return this.GetAttributeValue("address1_postofficebox"); + } + set + { + this.OnPropertyChanging("Address1_PostOfficeBox"); + this.SetAttributeValue("address1_postofficebox", value); + this.OnPropertyChanged("Address1_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public virtual systemuser_address1_shippingmethodcode? Address1_ShippingMethodCode + { + get + { + return ((systemuser_address1_shippingmethodcode?)(EntityOptionSetEnum.GetEnum(this, "address1_shippingmethodcode"))); + } + set + { + this.OnPropertyChanging("Address1_ShippingMethodCode"); + this.SetAttributeValue("address1_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address1_ShippingMethodCode"); + } + } + + /// + /// State or province for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] + public string Address1_StateOrProvince + { + get + { + return this.GetAttributeValue("address1_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address1_StateOrProvince"); + this.SetAttributeValue("address1_stateorprovince", value); + this.OnPropertyChanged("Address1_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] + public string Address1_Telephone1 + { + get + { + return this.GetAttributeValue("address1_telephone1"); + } + set + { + this.OnPropertyChanging("Address1_Telephone1"); + this.SetAttributeValue("address1_telephone1", value); + this.OnPropertyChanged("Address1_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] + public string Address1_Telephone2 + { + get + { + return this.GetAttributeValue("address1_telephone2"); + } + set + { + this.OnPropertyChanging("Address1_Telephone2"); + this.SetAttributeValue("address1_telephone2", value); + this.OnPropertyChanged("Address1_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] + public string Address1_Telephone3 + { + get + { + return this.GetAttributeValue("address1_telephone3"); + } + set + { + this.OnPropertyChanging("Address1_Telephone3"); + this.SetAttributeValue("address1_telephone3", value); + this.OnPropertyChanged("Address1_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] + public string Address1_UPSZone + { + get + { + return this.GetAttributeValue("address1_upszone"); + } + set + { + this.OnPropertyChanging("Address1_UPSZone"); + this.SetAttributeValue("address1_upszone", value); + this.OnPropertyChanged("Address1_UPSZone"); + } + } + + /// + /// 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 + { + get + { + return this.GetAttributeValue>("address1_utcoffset"); + } + set + { + this.OnPropertyChanging("Address1_UTCOffset"); + this.SetAttributeValue("address1_utcoffset", value); + this.OnPropertyChanged("Address1_UTCOffset"); + } + } + + /// + /// Unique identifier for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] + public System.Nullable Address2_AddressId + { + get + { + return this.GetAttributeValue>("address2_addressid"); + } + set + { + this.OnPropertyChanging("Address2_AddressId"); + this.SetAttributeValue("address2_addressid", value); + this.OnPropertyChanged("Address2_AddressId"); + } + } + + /// + /// 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 + { + get + { + return ((systemuser_address2_addresstypecode?)(EntityOptionSetEnum.GetEnum(this, "address2_addresstypecode"))); + } + set + { + this.OnPropertyChanging("Address2_AddressTypeCode"); + this.SetAttributeValue("address2_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address2_AddressTypeCode"); + } + } + + /// + /// City name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] + public string Address2_City + { + get + { + return this.GetAttributeValue("address2_city"); + } + set + { + this.OnPropertyChanging("Address2_City"); + this.SetAttributeValue("address2_city", value); + this.OnPropertyChanged("Address2_City"); + } + } + + /// + /// Shows the complete secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_composite")] + public string Address2_Composite + { + get + { + return this.GetAttributeValue("address2_composite"); + } + } + + /// + /// Country/region name in address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] + public string Address2_Country + { + get + { + return this.GetAttributeValue("address2_country"); + } + set + { + this.OnPropertyChanging("Address2_Country"); + this.SetAttributeValue("address2_country", value); + this.OnPropertyChanged("Address2_Country"); + } + } + + /// + /// County name for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] + public string Address2_County + { + get + { + return this.GetAttributeValue("address2_county"); + } + set + { + this.OnPropertyChanging("Address2_County"); + this.SetAttributeValue("address2_county", value); + this.OnPropertyChanged("Address2_County"); + } + } + + /// + /// Fax number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] + public string Address2_Fax + { + get + { + return this.GetAttributeValue("address2_fax"); + } + set + { + this.OnPropertyChanging("Address2_Fax"); + this.SetAttributeValue("address2_fax", value); + this.OnPropertyChanged("Address2_Fax"); + } + } + + /// + /// Latitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] + public System.Nullable Address2_Latitude + { + get + { + return this.GetAttributeValue>("address2_latitude"); + } + set + { + this.OnPropertyChanging("Address2_Latitude"); + this.SetAttributeValue("address2_latitude", value); + this.OnPropertyChanged("Address2_Latitude"); + } + } + + /// + /// First line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] + public string Address2_Line1 + { + get + { + return this.GetAttributeValue("address2_line1"); + } + set + { + this.OnPropertyChanging("Address2_Line1"); + this.SetAttributeValue("address2_line1", value); + this.OnPropertyChanged("Address2_Line1"); + } + } + + /// + /// Second line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] + public string Address2_Line2 + { + get + { + return this.GetAttributeValue("address2_line2"); + } + set + { + this.OnPropertyChanging("Address2_Line2"); + this.SetAttributeValue("address2_line2", value); + this.OnPropertyChanged("Address2_Line2"); + } + } + + /// + /// Third line for entering address 2 information. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] + public string Address2_Line3 + { + get + { + return this.GetAttributeValue("address2_line3"); + } + set + { + this.OnPropertyChanging("Address2_Line3"); + this.SetAttributeValue("address2_line3", value); + this.OnPropertyChanged("Address2_Line3"); + } + } + + /// + /// Longitude for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] + public System.Nullable Address2_Longitude + { + get + { + return this.GetAttributeValue>("address2_longitude"); + } + set + { + this.OnPropertyChanging("Address2_Longitude"); + this.SetAttributeValue("address2_longitude", value); + this.OnPropertyChanged("Address2_Longitude"); + } + } + + /// + /// Name to enter for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] + public string Address2_Name + { + get + { + return this.GetAttributeValue("address2_name"); + } + set + { + this.OnPropertyChanging("Address2_Name"); + this.SetAttributeValue("address2_name", value); + this.OnPropertyChanged("Address2_Name"); + } + } + + /// + /// ZIP Code or postal code for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] + public string Address2_PostalCode + { + get + { + return this.GetAttributeValue("address2_postalcode"); + } + set + { + this.OnPropertyChanging("Address2_PostalCode"); + this.SetAttributeValue("address2_postalcode", value); + this.OnPropertyChanged("Address2_PostalCode"); + } + } + + /// + /// Post office box number for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] + public string Address2_PostOfficeBox + { + get + { + return this.GetAttributeValue("address2_postofficebox"); + } + set + { + this.OnPropertyChanging("Address2_PostOfficeBox"); + this.SetAttributeValue("address2_postofficebox", value); + this.OnPropertyChanged("Address2_PostOfficeBox"); + } + } + + /// + /// Method of shipment for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public virtual systemuser_address2_shippingmethodcode? Address2_ShippingMethodCode + { + get + { + return ((systemuser_address2_shippingmethodcode?)(EntityOptionSetEnum.GetEnum(this, "address2_shippingmethodcode"))); + } + set + { + this.OnPropertyChanging("Address2_ShippingMethodCode"); + this.SetAttributeValue("address2_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address2_ShippingMethodCode"); + } + } + + /// + /// State or province for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] + public string Address2_StateOrProvince + { + get + { + return this.GetAttributeValue("address2_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address2_StateOrProvince"); + this.SetAttributeValue("address2_stateorprovince", value); + this.OnPropertyChanged("Address2_StateOrProvince"); + } + } + + /// + /// First telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] + public string Address2_Telephone1 + { + get + { + return this.GetAttributeValue("address2_telephone1"); + } + set + { + this.OnPropertyChanging("Address2_Telephone1"); + this.SetAttributeValue("address2_telephone1", value); + this.OnPropertyChanged("Address2_Telephone1"); + } + } + + /// + /// Second telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] + public string Address2_Telephone2 + { + get + { + return this.GetAttributeValue("address2_telephone2"); + } + set + { + this.OnPropertyChanging("Address2_Telephone2"); + this.SetAttributeValue("address2_telephone2", value); + this.OnPropertyChanged("Address2_Telephone2"); + } + } + + /// + /// Third telephone number associated with address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] + public string Address2_Telephone3 + { + get + { + return this.GetAttributeValue("address2_telephone3"); + } + set + { + this.OnPropertyChanging("Address2_Telephone3"); + this.SetAttributeValue("address2_telephone3", value); + this.OnPropertyChanged("Address2_Telephone3"); + } + } + + /// + /// United Parcel Service (UPS) zone for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] + public string Address2_UPSZone + { + get + { + return this.GetAttributeValue("address2_upszone"); + } + set + { + this.OnPropertyChanging("Address2_UPSZone"); + this.SetAttributeValue("address2_upszone", value); + this.OnPropertyChanged("Address2_UPSZone"); + } + } + + /// + /// 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 + { + get + { + return this.GetAttributeValue>("address2_utcoffset"); + } + set + { + this.OnPropertyChanging("Address2_UTCOffset"); + this.SetAttributeValue("address2_utcoffset", value); + this.OnPropertyChanged("Address2_UTCOffset"); + } + } + + /// + /// The identifier for the application. This is used to access data in another application. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("applicationid")] + public System.Nullable ApplicationId + { + get + { + return this.GetAttributeValue>("applicationid"); + } + set + { + this.OnPropertyChanging("ApplicationId"); + this.SetAttributeValue("applicationid", value); + this.OnPropertyChanged("ApplicationId"); + } + } + + /// + /// 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 + { + get + { + return this.GetAttributeValue("applicationiduri"); + } + } + + /// + /// This is the application directory object Id. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("azureactivedirectoryobjectid")] + public System.Nullable AzureActiveDirectoryObjectId + { + get + { + return this.GetAttributeValue>("azureactivedirectoryobjectid"); + } + } + + /// + /// Date and time when the user was set as soft deleted in Azure. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("azuredeletedon")] + public System.Nullable AzureDeletedOn + { + get + { + return this.GetAttributeValue>("azuredeletedon"); + } + } + + /// + /// Azure state of user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("azurestate")] + public virtual systemuser_azurestate? AzureState + { + get + { + return ((systemuser_azurestate?)(EntityOptionSetEnum.GetEnum(this, "azurestate"))); + } + set + { + this.OnPropertyChanging("AzureState"); + this.SetAttributeValue("azurestate", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("AzureState"); + } + } + + /// + /// Unique identifier of the business unit with which the user is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] + public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId + { + get + { + return this.GetAttributeValue("businessunitid"); + } + set + { + this.OnPropertyChanging("BusinessUnitId"); + this.SetAttributeValue("businessunitid", value); + this.OnPropertyChanged("BusinessUnitId"); + } + } + + /// + /// Fiscal calendar associated with the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] + public Microsoft.Xrm.Sdk.EntityReference CalendarId + { + get + { + return this.GetAttributeValue("calendarid"); + } + set + { + this.OnPropertyChanging("CalendarId"); + this.SetAttributeValue("calendarid", value); + this.OnPropertyChanged("CalendarId"); + } + } + + /// + /// License type of user. This is used only in the on-premises version of the product. Online licenses are managed through Microsoft 365 Office Portal + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("caltype")] + public virtual systemuser_caltype? CALType + { + get + { + return ((systemuser_caltype?)(EntityOptionSetEnum.GetEnum(this, "caltype"))); + } + set + { + this.OnPropertyChanging("CALType"); + this.SetAttributeValue("caltype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("CALType"); + } + } + + /// + /// Unique identifier of the user who created the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the user was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + 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 + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + } + + /// + /// Indicates if default outlook filters have been populated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultfilterspopulated")] + public System.Nullable DefaultFiltersPopulated + { + get + { + return this.GetAttributeValue>("defaultfilterspopulated"); + } + } + + /// + /// Select the mailbox associated with this user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultmailbox")] + public Microsoft.Xrm.Sdk.EntityReference DefaultMailbox + { + get + { + return this.GetAttributeValue("defaultmailbox"); + } + } + + /// + /// Type a default folder name for the user's OneDrive For Business location. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultodbfoldername")] + public string DefaultOdbFolderName + { + get + { + return this.GetAttributeValue("defaultodbfoldername"); + } + } + + /// + /// User delete state + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deletedstate")] + public virtual systemuser_deletestate? DeletedState + { + get + { + return ((systemuser_deletestate?)(EntityOptionSetEnum.GetEnum(this, "deletedstate"))); + } + } + + /// + /// Reason for disabling the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("disabledreason")] + public string DisabledReason + { + get + { + return this.GetAttributeValue("disabledreason"); + } + } + + /// + /// Whether to display the user in service views. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayinserviceviews")] + public System.Nullable DisplayInServiceViews + { + get + { + return this.GetAttributeValue>("displayinserviceviews"); + } + set + { + this.OnPropertyChanging("DisplayInServiceViews"); + this.SetAttributeValue("displayinserviceviews", value); + this.OnPropertyChanged("DisplayInServiceViews"); + } + } + + /// + /// Active Directory domain of which the user is a member. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("domainname")] + public string DomainName + { + get + { + return this.GetAttributeValue("domainname"); + } + set + { + this.OnPropertyChanging("DomainName"); + this.SetAttributeValue("domainname", value); + this.OnPropertyChanged("DomainName"); + } + } + + /// + /// Shows the status of the primary email address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailrouteraccessapproval")] + public virtual systemuser_emailrouteraccessapproval? EmailRouterAccessApproval + { + get + { + return ((systemuser_emailrouteraccessapproval?)(EntityOptionSetEnum.GetEnum(this, "emailrouteraccessapproval"))); + } + set + { + this.OnPropertyChanging("EmailRouterAccessApproval"); + this.SetAttributeValue("emailrouteraccessapproval", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("EmailRouterAccessApproval"); + } + } + + /// + /// Employee identifier for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("employeeid")] + public string EmployeeId + { + get + { + return this.GetAttributeValue("employeeid"); + } + set + { + this.OnPropertyChanging("EmployeeId"); + this.SetAttributeValue("employeeid", value); + this.OnPropertyChanged("EmployeeId"); + } + } + + /// + /// Shows the default image for the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] + public byte[] EntityImage + { + get + { + return this.GetAttributeValue("entityimage"); + } + set + { + this.OnPropertyChanging("EntityImage"); + this.SetAttributeValue("entityimage", value); + this.OnPropertyChanged("EntityImage"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] + public System.Nullable EntityImage_Timestamp + { + get + { + return this.GetAttributeValue>("entityimage_timestamp"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] + public string EntityImage_URL + { + get + { + return this.GetAttributeValue("entityimage_url"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + 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 + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// First name of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firstname")] + public string FirstName + { + get + { + return this.GetAttributeValue("firstname"); + } + set + { + this.OnPropertyChanging("FirstName"); + this.SetAttributeValue("firstname", value); + this.OnPropertyChanged("FirstName"); + } + } + + /// + /// Full name of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fullname")] + public string FullName + { + get + { + return this.GetAttributeValue("fullname"); + } + } + + /// + /// Government identifier for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("governmentid")] + public string GovernmentId + { + get + { + return this.GetAttributeValue("governmentid"); + } + set + { + this.OnPropertyChanging("GovernmentId"); + this.SetAttributeValue("governmentid", value); + this.OnPropertyChanged("GovernmentId"); + } + } + + /// + /// Home phone number for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("homephone")] + public string HomePhone + { + get + { + return this.GetAttributeValue("homephone"); + } + set + { + this.OnPropertyChanging("HomePhone"); + this.SetAttributeValue("homephone", value); + this.OnPropertyChanged("HomePhone"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("identityid")] + public System.Nullable IdentityId + { + 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 + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Incoming email delivery method for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemaildeliverymethod")] + public virtual systemuser_incomingemaildeliverymethod? IncomingEmailDeliveryMethod + { + get + { + return ((systemuser_incomingemaildeliverymethod?)(EntityOptionSetEnum.GetEnum(this, "incomingemaildeliverymethod"))); + } + set + { + this.OnPropertyChanging("IncomingEmailDeliveryMethod"); + this.SetAttributeValue("incomingemaildeliverymethod", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("IncomingEmailDeliveryMethod"); + } + } + + /// + /// Internal email address for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("internalemailaddress")] + public string InternalEMailAddress + { + get + { + return this.GetAttributeValue("internalemailaddress"); + } + set + { + this.OnPropertyChanging("InternalEMailAddress"); + this.SetAttributeValue("internalemailaddress", value); + this.OnPropertyChanged("InternalEMailAddress"); + } + } + + /// + /// User invitation status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invitestatuscode")] + public virtual systemuser_invitestatuscode? InviteStatusCode + { + get + { + return ((systemuser_invitestatuscode?)(EntityOptionSetEnum.GetEnum(this, "invitestatuscode"))); + } + set + { + this.OnPropertyChanging("InviteStatusCode"); + this.SetAttributeValue("invitestatuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("InviteStatusCode"); + } + } + + /// + /// Bypasses the selected user from IP firewall restriction + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isallowedbyipfirewall")] + public System.Nullable IsAllowedByIpFirewall + { + get + { + return this.GetAttributeValue>("isallowedbyipfirewall"); + } + set + { + this.OnPropertyChanging("IsAllowedByIpFirewall"); + this.SetAttributeValue("isallowedbyipfirewall", value); + this.OnPropertyChanged("IsAllowedByIpFirewall"); + } + } + + /// + /// Information about whether the user is enabled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] + public System.Nullable IsDisabled + { + get + { + return this.GetAttributeValue>("isdisabled"); + } + set + { + this.OnPropertyChanging("IsDisabled"); + this.SetAttributeValue("isdisabled", value); + this.OnPropertyChanged("IsDisabled"); + } + } + + /// + /// Shows the status of approval of the email address by O365 Admin. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isemailaddressapprovedbyo365admin")] + public System.Nullable IsEmailAddressApprovedByO365Admin + { + get + { + return this.GetAttributeValue>("isemailaddressapprovedbyo365admin"); + } + } + + /// + /// Check if user is an integration user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isintegrationuser")] + public System.Nullable IsIntegrationUser + { + get + { + return this.GetAttributeValue>("isintegrationuser"); + } + set + { + this.OnPropertyChanging("IsIntegrationUser"); + this.SetAttributeValue("isintegrationuser", value); + this.OnPropertyChanged("IsIntegrationUser"); + } + } + + /// + /// Information about whether the user is licensed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("islicensed")] + public System.Nullable IsLicensed + { + get + { + return this.GetAttributeValue>("islicensed"); + } + set + { + this.OnPropertyChanging("IsLicensed"); + this.SetAttributeValue("islicensed", value); + this.OnPropertyChanged("IsLicensed"); + } + } + + /// + /// Information about whether the user is synced with the directory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issyncwithdirectory")] + public System.Nullable IsSyncWithDirectory + { + get + { + return this.GetAttributeValue>("issyncwithdirectory"); + } + set + { + this.OnPropertyChanging("IsSyncWithDirectory"); + this.SetAttributeValue("issyncwithdirectory", value); + this.OnPropertyChanged("IsSyncWithDirectory"); + } + } + + /// + /// Job title of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("jobtitle")] + public string JobTitle + { + get + { + return this.GetAttributeValue("jobtitle"); + } + set + { + this.OnPropertyChanging("JobTitle"); + this.SetAttributeValue("jobtitle", value); + this.OnPropertyChanged("JobTitle"); + } + } + + /// + /// Last name of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastname")] + public string LastName + { + get + { + return this.GetAttributeValue("lastname"); + } + set + { + this.OnPropertyChanging("LastName"); + this.SetAttributeValue("lastname", value); + this.OnPropertyChanged("LastName"); + } + } + + /// + /// Middle name of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("middlename")] + public string MiddleName + { + get + { + return this.GetAttributeValue("middlename"); + } + set + { + this.OnPropertyChanging("MiddleName"); + this.SetAttributeValue("middlename", value); + this.OnPropertyChanged("MiddleName"); + } + } + + /// + /// Mobile alert email address for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobilealertemail")] + public string MobileAlertEMail + { + get + { + return this.GetAttributeValue("mobilealertemail"); + } + set + { + this.OnPropertyChanging("MobileAlertEMail"); + this.SetAttributeValue("mobilealertemail", value); + this.OnPropertyChanged("MobileAlertEMail"); + } + } + + /// + /// Items contained with a particular SystemUser. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobileofflineprofileid")] + public Microsoft.Xrm.Sdk.EntityReference MobileOfflineProfileId + { + get + { + return this.GetAttributeValue("mobileofflineprofileid"); + } + set + { + this.OnPropertyChanging("MobileOfflineProfileId"); + this.SetAttributeValue("mobileofflineprofileid", value); + this.OnPropertyChanged("MobileOfflineProfileId"); + } + } + + /// + /// Mobile phone number for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobilephone")] + public string MobilePhone + { + get + { + return this.GetAttributeValue("mobilephone"); + } + set + { + this.OnPropertyChanging("MobilePhone"); + this.SetAttributeValue("mobilephone", value); + this.OnPropertyChanged("MobilePhone"); + } + } + + /// + /// Unique identifier of the user who last modified the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the user was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + 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 + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + } + + /// + /// Nickname of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nickname")] + public string NickName + { + get + { + return this.GetAttributeValue("nickname"); + } + set + { + this.OnPropertyChanging("NickName"); + this.SetAttributeValue("nickname", value); + this.OnPropertyChanged("NickName"); + } + } + + /// + /// Unique identifier of the organization associated with the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public System.Nullable OrganizationId + { + get + { + return this.GetAttributeValue>("organizationid"); + } + } + + /// + /// Outgoing email delivery method for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingemaildeliverymethod")] + public virtual systemuser_outgoingemaildeliverymethod? OutgoingEmailDeliveryMethod + { + get + { + return ((systemuser_outgoingemaildeliverymethod?)(EntityOptionSetEnum.GetEnum(this, "outgoingemaildeliverymethod"))); + } + set + { + this.OnPropertyChanging("OutgoingEmailDeliveryMethod"); + this.SetAttributeValue("outgoingemaildeliverymethod", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("OutgoingEmailDeliveryMethod"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Unique identifier of the manager of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsystemuserid")] + public Microsoft.Xrm.Sdk.EntityReference ParentSystemUserId + { + get + { + return this.GetAttributeValue("parentsystemuserid"); + } + set + { + this.OnPropertyChanging("ParentSystemUserId"); + this.SetAttributeValue("parentsystemuserid", value); + this.OnPropertyChanged("ParentSystemUserId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("passporthi")] + public System.Nullable PassportHi + { + get + { + return this.GetAttributeValue>("passporthi"); + } + set + { + this.OnPropertyChanging("PassportHi"); + this.SetAttributeValue("passporthi", value); + this.OnPropertyChanged("PassportHi"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("passportlo")] + public System.Nullable PassportLo + { + get + { + return this.GetAttributeValue>("passportlo"); + } + set + { + this.OnPropertyChanging("PassportLo"); + this.SetAttributeValue("passportlo", value); + this.OnPropertyChanged("PassportLo"); + } + } + + /// + /// Personal email address of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("personalemailaddress")] + public string PersonalEMailAddress + { + get + { + return this.GetAttributeValue("personalemailaddress"); + } + set + { + this.OnPropertyChanging("PersonalEMailAddress"); + this.SetAttributeValue("personalemailaddress", value); + this.OnPropertyChanged("PersonalEMailAddress"); + } + } + + /// + /// URL for the Website on which a photo of the user is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("photourl")] + public string PhotoUrl + { + get + { + return this.GetAttributeValue("photourl"); + } + set + { + this.OnPropertyChanging("PhotoUrl"); + this.SetAttributeValue("photourl", value); + this.OnPropertyChanged("PhotoUrl"); + } + } + + /// + /// User's position in hierarchical security model. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("positionid")] + public Microsoft.Xrm.Sdk.EntityReference PositionId + { + get + { + return this.GetAttributeValue("positionid"); + } + set + { + this.OnPropertyChanging("PositionId"); + this.SetAttributeValue("positionid", value); + this.OnPropertyChanged("PositionId"); + } + } + + /// + /// Preferred address for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredaddresscode")] + public virtual systemuser_preferredaddresscode? PreferredAddressCode + { + get + { + return ((systemuser_preferredaddresscode?)(EntityOptionSetEnum.GetEnum(this, "preferredaddresscode"))); + } + set + { + this.OnPropertyChanging("PreferredAddressCode"); + this.SetAttributeValue("preferredaddresscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PreferredAddressCode"); + } + } + + /// + /// Preferred email address for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredemailcode")] + public virtual systemuser_preferredemailcode? PreferredEmailCode + { + get + { + return ((systemuser_preferredemailcode?)(EntityOptionSetEnum.GetEnum(this, "preferredemailcode"))); + } + set + { + this.OnPropertyChanging("PreferredEmailCode"); + this.SetAttributeValue("preferredemailcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PreferredEmailCode"); + } + } + + /// + /// Preferred phone number for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredphonecode")] + public virtual systemuser_preferredphonecode? PreferredPhoneCode + { + get + { + return ((systemuser_preferredphonecode?)(EntityOptionSetEnum.GetEnum(this, "preferredphonecode"))); + } + set + { + this.OnPropertyChanging("PreferredPhoneCode"); + this.SetAttributeValue("preferredphonecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PreferredPhoneCode"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the default queue for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] + public Microsoft.Xrm.Sdk.EntityReference QueueId + { + get + { + return this.GetAttributeValue("queueid"); + } + set + { + this.OnPropertyChanging("QueueId"); + this.SetAttributeValue("queueid", value); + this.OnPropertyChanged("QueueId"); + } + } + + /// + /// Salutation for correspondence with the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salutation")] + public string Salutation + { + get + { + return this.GetAttributeValue("salutation"); + } + set + { + this.OnPropertyChanging("Salutation"); + this.SetAttributeValue("salutation", value); + this.OnPropertyChanged("Salutation"); + } + } + + /// + /// Check if user is a setup user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("setupuser")] + public System.Nullable SetupUser + { + get + { + return this.GetAttributeValue>("setupuser"); + } + set + { + this.OnPropertyChanging("SetupUser"); + this.SetAttributeValue("setupuser", value); + this.OnPropertyChanged("SetupUser"); + } + } + + /// + /// SharePoint Work Email Address + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharepointemailaddress")] + public string SharePointEmailAddress + { + get + { + return this.GetAttributeValue("sharepointemailaddress"); + } + set + { + this.OnPropertyChanging("SharePointEmailAddress"); + this.SetAttributeValue("sharepointemailaddress", value); + this.OnPropertyChanged("SharePointEmailAddress"); + } + } + + /// + /// Skill set of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("skills")] + public string Skills + { + get + { + return this.GetAttributeValue("skills"); + } + set + { + this.OnPropertyChanging("Skills"); + this.SetAttributeValue("skills", value); + this.OnPropertyChanged("Skills"); + } + } + + /// + /// Shows the ID of the stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + public System.Nullable StageId + { + get + { + return this.GetAttributeValue>("stageid"); + } + set + { + this.OnPropertyChanging("StageId"); + this.SetAttributeValue("stageid", value); + this.OnPropertyChanged("StageId"); + } + } + + /// + /// The type of user + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemmanagedusertype")] + public virtual systemuser_systemmanagedusertype? SystemManagedUserType + { + get + { + return ((systemuser_systemmanagedusertype?)(EntityOptionSetEnum.GetEnum(this, "systemmanagedusertype"))); + } + set + { + this.OnPropertyChanging("SystemManagedUserType"); + this.SetAttributeValue("systemmanagedusertype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("SystemManagedUserType"); + } + } + + /// + /// Unique identifier for the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public System.Nullable SystemUserId + { + get + { + return this.GetAttributeValue>("systemuserid"); + } + set + { + this.OnPropertyChanging("SystemUserId"); + this.SetAttributeValue("systemuserid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SystemUserId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] + public override System.Guid Id + { + get + { + return base.Id; + } + 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 + { + get + { + return this.GetAttributeValue("territoryid"); + } + set + { + this.OnPropertyChanging("TerritoryId"); + this.SetAttributeValue("territoryid", value); + this.OnPropertyChanged("TerritoryId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Title of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] + public string Title + { + get + { + return this.GetAttributeValue("title"); + } + set + { + this.OnPropertyChanging("Title"); + this.SetAttributeValue("title", value); + this.OnPropertyChanged("Title"); + } + } + + /// + /// Unique identifier of the currency associated with the systemuser. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traversedpath")] + public string TraversedPath + { + get + { + return this.GetAttributeValue("traversedpath"); + } + set + { + this.OnPropertyChanging("TraversedPath"); + this.SetAttributeValue("traversedpath", value); + this.OnPropertyChanged("TraversedPath"); + } + } + + /// + /// Shows the type of user license. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userlicensetype")] + public System.Nullable UserLicenseType + { + get + { + return this.GetAttributeValue>("userlicensetype"); + } + set + { + this.OnPropertyChanging("UserLicenseType"); + this.SetAttributeValue("userlicensetype", value); + this.OnPropertyChanged("UserLicenseType"); + } + } + + /// + /// User PUID User Identifiable Information + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userpuid")] + public string UserPuid + { + 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 + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version number of the user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Windows Live ID + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("windowsliveid")] + public string WindowsLiveID + { + get + { + return this.GetAttributeValue("windowsliveid"); + } + set + { + this.OnPropertyChanging("WindowsLiveID"); + this.SetAttributeValue("windowsliveid", value); + this.OnPropertyChanged("WindowsLiveID"); + } + } + + /// + /// User's Yammer login email address + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammeremailaddress")] + public string YammerEmailAddress + { + get + { + return this.GetAttributeValue("yammeremailaddress"); + } + set + { + this.OnPropertyChanging("YammerEmailAddress"); + this.SetAttributeValue("yammeremailaddress", value); + this.OnPropertyChanged("YammerEmailAddress"); + } + } + + /// + /// User's Yammer ID + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammeruserid")] + public string YammerUserId + { + get + { + return this.GetAttributeValue("yammeruserid"); + } + set + { + this.OnPropertyChanging("YammerUserId"); + this.SetAttributeValue("yammeruserid", value); + this.OnPropertyChanged("YammerUserId"); + } + } + + /// + /// Pronunciation of the first name of the user, written in phonetic hiragana or katakana characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifirstname")] + public string YomiFirstName + { + get + { + return this.GetAttributeValue("yomifirstname"); + } + set + { + this.OnPropertyChanging("YomiFirstName"); + this.SetAttributeValue("yomifirstname", value); + this.OnPropertyChanged("YomiFirstName"); + } + } + + /// + /// Pronunciation of the full name of the user, written in phonetic hiragana or katakana characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifullname")] + public string YomiFullName + { + 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 + { + get + { + return this.GetAttributeValue("yomilastname"); + } + set + { + this.OnPropertyChanging("YomiLastName"); + this.SetAttributeValue("yomilastname", value); + this.OnPropertyChanged("YomiLastName"); + } + } + + /// + /// Pronunciation of the middle name of the user, written in phonetic hiragana or katakana characters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomimiddlename")] + public string YomiMiddleName + { + get + { + return this.GetAttributeValue("yomimiddlename"); + } + set + { + this.OnPropertyChanging("YomiMiddleName"); + this.SetAttributeValue("yomimiddlename", value); + this.OnPropertyChanged("YomiMiddleName"); + } + } + + /// + /// 1:N createdby_pluginassembly + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_pluginassembly")] + public System.Collections.Generic.IEnumerable createdby_pluginassembly + { + get + { + return this.GetRelatedEntities("createdby_pluginassembly", null); + } + set + { + this.OnPropertyChanging("createdby_pluginassembly"); + this.SetRelatedEntities("createdby_pluginassembly", null, value); + this.OnPropertyChanged("createdby_pluginassembly"); + } + } + + /// + /// 1:N createdby_plugintype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_plugintype")] + public System.Collections.Generic.IEnumerable createdby_plugintype + { + get + { + return this.GetRelatedEntities("createdby_plugintype", null); + } + set + { + this.OnPropertyChanging("createdby_plugintype"); + this.SetRelatedEntities("createdby_plugintype", null, value); + this.OnPropertyChanged("createdby_plugintype"); + } + } + + /// + /// 1:N createdby_sdkmessage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessage")] + public System.Collections.Generic.IEnumerable createdby_sdkmessage + { + get + { + return this.GetRelatedEntities("createdby_sdkmessage", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessage"); + this.SetRelatedEntities("createdby_sdkmessage", null, value); + this.OnPropertyChanged("createdby_sdkmessage"); + } + } + + /// + /// 1:N createdby_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagefilter")] + public System.Collections.Generic.IEnumerable createdby_sdkmessagefilter + { + get + { + return this.GetRelatedEntities("createdby_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessagefilter"); + this.SetRelatedEntities("createdby_sdkmessagefilter", null, value); + this.OnPropertyChanged("createdby_sdkmessagefilter"); + } + } + + /// + /// 1:N createdby_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable createdby_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("createdby_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessageprocessingstep"); + this.SetRelatedEntities("createdby_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("createdby_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N createdby_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstepimage")] + public System.Collections.Generic.IEnumerable createdby_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntities("createdby_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("createdby_sdkmessageprocessingstepimage"); + this.SetRelatedEntities("createdby_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("createdby_sdkmessageprocessingstepimage"); + } + } + + /// + /// 1:N impersonatinguserid_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("impersonatinguserid_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable impersonatinguserid_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("impersonatinguserid_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("impersonatinguserid_sdkmessageprocessingstep"); + this.SetRelatedEntities("impersonatinguserid_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("impersonatinguserid_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N lk_asyncoperation_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_createdby")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_createdby + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_createdby", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_createdby"); + this.SetRelatedEntities("lk_asyncoperation_createdby", null, value); + this.OnPropertyChanged("lk_asyncoperation_createdby"); + } + } + + /// + /// 1:N lk_asyncoperation_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_createdonbehalfby"); + this.SetRelatedEntities("lk_asyncoperation_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_asyncoperation_createdonbehalfby"); + } + } + + /// + /// 1:N lk_asyncoperation_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_modifiedby")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_modifiedby + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_modifiedby"); + this.SetRelatedEntities("lk_asyncoperation_modifiedby", null, value); + this.OnPropertyChanged("lk_asyncoperation_modifiedby"); + } + } + + /// + /// 1:N lk_asyncoperation_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_asyncoperation_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_asyncoperation_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_asyncoperation_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_asyncoperation_modifiedonbehalfby"); + this.SetRelatedEntities("lk_asyncoperation_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_asyncoperation_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_importjobbase_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_createdby")] + public System.Collections.Generic.IEnumerable lk_importjobbase_createdby + { + get + { + return this.GetRelatedEntities("lk_importjobbase_createdby", null); + } + set + { + this.OnPropertyChanging("lk_importjobbase_createdby"); + this.SetRelatedEntities("lk_importjobbase_createdby", null, value); + this.OnPropertyChanged("lk_importjobbase_createdby"); + } + } + + /// + /// 1:N lk_importjobbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importjobbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importjobbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importjobbase_createdonbehalfby"); + this.SetRelatedEntities("lk_importjobbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_importjobbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_importjobbase_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_modifiedby")] + public System.Collections.Generic.IEnumerable lk_importjobbase_modifiedby + { + get + { + return this.GetRelatedEntities("lk_importjobbase_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_importjobbase_modifiedby"); + this.SetRelatedEntities("lk_importjobbase_modifiedby", null, value); + this.OnPropertyChanged("lk_importjobbase_modifiedby"); + } + } + + /// + /// 1:N lk_importjobbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_importjobbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_importjobbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_importjobbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_importjobbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_importjobbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_importjobbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_pluginassembly_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_pluginassembly_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_pluginassembly_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_pluginassembly_createdonbehalfby"); + this.SetRelatedEntities("lk_pluginassembly_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_pluginassembly_createdonbehalfby"); + } + } + + /// + /// 1:N lk_pluginassembly_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_pluginassembly_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_pluginassembly_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_pluginassembly_modifiedonbehalfby"); + this.SetRelatedEntities("lk_pluginassembly_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_pluginassembly_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_pluginpackage_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginpackage_createdby")] + public System.Collections.Generic.IEnumerable lk_pluginpackage_createdby + { + get + { + return this.GetRelatedEntities("lk_pluginpackage_createdby", null); + } + set + { + this.OnPropertyChanging("lk_pluginpackage_createdby"); + this.SetRelatedEntities("lk_pluginpackage_createdby", null, value); + this.OnPropertyChanged("lk_pluginpackage_createdby"); + } + } + + /// + /// 1:N lk_pluginpackage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginpackage_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_pluginpackage_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_pluginpackage_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_pluginpackage_createdonbehalfby"); + this.SetRelatedEntities("lk_pluginpackage_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_pluginpackage_createdonbehalfby"); + } + } + + /// + /// 1:N lk_pluginpackage_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginpackage_modifiedby")] + public System.Collections.Generic.IEnumerable lk_pluginpackage_modifiedby + { + get + { + return this.GetRelatedEntities("lk_pluginpackage_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_pluginpackage_modifiedby"); + this.SetRelatedEntities("lk_pluginpackage_modifiedby", null, value); + this.OnPropertyChanged("lk_pluginpackage_modifiedby"); + } + } + + /// + /// 1:N lk_pluginpackage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginpackage_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_pluginpackage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_pluginpackage_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_pluginpackage_modifiedonbehalfby"); + this.SetRelatedEntities("lk_pluginpackage_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_pluginpackage_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_plugintype_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_plugintype_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_plugintype_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_plugintype_createdonbehalfby"); + this.SetRelatedEntities("lk_plugintype_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_plugintype_createdonbehalfby"); + } + } + + /// + /// 1:N lk_plugintype_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_plugintype_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_plugintype_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_plugintype_modifiedonbehalfby"); + this.SetRelatedEntities("lk_plugintype_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_plugintype_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_publisher_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_createdby")] + public System.Collections.Generic.IEnumerable lk_publisher_createdby + { + get + { + return this.GetRelatedEntities("lk_publisher_createdby", null); + } + set + { + this.OnPropertyChanging("lk_publisher_createdby"); + this.SetRelatedEntities("lk_publisher_createdby", null, value); + this.OnPropertyChanged("lk_publisher_createdby"); + } + } + + /// + /// 1:N lk_publisher_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_modifiedby")] + public System.Collections.Generic.IEnumerable lk_publisher_modifiedby + { + get + { + return this.GetRelatedEntities("lk_publisher_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_publisher_modifiedby"); + this.SetRelatedEntities("lk_publisher_modifiedby", null, value); + this.OnPropertyChanged("lk_publisher_modifiedby"); + } + } + + /// + /// 1:N lk_publisherbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_publisherbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_publisherbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_publisherbase_createdonbehalfby"); + this.SetRelatedEntities("lk_publisherbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_publisherbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_publisherbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_publisherbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_publisherbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_publisherbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_publisherbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_publisherbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessage_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessage_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessage_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessage_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessage_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessage_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessage_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessage_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessage_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagefilter_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagefilter_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagefilter_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagefilter_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagefilter_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagefilter_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessagefilter_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessagefilter_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessagefilter_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessagefilter_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessagefilter_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessagefilter_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstep_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstep_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstep_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstep_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstep_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstep_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstep_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstep_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstep_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstep_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstep_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstep_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstepimage_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstepimage_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstepimage_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstepimage_createdonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstepimage_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstepimage_createdonbehalfby"); + } + } + + /// + /// 1:N lk_sdkmessageprocessingstepimage_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_sdkmessageprocessingstepimage_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_sdkmessageprocessingstepimage_modifiedonbehalfby"); + this.SetRelatedEntities("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_sdkmessageprocessingstepimage_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_solution_createdby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_createdby")] + public System.Collections.Generic.IEnumerable lk_solution_createdby + { + get + { + return this.GetRelatedEntities("lk_solution_createdby", null); + } + set + { + this.OnPropertyChanging("lk_solution_createdby"); + this.SetRelatedEntities("lk_solution_createdby", null, value); + this.OnPropertyChanged("lk_solution_createdby"); + } + } + + /// + /// 1:N lk_solution_modifiedby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_modifiedby")] + public System.Collections.Generic.IEnumerable lk_solution_modifiedby + { + get + { + return this.GetRelatedEntities("lk_solution_modifiedby", null); + } + set + { + this.OnPropertyChanging("lk_solution_modifiedby"); + this.SetRelatedEntities("lk_solution_modifiedby", null, value); + this.OnPropertyChanged("lk_solution_modifiedby"); + } + } + + /// + /// 1:N lk_solutionbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_solutionbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_solutionbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_solutionbase_createdonbehalfby"); + this.SetRelatedEntities("lk_solutionbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_solutionbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_solutionbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_solutionbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_solutionbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_solutionbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_solutionbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_solutionbase_modifiedonbehalfby"); + } + } + + /// + /// 1:N lk_solutioncomponentbase_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_createdonbehalfby")] + public System.Collections.Generic.IEnumerable lk_solutioncomponentbase_createdonbehalfby + { + get + { + return this.GetRelatedEntities("lk_solutioncomponentbase_createdonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_solutioncomponentbase_createdonbehalfby"); + this.SetRelatedEntities("lk_solutioncomponentbase_createdonbehalfby", null, value); + this.OnPropertyChanged("lk_solutioncomponentbase_createdonbehalfby"); + } + } + + /// + /// 1:N lk_solutioncomponentbase_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_modifiedonbehalfby")] + public System.Collections.Generic.IEnumerable lk_solutioncomponentbase_modifiedonbehalfby + { + get + { + return this.GetRelatedEntities("lk_solutioncomponentbase_modifiedonbehalfby", null); + } + set + { + this.OnPropertyChanging("lk_solutioncomponentbase_modifiedonbehalfby"); + this.SetRelatedEntities("lk_solutioncomponentbase_modifiedonbehalfby", null, value); + this.OnPropertyChanged("lk_solutioncomponentbase_modifiedonbehalfby"); + } + } + + /// + /// 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 + { + get + { + return this.GetRelatedEntities("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_systemuser_createdonbehalfby"); + this.SetRelatedEntities("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_systemuser_createdonbehalfby"); + } + } + + /// + /// 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 + { + get + { + return this.GetRelatedEntities("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_systemuser_modifiedonbehalfby"); + this.SetRelatedEntities("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_systemuser_modifiedonbehalfby"); + } + } + + /// + /// 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 + { + get + { + return this.GetRelatedEntities("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_systemuserbase_createdby"); + this.SetRelatedEntities("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_systemuserbase_createdby"); + } + } + + /// + /// 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 + { + get + { + return this.GetRelatedEntities("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referencedlk_systemuserbase_modifiedby"); + this.SetRelatedEntities("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referencedlk_systemuserbase_modifiedby"); + } + } + + /// + /// 1:N modifiedby_pluginassembly + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_pluginassembly")] + public System.Collections.Generic.IEnumerable modifiedby_pluginassembly + { + get + { + return this.GetRelatedEntities("modifiedby_pluginassembly", null); + } + set + { + this.OnPropertyChanging("modifiedby_pluginassembly"); + this.SetRelatedEntities("modifiedby_pluginassembly", null, value); + this.OnPropertyChanged("modifiedby_pluginassembly"); + } + } + + /// + /// 1:N modifiedby_plugintype + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_plugintype")] + public System.Collections.Generic.IEnumerable modifiedby_plugintype + { + get + { + return this.GetRelatedEntities("modifiedby_plugintype", null); + } + set + { + this.OnPropertyChanging("modifiedby_plugintype"); + this.SetRelatedEntities("modifiedby_plugintype", null, value); + this.OnPropertyChanged("modifiedby_plugintype"); + } + } + + /// + /// 1:N modifiedby_sdkmessage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessage")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessage + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessage", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessage"); + this.SetRelatedEntities("modifiedby_sdkmessage", null, value); + this.OnPropertyChanged("modifiedby_sdkmessage"); + } + } + + /// + /// 1:N modifiedby_sdkmessagefilter + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagefilter")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessagefilter + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessagefilter", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessagefilter"); + this.SetRelatedEntities("modifiedby_sdkmessagefilter", null, value); + this.OnPropertyChanged("modifiedby_sdkmessagefilter"); + } + } + + /// + /// 1:N modifiedby_sdkmessageprocessingstep + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstep")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessageprocessingstep + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessageprocessingstep", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessageprocessingstep"); + this.SetRelatedEntities("modifiedby_sdkmessageprocessingstep", null, value); + this.OnPropertyChanged("modifiedby_sdkmessageprocessingstep"); + } + } + + /// + /// 1:N modifiedby_sdkmessageprocessingstepimage + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstepimage")] + public System.Collections.Generic.IEnumerable modifiedby_sdkmessageprocessingstepimage + { + get + { + return this.GetRelatedEntities("modifiedby_sdkmessageprocessingstepimage", null); + } + set + { + this.OnPropertyChanging("modifiedby_sdkmessageprocessingstepimage"); + this.SetRelatedEntities("modifiedby_sdkmessageprocessingstepimage", null, value); + this.OnPropertyChanged("modifiedby_sdkmessageprocessingstepimage"); + } + } + + /// + /// 1:N system_user_asyncoperation + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("system_user_asyncoperation")] + public System.Collections.Generic.IEnumerable system_user_asyncoperation + { + get + { + return this.GetRelatedEntities("system_user_asyncoperation", null); + } + set + { + this.OnPropertyChanging("system_user_asyncoperation"); + this.SetRelatedEntities("system_user_asyncoperation", null, value); + this.OnPropertyChanged("system_user_asyncoperation"); + } + } + + /// + /// 1:N SystemUser_AsyncOperations + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_AsyncOperations")] + public System.Collections.Generic.IEnumerable SystemUser_AsyncOperations + { + get + { + return this.GetRelatedEntities("SystemUser_AsyncOperations", null); + } + set + { + this.OnPropertyChanging("SystemUser_AsyncOperations"); + this.SetRelatedEntities("SystemUser_AsyncOperations", null, value); + this.OnPropertyChanged("SystemUser_AsyncOperations"); + } + } + + /// + /// 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 + { + get + { + return this.GetRelatedEntities("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced); + } + set + { + this.OnPropertyChanging("Referenceduser_parent_user"); + this.SetRelatedEntities("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); + this.OnPropertyChanged("Referenceduser_parent_user"); + } + } + + /// + /// N:1 lk_systemuser_createdonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public PPDS.Dataverse.Generated.SystemUser Referencinglk_systemuser_createdonbehalfby + { + get + { + return this.GetRelatedEntity("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 lk_systemuser_modifiedonbehalfby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public PPDS.Dataverse.Generated.SystemUser Referencinglk_systemuser_modifiedonbehalfby + { + get + { + return this.GetRelatedEntity("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + } + + /// + /// N:1 lk_systemuserbase_createdby + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] + public PPDS.Dataverse.Generated.SystemUser Referencinglk_systemuserbase_createdby + { + 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 PPDS.Dataverse.Generated.SystemUser Referencinglk_systemuserbase_modifiedby + { + 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 PPDS.Dataverse.Generated.SystemUser Referencinguser_parent_user + { + get + { + return this.GetRelatedEntity("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing); + } + set + { + this.OnPropertyChanging("Referencinguser_parent_user"); + this.SetRelatedEntity("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); + this.OnPropertyChanged("Referencinguser_parent_user"); + } + } + } +} diff --git a/src/PPDS.Dataverse/Generated/EntityOptionSetEnum.cs b/src/PPDS.Dataverse/Generated/EntityOptionSetEnum.cs new file mode 100644 index 000000000..7224312f7 --- /dev/null +++ b/src/PPDS.Dataverse/Generated/EntityOptionSetEnum.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + 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; + } + } +} diff --git a/src/PPDS.Dataverse/Generated/OptionSets/componentstate.cs b/src/PPDS.Dataverse/Generated/OptionSets/componentstate.cs new file mode 100644 index 000000000..87a404ed6 --- /dev/null +++ b/src/PPDS.Dataverse/Generated/OptionSets/componentstate.cs @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// The state of this component. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum componentstate + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Published = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unpublished = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Deleted = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DeletedUnpublished = 3, + } +} diff --git a/src/PPDS.Dataverse/Generated/OptionSets/componenttype.cs b/src/PPDS.Dataverse/Generated/OptionSets/componenttype.cs new file mode 100644 index 000000000..4574e3d5a --- /dev/null +++ b/src/PPDS.Dataverse/Generated/OptionSets/componenttype.cs @@ -0,0 +1,292 @@ +//------------------------------------------------------------------------------ +// +// 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 PPDS.Dataverse.Generated +{ + + + /// + /// All of the possible component types for solutions. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.16")] + public enum componenttype + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Entity = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Attribute = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Relationship = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AttributePicklistValue = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AttributeLookupValue = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ViewAttribute = 6, + + [System.Runtime.Serialization.EnumMemberAttribute()] + LocalizedLabel = 7, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RelationshipExtraCondition = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + OptionSet = 9, + + [System.Runtime.Serialization.EnumMemberAttribute()] + EntityRelationship = 10, + + [System.Runtime.Serialization.EnumMemberAttribute()] + EntityRelationshipRole = 11, + + [System.Runtime.Serialization.EnumMemberAttribute()] + EntityRelationshipRelationships = 12, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ManagedProperty = 13, + + [System.Runtime.Serialization.EnumMemberAttribute()] + EntityKey = 14, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Privilege = 16, + + [System.Runtime.Serialization.EnumMemberAttribute()] + PrivilegeObjectTypeCode = 17, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Role = 20, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RolePrivilege = 21, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DisplayString = 22, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DisplayStringMap = 23, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Form = 24, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Organization = 25, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SavedQuery = 26, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Workflow = 29, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Report = 31, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ReportEntity = 32, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ReportCategory = 33, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ReportVisibility = 34, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Attachment = 35, + + [System.Runtime.Serialization.EnumMemberAttribute()] + EmailTemplate = 36, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ContractTemplate = 37, + + [System.Runtime.Serialization.EnumMemberAttribute()] + KBArticleTemplate = 38, + + [System.Runtime.Serialization.EnumMemberAttribute()] + MailMergeTemplate = 39, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DuplicateRule = 44, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DuplicateRuleCondition = 45, + + [System.Runtime.Serialization.EnumMemberAttribute()] + EntityMap = 46, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AttributeMap = 47, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RibbonCommand = 48, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RibbonContextGroup = 49, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RibbonCustomization = 50, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RibbonRule = 52, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RibbonTabToCommandMap = 53, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RibbonDiff = 55, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SavedQueryVisualization = 59, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SystemForm = 60, + + [System.Runtime.Serialization.EnumMemberAttribute()] + WebResource = 61, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SiteMap = 62, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ConnectionRole = 63, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ComplexControl = 64, + + [System.Runtime.Serialization.EnumMemberAttribute()] + FieldSecurityProfile = 70, + + [System.Runtime.Serialization.EnumMemberAttribute()] + FieldPermission = 71, + + [System.Runtime.Serialization.EnumMemberAttribute()] + PluginType = 90, + + [System.Runtime.Serialization.EnumMemberAttribute()] + PluginAssembly = 91, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SDKMessageProcessingStep = 92, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SDKMessageProcessingStepImage = 93, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ServiceEndpoint = 95, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RoutingRule = 150, + + [System.Runtime.Serialization.EnumMemberAttribute()] + RoutingRuleItem = 151, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SLA = 152, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SLAItem = 153, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ConvertRule = 154, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ConvertRuleItem = 155, + + [System.Runtime.Serialization.EnumMemberAttribute()] + HierarchyRule = 65, + + [System.Runtime.Serialization.EnumMemberAttribute()] + MobileOfflineProfile = 161, + + [System.Runtime.Serialization.EnumMemberAttribute()] + MobileOfflineProfileItem = 162, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SimilarityRule = 165, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CustomControl = 66, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CustomControlDefaultConfig = 68, + + [System.Runtime.Serialization.EnumMemberAttribute()] + DataSourceMapping = 166, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SDKMessage = 201, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SDKMessageFilter = 202, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SdkMessagePair = 203, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SdkMessageRequest = 204, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SdkMessageRequestField = 205, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SdkMessageResponse = 206, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SdkMessageResponseField = 207, + + [System.Runtime.Serialization.EnumMemberAttribute()] + WebWizard = 210, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Index = 18, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ImportMap = 208, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CanvasApp = 300, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Connector = 371, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Connector1 = 372, + + [System.Runtime.Serialization.EnumMemberAttribute()] + EnvironmentVariableDefinition = 380, + + [System.Runtime.Serialization.EnumMemberAttribute()] + EnvironmentVariableValue = 381, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AIProjectType = 400, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AIProject = 401, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AIConfiguration = 402, + + [System.Runtime.Serialization.EnumMemberAttribute()] + EntityAnalyticsConfiguration = 430, + + [System.Runtime.Serialization.EnumMemberAttribute()] + AttributeImageConfiguration = 431, + + [System.Runtime.Serialization.EnumMemberAttribute()] + EntityImageConfiguration = 432, + } +} diff --git a/src/PPDS.Migration/CHANGELOG.md b/src/PPDS.Migration/CHANGELOG.md index 1ed1559cb..e4f7cc5d7 100644 --- a/src/PPDS.Migration/CHANGELOG.md +++ b/src/PPDS.Migration/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- **PluginStepManager and UserMappingGenerator refactored to use early-bound entities** - Replaced magic string attribute access with strongly-typed `PPDS.Dataverse.Generated` classes (`SdkMessageProcessingStep`, `SdkMessageFilter`, `SystemUser`). Provides compile-time type safety and IntelliSense for entity operations. ([#56](https://github.com/joshsmithxrm/ppds-sdk/issues/56)) + ## [1.0.0-beta.2] - 2026-01-02 ### Changed diff --git a/src/PPDS.Migration/Import/PluginStepManager.cs b/src/PPDS.Migration/Import/PluginStepManager.cs index 1b93bed66..efb24bb4e 100644 --- a/src/PPDS.Migration/Import/PluginStepManager.cs +++ b/src/PPDS.Migration/Import/PluginStepManager.cs @@ -6,6 +6,7 @@ using Microsoft.Extensions.Logging; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Query; +using PPDS.Dataverse.Generated; using PPDS.Dataverse.Pooling; namespace PPDS.Migration.Import @@ -88,10 +89,11 @@ public async Task DisablePluginStepsAsync( { cancellationToken.ThrowIfCancellationRequested(); - var update = new Entity("sdkmessageprocessingstep", stepId) + var update = new SdkMessageProcessingStep { - ["statecode"] = new OptionSetValue(1), // Disabled - ["statuscode"] = new OptionSetValue(2) // Disabled + Id = stepId, + StateCode = sdkmessageprocessingstep_statecode.Disabled, + StatusCode = sdkmessageprocessingstep_statuscode.Disabled }; try @@ -125,10 +127,11 @@ public async Task EnablePluginStepsAsync( { cancellationToken.ThrowIfCancellationRequested(); - var update = new Entity("sdkmessageprocessingstep", stepId) + var update = new SdkMessageProcessingStep { - ["statecode"] = new OptionSetValue(0), // Enabled - ["statuscode"] = new OptionSetValue(1) // Enabled + Id = stepId, + StateCode = sdkmessageprocessingstep_statecode.Enabled, + StatusCode = sdkmessageprocessingstep_statuscode.Enabled }; try @@ -146,18 +149,18 @@ private static string BuildPluginStepQuery(List objectTypeCodes) { // Build filter condition for multiple entities using Object Type Codes var entityConditions = string.Join("\n", - objectTypeCodes.Select(otc => $"")); + objectTypeCodes.Select(otc => $"")); return $@" - - - + + + - - - + + + - + {entityConditions} diff --git a/src/PPDS.Migration/UserMapping/UserMappingGenerator.cs b/src/PPDS.Migration/UserMapping/UserMappingGenerator.cs index 1000c74f5..3c853e9a4 100644 --- a/src/PPDS.Migration/UserMapping/UserMappingGenerator.cs +++ b/src/PPDS.Migration/UserMapping/UserMappingGenerator.cs @@ -7,6 +7,7 @@ using System.Xml.Linq; using Microsoft.Extensions.Logging; using Microsoft.Xrm.Sdk.Query; +using PPDS.Dataverse.Generated; using PPDS.Dataverse.Pooling; using PPDS.Migration.Models; @@ -165,23 +166,23 @@ private static async Task> QueryUsersAsync( { await using var client = await pool.GetClientAsync(cancellationToken: cancellationToken).ConfigureAwait(false); - var query = new QueryExpression("systemuser") + var query = new QueryExpression(SystemUser.EntityLogicalName) { ColumnSet = new ColumnSet( - "systemuserid", - "fullname", - "domainname", - "internalemailaddress", - "azureactivedirectoryobjectid", - "isdisabled", - "accessmode" + SystemUser.Fields.SystemUserId, + SystemUser.Fields.FullName, + SystemUser.Fields.DomainName, + SystemUser.Fields.InternalEMailAddress, + SystemUser.Fields.AzureActiveDirectoryObjectId, + SystemUser.Fields.IsDisabled, + SystemUser.Fields.AccessMode ), Criteria = new FilterExpression { Conditions = { // Exclude disabled users - new ConditionExpression("isdisabled", ConditionOperator.Equal, false) + new ConditionExpression(SystemUser.Fields.IsDisabled, ConditionOperator.Equal, false) } } }; @@ -191,12 +192,12 @@ private static async Task> QueryUsersAsync( return results.Entities.Select(e => new UserInfo { SystemUserId = e.Id, - FullName = e.GetAttributeValue("fullname") ?? "(no name)", - DomainName = e.GetAttributeValue("domainname"), - Email = e.GetAttributeValue("internalemailaddress"), - AadObjectId = e.GetAttributeValue("azureactivedirectoryobjectid"), - IsDisabled = e.GetAttributeValue("isdisabled"), - AccessMode = e.GetAttributeValue("accessmode")?.Value ?? 0 + FullName = e.GetAttributeValue(SystemUser.Fields.FullName) ?? "(no name)", + DomainName = e.GetAttributeValue(SystemUser.Fields.DomainName), + Email = e.GetAttributeValue(SystemUser.Fields.InternalEMailAddress), + AadObjectId = e.GetAttributeValue(SystemUser.Fields.AzureActiveDirectoryObjectId), + IsDisabled = e.GetAttributeValue(SystemUser.Fields.IsDisabled), + AccessMode = e.GetAttributeValue(SystemUser.Fields.AccessMode)?.Value ?? 0 }).ToList(); } }