From fa236454c9dd9844831192908bbde8b627063de5 Mon Sep 17 00:00:00 2001 From: Morten Holt Date: Fri, 31 Oct 2025 15:04:30 +0100 Subject: [PATCH 1/4] REFACTOR: Use XrmContext to generate context instead --- AssemblyAnalyzer/Reader/LocalReader.cs | 34 +- Dataverse/.config/dotnet-tools.json | 13 + Dataverse/Context/.editorconfig | 77 +- Dataverse/Context/DataverseContext.cs | 331 -- Dataverse/Context/Entities/CustomApi.cs | 1479 ----- .../Entities/CustomApiRequestParameter.cs | 1069 ---- .../Entities/CustomApiResponseProperty.cs | 1032 ---- Dataverse/Context/Entities/Dependency.cs | 377 -- Dataverse/Context/Entities/DependencyNode.cs | 346 -- Dataverse/Context/Entities/PluginAssembly.cs | 1124 ---- Dataverse/Context/Entities/PluginType.cs | 912 ---- Dataverse/Context/Entities/Publisher.cs | 1638 ------ Dataverse/Context/Entities/SdkMessage.cs | 992 ---- .../Context/Entities/SdkMessageFilter.cs | 854 --- .../Entities/SdkMessageProcessingStep.cs | 1663 ------ .../Entities/SdkMessageProcessingStepImage.cs | 803 --- Dataverse/Context/Entities/Solution.cs | 1137 ---- .../Context/Entities/SolutionComponent.cs | 547 -- Dataverse/Context/Entities/SystemUser.cs | 4768 ----------------- Dataverse/Context/Entities/WebResource.cs | 962 ---- Dataverse/Context/EntityOptionSetEnum.cs | 67 - .../Context/OptionSets/ComponentState.cs | 62 +- Dataverse/Context/OptionSets/ComponentType.cs | 752 ++- .../Context/OptionSets/CustomApiFieldType.cs | 134 +- .../Context/OptionSets/DependencyType.cs | 62 +- .../attributes/OptionSetMetadataAttribute.cs | 16 + .../RelationshipMetadataAttribute.cs | 26 + Dataverse/Context/builderSettings.json | 151 - .../activityparty_instancetypecode.cs | 30 + .../activityparty_participationtypemask.cs | 62 + ...stomapi_allowedcustomprocessingsteptype.cs | 22 + .../optionsets/customapi_bindingtype.cs | 22 + .../Context/optionsets/customapi_statecode.cs | 18 + .../optionsets/customapi_statuscode.cs | 18 + .../customapirequestparameter_statecode.cs | 18 + .../customapirequestparameter_statuscode.cs | 18 + .../customapiresponseproperty_statecode.cs | 18 + .../customapiresponseproperty_statuscode.cs | 18 + .../optionsets/pluginassembly_authtype.cs | 14 + .../pluginassembly_isolationmode.cs | 22 + .../optionsets/pluginassembly_sourcetype.cs | 30 + .../publisher_address1_addresstypecode.cs | 14 + .../publisher_address1_shippingmethodcode.cs | 14 + .../publisher_address2_addresstypecode.cs | 14 + .../publisher_address2_shippingmethodcode.cs | 14 + .../sdkmessagefilter_primaryobjecttypecode.cs | 11 + ...dkmessagefilter_secondaryobjecttypecode.cs | 11 + ...kmessageprocessingstep_invocationsource.cs | 22 + .../sdkmessageprocessingstep_mode.cs | 18 + .../sdkmessageprocessingstep_stage.cs | 62 + .../sdkmessageprocessingstep_statecode.cs | 18 + .../sdkmessageprocessingstep_statuscode.cs | 18 + ...ssageprocessingstep_supporteddeployment.cs | 22 + ...sdkmessageprocessingstepimage_imagetype.cs | 22 + .../optionsets/solution_solutiontype.cs | 22 + .../solution_sourcecontrolsyncstatus.cs | 30 + ...solutioncomponent_rootcomponentbehavior.cs | 22 + .../optionsets/systemuser_accessmode.cs | 34 + .../systemuser_address1_addresstypecode.cs | 14 + .../systemuser_address1_shippingmethodcode.cs | 14 + .../systemuser_address2_addresstypecode.cs | 14 + .../systemuser_address2_shippingmethodcode.cs | 14 + .../optionsets/systemuser_azurestate.cs | 22 + .../Context/optionsets/systemuser_caltype.cs | 62 + .../optionsets/systemuser_deletestate.cs | 18 + .../systemuser_emailrouteraccessapproval.cs | 26 + .../systemuser_incomingemaildeliverymethod.cs | 26 + .../optionsets/systemuser_invitestatuscode.cs | 38 + .../systemuser_outgoingemaildeliverymethod.cs | 22 + .../systemuser_preferredaddresscode.cs | 18 + .../systemuser_preferredemailcode.cs | 14 + .../systemuser_preferredphonecode.cs | 26 + .../systemuser_systemmanagedusertype.cs | 22 + .../optionsets/webresource_webresourcetype.cs | 58 + Dataverse/Context/queries/DataverseContext.cs | 98 + Dataverse/Context/tables/ActivityParty.cs | 351 ++ Dataverse/Context/tables/CustomAPI.cs | 629 +++ .../tables/CustomAPIRequestParameter.cs | 512 ++ .../tables/CustomAPIResponseProperty.cs | 500 ++ Dataverse/Context/tables/Dependency.cs | 239 + Dataverse/Context/tables/DependencyNode.cs | 204 + Dataverse/Context/tables/ExtendedEntity.cs | 147 + Dataverse/Context/tables/PluginAssembly.cs | 576 ++ Dataverse/Context/tables/PluginType.cs | 516 ++ Dataverse/Context/tables/Publisher.cs | 890 +++ Dataverse/Context/tables/SdkMessage.cs | 490 ++ Dataverse/Context/tables/SdkMessageFilter.cs | 432 ++ .../tables/SdkMessageProcessingStep.cs | 701 +++ .../tables/SdkMessageProcessingStepImage.cs | 427 ++ Dataverse/Context/tables/Solution.cs | 566 ++ Dataverse/Context/tables/SolutionComponent.cs | 266 + Dataverse/Context/tables/SystemUser.cs | 2188 ++++++++ .../Context/tables/TableAttributeHelpers.cs | 105 + Dataverse/Context/tables/WebResource.cs | 498 ++ Dataverse/CustomApiReader.cs | 22 +- Dataverse/CustomApiWriter.cs | 39 +- Dataverse/DataverseReader.cs | 6 +- Dataverse/Interfaces/IDataverseReader.cs | 6 +- Dataverse/MessageReader.cs | 2 +- Dataverse/PluginAssemblyWriter.cs | 4 +- Dataverse/PluginWriter.cs | 18 +- Dataverse/WebresourceWriter.cs | 2 +- .../XrmPluginSync.EarlyBoundGenerate.xml | 165 - Dataverse/appsettings.json | 26 + Model/Webresource/WebresourceType.cs | 24 +- Tests/Webresources/WebresourceReaderTests.cs | 20 +- .../WebresourceSyncServiceTests.cs | 42 +- .../WebresourceValidationTests.cs | 12 +- Tests/Webresources/WebresourceWriterTests.cs | 54 +- 109 files changed, 12129 insertions(+), 21162 deletions(-) create mode 100644 Dataverse/.config/dotnet-tools.json delete mode 100644 Dataverse/Context/DataverseContext.cs delete mode 100644 Dataverse/Context/Entities/CustomApi.cs delete mode 100644 Dataverse/Context/Entities/CustomApiRequestParameter.cs delete mode 100644 Dataverse/Context/Entities/CustomApiResponseProperty.cs delete mode 100644 Dataverse/Context/Entities/Dependency.cs delete mode 100644 Dataverse/Context/Entities/DependencyNode.cs delete mode 100644 Dataverse/Context/Entities/PluginAssembly.cs delete mode 100644 Dataverse/Context/Entities/PluginType.cs delete mode 100644 Dataverse/Context/Entities/Publisher.cs delete mode 100644 Dataverse/Context/Entities/SdkMessage.cs delete mode 100644 Dataverse/Context/Entities/SdkMessageFilter.cs delete mode 100644 Dataverse/Context/Entities/SdkMessageProcessingStep.cs delete mode 100644 Dataverse/Context/Entities/SdkMessageProcessingStepImage.cs delete mode 100644 Dataverse/Context/Entities/Solution.cs delete mode 100644 Dataverse/Context/Entities/SolutionComponent.cs delete mode 100644 Dataverse/Context/Entities/SystemUser.cs delete mode 100644 Dataverse/Context/Entities/WebResource.cs delete mode 100644 Dataverse/Context/EntityOptionSetEnum.cs create mode 100644 Dataverse/Context/attributes/OptionSetMetadataAttribute.cs create mode 100644 Dataverse/Context/attributes/RelationshipMetadataAttribute.cs delete mode 100644 Dataverse/Context/builderSettings.json create mode 100644 Dataverse/Context/optionsets/activityparty_instancetypecode.cs create mode 100644 Dataverse/Context/optionsets/activityparty_participationtypemask.cs create mode 100644 Dataverse/Context/optionsets/customapi_allowedcustomprocessingsteptype.cs create mode 100644 Dataverse/Context/optionsets/customapi_bindingtype.cs create mode 100644 Dataverse/Context/optionsets/customapi_statecode.cs create mode 100644 Dataverse/Context/optionsets/customapi_statuscode.cs create mode 100644 Dataverse/Context/optionsets/customapirequestparameter_statecode.cs create mode 100644 Dataverse/Context/optionsets/customapirequestparameter_statuscode.cs create mode 100644 Dataverse/Context/optionsets/customapiresponseproperty_statecode.cs create mode 100644 Dataverse/Context/optionsets/customapiresponseproperty_statuscode.cs create mode 100644 Dataverse/Context/optionsets/pluginassembly_authtype.cs create mode 100644 Dataverse/Context/optionsets/pluginassembly_isolationmode.cs create mode 100644 Dataverse/Context/optionsets/pluginassembly_sourcetype.cs create mode 100644 Dataverse/Context/optionsets/publisher_address1_addresstypecode.cs create mode 100644 Dataverse/Context/optionsets/publisher_address1_shippingmethodcode.cs create mode 100644 Dataverse/Context/optionsets/publisher_address2_addresstypecode.cs create mode 100644 Dataverse/Context/optionsets/publisher_address2_shippingmethodcode.cs create mode 100644 Dataverse/Context/optionsets/sdkmessagefilter_primaryobjecttypecode.cs create mode 100644 Dataverse/Context/optionsets/sdkmessagefilter_secondaryobjecttypecode.cs create mode 100644 Dataverse/Context/optionsets/sdkmessageprocessingstep_invocationsource.cs create mode 100644 Dataverse/Context/optionsets/sdkmessageprocessingstep_mode.cs create mode 100644 Dataverse/Context/optionsets/sdkmessageprocessingstep_stage.cs create mode 100644 Dataverse/Context/optionsets/sdkmessageprocessingstep_statecode.cs create mode 100644 Dataverse/Context/optionsets/sdkmessageprocessingstep_statuscode.cs create mode 100644 Dataverse/Context/optionsets/sdkmessageprocessingstep_supporteddeployment.cs create mode 100644 Dataverse/Context/optionsets/sdkmessageprocessingstepimage_imagetype.cs create mode 100644 Dataverse/Context/optionsets/solution_solutiontype.cs create mode 100644 Dataverse/Context/optionsets/solution_sourcecontrolsyncstatus.cs create mode 100644 Dataverse/Context/optionsets/solutioncomponent_rootcomponentbehavior.cs create mode 100644 Dataverse/Context/optionsets/systemuser_accessmode.cs create mode 100644 Dataverse/Context/optionsets/systemuser_address1_addresstypecode.cs create mode 100644 Dataverse/Context/optionsets/systemuser_address1_shippingmethodcode.cs create mode 100644 Dataverse/Context/optionsets/systemuser_address2_addresstypecode.cs create mode 100644 Dataverse/Context/optionsets/systemuser_address2_shippingmethodcode.cs create mode 100644 Dataverse/Context/optionsets/systemuser_azurestate.cs create mode 100644 Dataverse/Context/optionsets/systemuser_caltype.cs create mode 100644 Dataverse/Context/optionsets/systemuser_deletestate.cs create mode 100644 Dataverse/Context/optionsets/systemuser_emailrouteraccessapproval.cs create mode 100644 Dataverse/Context/optionsets/systemuser_incomingemaildeliverymethod.cs create mode 100644 Dataverse/Context/optionsets/systemuser_invitestatuscode.cs create mode 100644 Dataverse/Context/optionsets/systemuser_outgoingemaildeliverymethod.cs create mode 100644 Dataverse/Context/optionsets/systemuser_preferredaddresscode.cs create mode 100644 Dataverse/Context/optionsets/systemuser_preferredemailcode.cs create mode 100644 Dataverse/Context/optionsets/systemuser_preferredphonecode.cs create mode 100644 Dataverse/Context/optionsets/systemuser_systemmanagedusertype.cs create mode 100644 Dataverse/Context/optionsets/webresource_webresourcetype.cs create mode 100644 Dataverse/Context/queries/DataverseContext.cs create mode 100644 Dataverse/Context/tables/ActivityParty.cs create mode 100644 Dataverse/Context/tables/CustomAPI.cs create mode 100644 Dataverse/Context/tables/CustomAPIRequestParameter.cs create mode 100644 Dataverse/Context/tables/CustomAPIResponseProperty.cs create mode 100644 Dataverse/Context/tables/Dependency.cs create mode 100644 Dataverse/Context/tables/DependencyNode.cs create mode 100644 Dataverse/Context/tables/ExtendedEntity.cs create mode 100644 Dataverse/Context/tables/PluginAssembly.cs create mode 100644 Dataverse/Context/tables/PluginType.cs create mode 100644 Dataverse/Context/tables/Publisher.cs create mode 100644 Dataverse/Context/tables/SdkMessage.cs create mode 100644 Dataverse/Context/tables/SdkMessageFilter.cs create mode 100644 Dataverse/Context/tables/SdkMessageProcessingStep.cs create mode 100644 Dataverse/Context/tables/SdkMessageProcessingStepImage.cs create mode 100644 Dataverse/Context/tables/Solution.cs create mode 100644 Dataverse/Context/tables/SolutionComponent.cs create mode 100644 Dataverse/Context/tables/SystemUser.cs create mode 100644 Dataverse/Context/tables/TableAttributeHelpers.cs create mode 100644 Dataverse/Context/tables/WebResource.cs delete mode 100644 Dataverse/XrmPluginSync.EarlyBoundGenerate.xml create mode 100644 Dataverse/appsettings.json diff --git a/AssemblyAnalyzer/Reader/LocalReader.cs b/AssemblyAnalyzer/Reader/LocalReader.cs index 3501c45..1926f2c 100644 --- a/AssemblyAnalyzer/Reader/LocalReader.cs +++ b/AssemblyAnalyzer/Reader/LocalReader.cs @@ -226,22 +226,22 @@ private record CommandResult private readonly Dictionary WebresourceTypeMap = new() { - { ".html", WebresourceType.WebpageHtml }, - { ".htm", WebresourceType.WebpageHtml }, - { ".css", WebresourceType.StyleSheetCss }, - { ".js", WebresourceType.ScriptJscript }, - { ".xml", WebresourceType.DataXml }, - { ".xaml", WebresourceType.DataXml }, - { ".xsd", WebresourceType.DataXml }, - { ".xsl", WebresourceType.StyleSheetXsl }, - { ".xslt", WebresourceType.StyleSheetXsl }, - { ".png", WebresourceType.PngFormat }, - { ".jpg", WebresourceType.JpgFormat }, - { ".jpeg", WebresourceType.JpgFormat }, - { ".gif", WebresourceType.GifFormat }, - { ".xap", WebresourceType.SilverlightXap }, - { ".ico", WebresourceType.IcoFormat }, - { ".svg", WebresourceType.VectorFormatSvg }, - { ".resx", WebresourceType.StringResx } + { ".html", WebresourceType.HTML }, + { ".htm", WebresourceType.HTML }, + { ".css", WebresourceType.CSS }, + { ".js", WebresourceType.JavaScript }, + { ".xml", WebresourceType.XML }, + { ".xaml", WebresourceType.XML }, + { ".xsd", WebresourceType.XML }, + { ".xsl", WebresourceType.XSL }, + { ".xslt", WebresourceType.XSL }, + { ".png", WebresourceType.PNG }, + { ".jpg", WebresourceType.JPG }, + { ".jpeg", WebresourceType.JPG }, + { ".gif", WebresourceType.GIF }, + { ".xap", WebresourceType.SilverlightXAP }, + { ".ico", WebresourceType.ICO }, + { ".svg", WebresourceType.SVG }, + { ".resx", WebresourceType.RSX } }; } \ No newline at end of file diff --git a/Dataverse/.config/dotnet-tools.json b/Dataverse/.config/dotnet-tools.json new file mode 100644 index 0000000..e17b5a4 --- /dev/null +++ b/Dataverse/.config/dotnet-tools.json @@ -0,0 +1,13 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "xrmcontext": { + "version": "4.0.0-beta.19", + "commands": [ + "xrmcontext" + ], + "rollForward": false + } + } +} \ No newline at end of file diff --git a/Dataverse/Context/.editorconfig b/Dataverse/Context/.editorconfig index 1ad6b86..5e5c7a7 100644 --- a/Dataverse/Context/.editorconfig +++ b/Dataverse/Context/.editorconfig @@ -1,72 +1,11 @@ -# EditorConfig for auto-generated Dataverse context files -# This file provides a modern approach to suppressing nullable warnings -# specifically for auto-generated code - root = false +# Suppress nullable reference type warnings for generated code only [*.cs] -# Suppress nullable reference type warnings for auto-generated Dataverse entities -# These are common in generated code and don't represent actual code quality issues - -# CS8600: Converting null literal or possible null value to non-nullable type -dotnet_diagnostic.CS8600.severity = none - -# CS8601: Possible null reference assignment -dotnet_diagnostic.CS8601.severity = none - -# CS8602: Dereference of a possibly null reference -dotnet_diagnostic.CS8602.severity = none - -# CS8603: Possible null reference return -dotnet_diagnostic.CS8603.severity = none - -# CS8604: Possible null reference argument -dotnet_diagnostic.CS8604.severity = none - -# CS8605: Unboxing a possibly null value -dotnet_diagnostic.CS8605.severity = none - -# CS8618: Non-nullable field must contain a non-null value when exiting constructor -dotnet_diagnostic.CS8618.severity = none - -# CS8619: Nullability of reference types in value doesn't match target type -dotnet_diagnostic.CS8619.severity = none - -# CS8625: Cannot convert null literal to non-nullable reference type -dotnet_diagnostic.CS8625.severity = none - -# CS8629: Nullable value type may be null -dotnet_diagnostic.CS8629.severity = none - -# CS8631: The type cannot be used as type parameter in the generic type or method -dotnet_diagnostic.CS8631.severity = none - -# CS8633: Nullability in constraints for type parameter doesn't match interface method -dotnet_diagnostic.CS8633.severity = none - -# CS8634: The type cannot be used as type parameter in the generic type or method -dotnet_diagnostic.CS8634.severity = none - -# CS8653: A default expression introduces a null value for a type parameter -dotnet_diagnostic.CS8653.severity = none - -# CS8714: The type cannot be used as type parameter in the generic type or method -dotnet_diagnostic.CS8714.severity = none - -# CS8765: Nullability of type of parameter doesn't match overridden member -dotnet_diagnostic.CS8765.severity = none - -# CS8766: Nullability of reference types in return type doesn't match implemented member -dotnet_diagnostic.CS8766.severity = none - -# CS8767: Nullability of reference types in type of parameter doesn't match implemented member -dotnet_diagnostic.CS8767.severity = none - -# CS8769: Nullability of reference types in type of parameter doesn't match interface member -dotnet_diagnostic.CS8769.severity = none - -# CS8777: Parameter must have a non-null value when exiting -dotnet_diagnostic.CS8777.severity = none - -# CS8981: The type name only contains lower-cased ascii characters -dotnet_diagnostic.CS8981.severity = none \ No newline at end of file +dotnet_diagnostic.CS8600.severity = none # Converting null literal or possible null value to non-nullable type +dotnet_diagnostic.CS8601.severity = none # Possible null reference assignment +dotnet_diagnostic.CS8602.severity = none # Dereference of a possibly null reference +dotnet_diagnostic.CS8603.severity = none # Possible null reference return +dotnet_diagnostic.CS8604.severity = none # Possible null reference argument +dotnet_diagnostic.CS8618.severity = none # Non-nullable field must contain a non-null value when exiting constructor +dotnet_diagnostic.CS8625.severity = none # Cannot convert null literal to non-nullable reference type diff --git a/Dataverse/Context/DataverseContext.cs b/Dataverse/Context/DataverseContext.cs deleted file mode 100644 index 9b26570..0000000 --- a/Dataverse/Context/DataverseContext.cs +++ /dev/null @@ -1,331 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -[assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()] - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// Represents a source of entities bound to a Dataverse service. It tracks and manages changes made to the retrieved entities. - /// - public partial class DataverseContext : Microsoft.Xrm.Sdk.Client.OrganizationServiceContext - { - - /// - /// Constructor. - /// - public DataverseContext(Microsoft.Xrm.Sdk.IOrganizationService service) : - base(service) - { - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable CustomApiSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable CustomApiRequestParameterSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable CustomApiResponsePropertySet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable DependencySet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable DependencyNodeSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable PluginAssemblySet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable PluginTypeSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable PublisherSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable SdkMessageSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable SdkMessageFilterSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable SdkMessageProcessingStepSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable SdkMessageProcessingStepImageSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable SolutionSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable SolutionComponentSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable SystemUserSet - { - get - { - return this.CreateQuery(); - } - } - - /// - /// Gets a binding to the set of all entities. - /// - public System.Linq.IQueryable WebResourceSet - { - get - { - return this.CreateQuery(); - } - } - } - - /// - /// Attribute to handle storing the OptionSet's Metadata. - /// - [System.AttributeUsageAttribute(System.AttributeTargets.Field)] - public sealed class OptionSetMetadataAttribute : System.Attribute - { - - private object[] _nameObjects; - - private System.Collections.Generic.Dictionary _names; - - /// - /// Color of the OptionSetValue. - /// - public string Color { get; set; } - - /// - /// Description of the OptionSetValue. - /// - public string Description { get; set; } - - /// - /// Display order index of the OptionSetValue. - /// - public int DisplayIndex { get; set; } - - /// - /// External value of the OptionSetValue. - /// - public string ExternalValue { get; set; } - - /// - /// Name of the OptionSetValue. - /// - public string Name { get; set; } - - /// - /// Names of the OptionSetValue. - /// - public System.Collections.Generic.Dictionary Names - { - get - { - return _names ?? (_names = CreateNames()); - } - set - { - _names = value; - if (value == null) - { - _nameObjects = new object[0]; - } - else - { - _nameObjects = null; - } - } - } - - /// - /// Initializes a new instance of the class. - /// - /// Name of the value. - /// Display order index of the value. - /// Color of the value. - /// Description of the value. - /// External value of the value. - /// Names of the value. - public OptionSetMetadataAttribute(string name, int displayIndex, string color = null, string description = null, string externalValue = null, params object[] names) - { - this.Color = color; - this.Description = description; - this._nameObjects = names; - this.ExternalValue = externalValue; - this.DisplayIndex = displayIndex; - this.Name = name; - } - - private System.Collections.Generic.Dictionary CreateNames() - { - System.Collections.Generic.Dictionary names = new System.Collections.Generic.Dictionary(); - for (int i = 0; (i < _nameObjects.Length); i = (i + 2)) - { - names.Add(((int)(_nameObjects[i])), ((string)(_nameObjects[(i + 1)]))); - } - return names; - } - } - - /// - /// Extension class to handle retrieving of OptionSetMetadataAttribute. - /// - public static class OptionSetExtension - { - - /// - /// Returns the OptionSetMetadataAttribute for the given enum value - /// - /// OptionSet Enum Type - /// Enum Value with OptionSetMetadataAttribute - public static OptionSetMetadataAttribute GetMetadata(this T value) - where T : struct, System.IConvertible - { - System.Type enumType = typeof(T); - if (!enumType.IsEnum) - { - throw new System.ArgumentException("T must be an enum!"); - } - System.Reflection.MemberInfo[] members = enumType.GetMember(value.ToString()); - for (int i = 0; (i < members.Length); i++ - ) - { - System.Attribute attribute = System.Reflection.CustomAttributeExtensions.GetCustomAttribute(members[i], typeof(OptionSetMetadataAttribute)); - if (attribute != null) - { - return ((OptionSetMetadataAttribute)(attribute)); - } - } - throw new System.ArgumentException("T must be an enum adorned with an OptionSetMetadataAttribute!"); - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/CustomApi.cs b/Dataverse/Context/Entities/CustomApi.cs deleted file mode 100644 index 37a0e42..0000000 --- a/Dataverse/Context/Entities/CustomApi.cs +++ /dev/null @@ -1,1479 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// The Allowed Custom Processing Step Type - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum CustomApi_AllowedCustomProcessingStepType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Async Only", 1, "#0000ff")] - AsyncOnly = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("None", 0, "#0000ff")] - None = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Sync and Async", 2, "#0000ff")] - SyncAndAsync = 2, - } - - [System.Runtime.Serialization.DataContractAttribute()] - public enum CustomApi_BindingType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Entity", 1, "#0000ff")] - Entity = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Entity Collection", 2, "#0000ff")] - EntityCollection = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Global", 0, "#0000ff")] - Global = 0, - } - - /// - /// Status of the Custom API - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum CustomApi_StateCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 1, - } - - /// - /// Reason for the status of the Custom API - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum CustomApi_StatusCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 2, - } - - /// - /// Entity that defines a custom API - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("customapi")] - public partial class CustomApi : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the customapi entity - /// - public partial class Fields - { - public const string AllowedCustomProcessingStepType = "allowedcustomprocessingsteptype"; - public const string AllowedCustomProcessingStepTypeName = "allowedcustomprocessingsteptypename"; - public const string BindingType = "bindingtype"; - public const string BindingTypeName = "bindingtypename"; - public const string BoundEntityLogicalName = "boundentitylogicalname"; - public const string ComponentIdUnique = "componentidunique"; - public const string ComponentState = "componentstate"; - public const string ComponentStateName = "componentstatename"; - public const string CreatedBy = "createdby"; - public const string CreatedByName = "createdbyname"; - public const string CreatedByYomiName = "createdbyyominame"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string CustomApi_CustomApiRequestParameter = "CustomApi_CustomApiRequestParameter"; - public const string CustomApi_CustomApiResponseProperty = "CustomApi_CustomApiResponseProperty"; - public const string CustomApiId = "customapiid"; - public const string Id = "customapiid"; - public const string Description = "description"; - public const string DisplayName = "displayname"; - public const string ExecutePrivilegeName = "executeprivilegename"; - public const string FxExpressionId = "fxexpressionid"; - public const string FxExpressionIdName = "fxexpressionidname"; - public const string ImportSequenceNumber = "importsequencenumber"; - public const string IsCustomizable = "iscustomizable"; - public const string IsFunction = "isfunction"; - public const string IsFunctionName = "isfunctionname"; - public const string IsManaged = "ismanaged"; - public const string IsManagedName = "ismanagedname"; - public const string IsPrivate = "isprivate"; - public const string IsPrivateName = "isprivatename"; - public const string Lk_CustomApi_CreatedBy = "lk_customapi_createdby"; - public const string Lk_CustomApi_CreatedOnBehalfBy = "lk_customapi_createdonbehalfby"; - public const string Lk_CustomApi_ModifiedBy = "lk_customapi_modifiedby"; - public const string Lk_CustomApi_ModifiedOnBehalfBy = "lk_customapi_modifiedonbehalfby"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedByYomiName = "modifiedbyyominame"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string Name = "name"; - public const string OverriddenCreatedOn = "overriddencreatedon"; - public const string OverwriteTime = "overwritetime"; - public const string OwnerId = "ownerid"; - public const string OwnerIdName = "owneridname"; - public const string OwnerIdYomiName = "owneridyominame"; - public const string OwningBusinessUnit = "owningbusinessunit"; - public const string OwningBusinessUnitName = "owningbusinessunitname"; - public const string OwningTeam = "owningteam"; - public const string OwningUser = "owninguser"; - public const string PluginType_CustomApi = "plugintype_customapi"; - public const string PluginTypeId = "plugintypeid"; - public const string PluginTypeIdName = "plugintypeidname"; - public const string PowerFxRuleId = "powerfxruleid"; - public const string PowerFxRuleIdName = "powerfxruleidname"; - public const string SdkMessage_CustomApi = "sdkmessage_customapi"; - public const string SdkMessageId = "sdkmessageid"; - public const string SdkMessageIdName = "sdkmessageidname"; - public const string SolutionId = "solutionid"; - public const string StateCode = "statecode"; - public const string StateCodename = "statecodename"; - public const string StatusCode = "statuscode"; - public const string StatusCodename = "statuscodename"; - public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; - public const string UniqueName = "uniquename"; - public const string User_CustomApi = "user_customapi"; - public const string UtcConversionTimeZoneCode = "utcconversiontimezonecode"; - public const string VersionNumber = "versionnumber"; - public const string WorkflowSdkStepEnabled = "workflowsdkstepenabled"; - public const string WorkflowSdkStepEnabledName = "workflowsdkstepenabledname"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApi(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApi(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApi(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - public const string AlternateKeys = "componentstate,overwritetime,uniquename"; - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApi() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "customapiid"; - - public const string PrimaryNameAttribute = "name"; - - public const string EntitySchemaName = "CustomAPI"; - - public const string EntityLogicalName = "customapi"; - - public const string EntityLogicalCollectionName = "customapis"; - - public const string EntitySetName = "customapis"; - - /// - /// The type of custom processing step allowed - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowedcustomprocessingsteptype")] - public virtual CustomApi_AllowedCustomProcessingStepType? AllowedCustomProcessingStepType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((CustomApi_AllowedCustomProcessingStepType?)(EntityOptionSetEnum.GetEnum(this, "allowedcustomprocessingsteptype"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("allowedcustomprocessingsteptype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("allowedcustomprocessingsteptypename")] - public string? AllowedCustomProcessingStepTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("allowedcustomprocessingsteptype")) - { - return this.FormattedValues["allowedcustomprocessingsteptype"]; - } - else - { - return default(string); - } - } - } - - /// - /// The binding type of the custom API - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bindingtype")] - public virtual CustomApi_BindingType? BindingType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((CustomApi_BindingType?)(EntityOptionSetEnum.GetEnum(this, "bindingtype"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("bindingtype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bindingtypename")] - public string? BindingTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("bindingtype")) - { - return this.FormattedValues["bindingtype"]; - } - else - { - return default(string); - } - } - } - - /// - /// The logical name of the entity bound to the custom API - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("boundentitylogicalname")] - public string? BoundEntityLogicalName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("boundentitylogicalname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("boundentitylogicalname", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentidunique")] - public System.Nullable ComponentIdUnique - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("componentidunique"); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] - public virtual ComponentState? ComponentState - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((ComponentState?)(EntityOptionSetEnum.GetEnum(this, "componentstate"))); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstatename")] - public string? ComponentStateName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("componentstate")) - { - return this.FormattedValues["componentstate"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string? CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] - public string? CreatedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for custom API instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customapiid")] - public System.Nullable CustomApiId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("customapiid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("customapiid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customapiid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.CustomApiId = value; - } - } - - /// - /// Localized description for custom API instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] - public string? Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("description", value); - } - } - - /// - /// Localized display name for custom API instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayname")] - public string? DisplayName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("displayname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("displayname", value); - } - } - - /// - /// Name of the privilege that allows execution of the custom API - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executeprivilegename")] - public string? ExecutePrivilegeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("executeprivilegename"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("executeprivilegename", value); - } - } - - /// - /// Unique identifier for fxexpression associated with Custom API. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fxexpressionid")] - public Microsoft.Xrm.Sdk.EntityReference? FxExpressionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("fxexpressionid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("fxexpressionid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fxexpressionidname")] - public string? FxExpressionIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("fxexpressionid")) - { - return this.FormattedValues["fxexpressionid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Sequence number of the import that created this record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] - public System.Nullable ImportSequenceNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("importsequencenumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("importsequencenumber", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] - public Microsoft.Xrm.Sdk.BooleanManagedProperty? IsCustomizable - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("iscustomizable"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("iscustomizable", value); - } - } - - /// - /// Indicates if the custom API is a function (GET is supported) or not (POST is supported) - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isfunction")] - public System.Nullable IsFunction - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isfunction"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isfunction", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isfunctionname")] - public string? IsFunctionName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("isfunction")) - { - return this.FormattedValues["isfunction"]; - } - else - { - return default(string); - } - } - } - - /// - /// Indicates whether the solution component is part of a managed solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] - public System.Nullable IsManaged - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("ismanaged"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanagedname")] - public string? IsManagedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ismanaged")) - { - return this.FormattedValues["ismanaged"]; - } - else - { - return default(string); - } - } - } - - /// - /// Indicates if the custom API is private (hidden from metadata and documentation) - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isprivate")] - public System.Nullable IsPrivate - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isprivate"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isprivate", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isprivatename")] - public string? IsPrivateName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("isprivate")) - { - return this.FormattedValues["isprivate"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string? ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] - public string? ModifiedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// The primary name of the custom API - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] - public string? Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("name", value); - } - } - - /// - /// Date and time that the record was migrated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] - public System.Nullable OverriddenCreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overriddencreatedon"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("overriddencreatedon", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] - public System.Nullable OverwriteTime - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overwritetime"); - } - } - - /// - /// Owner Id - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] - public Microsoft.Xrm.Sdk.EntityReference? OwnerId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("ownerid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("ownerid", value); - } - } - - /// - /// Name of the owner - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridname")] - public string? OwnerIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ownerid")) - { - return this.FormattedValues["ownerid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Yomi name of the owner - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridyominame")] - public string? OwnerIdYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ownerid")) - { - return this.FormattedValues["ownerid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for the business unit that owns the record - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] - public Microsoft.Xrm.Sdk.EntityReference? OwningBusinessUnit - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owningbusinessunit"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunitname")] - public string? OwningBusinessUnitName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("owningbusinessunit")) - { - return this.FormattedValues["owningbusinessunit"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for the team that owns the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] - public Microsoft.Xrm.Sdk.EntityReference? OwningTeam - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owningteam"); - } - } - - /// - /// Unique identifier for the user that owns the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] - public Microsoft.Xrm.Sdk.EntityReference? OwningUser - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owninguser"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] - public Microsoft.Xrm.Sdk.EntityReference? PluginTypeId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("plugintypeid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("plugintypeid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeidname")] - public string? PluginTypeIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("plugintypeid")) - { - return this.FormattedValues["plugintypeid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for powerfxrule associated with Custom API. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("powerfxruleid")] - public Microsoft.Xrm.Sdk.EntityReference? PowerFxRuleId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("powerfxruleid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("powerfxruleid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("powerfxruleidname")] - public string? PowerFxRuleIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("powerfxruleid")) - { - return this.FormattedValues["powerfxruleid"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] - public Microsoft.Xrm.Sdk.EntityReference? SdkMessageId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("sdkmessageid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sdkmessageid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageidname")] - public string? SdkMessageIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("sdkmessageid")) - { - return this.FormattedValues["sdkmessageid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the associated solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - public System.Nullable SolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("solutionid"); - } - } - - /// - /// Status of the Custom API - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] - public virtual CustomApi_StateCode? StateCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((CustomApi_StateCode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] - public string? StateCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statecode")) - { - return this.FormattedValues["statecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Reason for the status of the Custom API - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] - public virtual CustomApi_StatusCode? StatusCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((CustomApi_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] - public string? StatusCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statuscode")) - { - return this.FormattedValues["statuscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] - public System.Nullable TimeZoneRuleVersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("timezoneruleversionnumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("timezoneruleversionnumber", value); - } - } - - /// - /// Unique name for the custom API - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] - public string? UniqueName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("uniquename"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("uniquename", value); - } - } - - /// - /// Time zone code that was in use when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] - public System.Nullable UtcConversionTimeZoneCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("utcconversiontimezonecode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("utcconversiontimezonecode", value); - } - } - - /// - /// Version Number - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// Indicates if the custom API is enabled as a workflow action - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowsdkstepenabled")] - public System.Nullable WorkflowSdkStepEnabled - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("workflowsdkstepenabled"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("workflowsdkstepenabled", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowsdkstepenabledname")] - public string? WorkflowSdkStepEnabledName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("workflowsdkstepenabled")) - { - return this.FormattedValues["workflowsdkstepenabled"]; - } - else - { - return default(string); - } - } - } - - /// - /// 1:N customapi_customapirequestparameter - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customapi_customapirequestparameter")] - public System.Collections.Generic.IEnumerable? CustomApi_CustomApiRequestParameter - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("customapi_customapirequestparameter", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("customapi_customapirequestparameter", null, value); - } - } - - /// - /// 1:N customapi_customapiresponseproperty - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customapi_customapiresponseproperty")] - public System.Collections.Generic.IEnumerable? CustomApi_CustomApiResponseProperty - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("customapi_customapiresponseproperty", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("customapi_customapiresponseproperty", null, value); - } - } - - /// - /// N:1 lk_customapi_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapi_createdby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_CustomApi_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_customapi_createdby", null); - } - } - - /// - /// N:1 lk_customapi_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapi_createdonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_CustomApi_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_customapi_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_customapi_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_customapi_modifiedby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapi_modifiedby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_CustomApi_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_customapi_modifiedby", null); - } - } - - /// - /// N:1 lk_customapi_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapi_modifiedonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_CustomApi_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_customapi_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_customapi_modifiedonbehalfby", null, value); - } - } - - /// - /// N:1 plugintype_customapi - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_customapi")] - public XrmSync.Dataverse.Context.PluginType? PluginType_CustomApi - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("plugintype_customapi", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("plugintype_customapi", null, value); - } - } - - /// - /// N:1 sdkmessage_customapi - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessage_customapi")] - public XrmSync.Dataverse.Context.SdkMessage? SdkMessage_CustomApi - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("sdkmessage_customapi", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("sdkmessage_customapi", null, value); - } - } - - /// - /// N:1 user_customapi - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_customapi")] - public XrmSync.Dataverse.Context.SystemUser? User_CustomApi - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("user_customapi", null); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApi(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["customapiid"] = base.Id; - break; - case "customapiid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/CustomApiRequestParameter.cs b/Dataverse/Context/Entities/CustomApiRequestParameter.cs deleted file mode 100644 index 6b838cd..0000000 --- a/Dataverse/Context/Entities/CustomApiRequestParameter.cs +++ /dev/null @@ -1,1069 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// Status of the Custom API Request Parameter - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum CustomApiRequestParameter_StateCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 1, - } - - /// - /// Reason for the status of the Custom API Request Parameter - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum CustomApiRequestParameter_StatusCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 2, - } - - /// - /// Entity that defines a request parameter for a custom API - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("customapirequestparameter")] - public partial class CustomApiRequestParameter : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the customapirequestparameter entity - /// - public partial class Fields - { - public const string ComponentIdUnique = "componentidunique"; - public const string ComponentState = "componentstate"; - public const string ComponentStateName = "componentstatename"; - public const string CreatedBy = "createdby"; - public const string CreatedByName = "createdbyname"; - public const string CreatedByYomiName = "createdbyyominame"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string CustomApi_CustomApiRequestParameter = "customapi_customapirequestparameter"; - public const string CustomApiId = "customapiid"; - public const string CustomApiIdName = "customapiidname"; - public const string CustomApiRequestParameterId = "customapirequestparameterid"; - public const string Id = "customapirequestparameterid"; - public const string Description = "description"; - public const string DisplayName = "displayname"; - public const string ImportSequenceNumber = "importsequencenumber"; - public const string IsCustomizable = "iscustomizable"; - public const string IsManaged = "ismanaged"; - public const string IsManagedName = "ismanagedname"; - public const string IsOptional = "isoptional"; - public const string IsOptionalName = "isoptionalname"; - public const string Lk_CustomApiRequestParameter_CreatedBy = "lk_customapirequestparameter_createdby"; - public const string Lk_CustomApiRequestParameter_CreatedOnBehalfBy = "lk_customapirequestparameter_createdonbehalfby"; - public const string Lk_CustomApiRequestParameter_ModifiedBy = "lk_customapirequestparameter_modifiedby"; - public const string Lk_CustomApiRequestParameter_ModifiedOnBehalfBy = "lk_customapirequestparameter_modifiedonbehalfby"; - public const string LogicalEntityName = "logicalentityname"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedByYomiName = "modifiedbyyominame"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string Name = "name"; - public const string OverriddenCreatedOn = "overriddencreatedon"; - public const string OverwriteTime = "overwritetime"; - public const string OwnerId = "ownerid"; - public const string OwningBusinessUnit = "owningbusinessunit"; - public const string OwningTeam = "owningteam"; - public const string OwningUser = "owninguser"; - public const string SolutionId = "solutionid"; - public const string StateCode = "statecode"; - public const string StateCodename = "statecodename"; - public const string StatusCode = "statuscode"; - public const string StatusCodename = "statuscodename"; - public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; - public const string Type = "type"; - public const string TypeName = "typename"; - public const string UniqueName = "uniquename"; - public const string UtcConversionTimeZoneCode = "utcconversiontimezonecode"; - public const string VersionNumber = "versionnumber"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApiRequestParameter(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApiRequestParameter(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApiRequestParameter(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - public const string AlternateKeys = "componentstate,customapiid,overwritetime,uniquename"; - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApiRequestParameter() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "customapirequestparameterid"; - - public const string PrimaryNameAttribute = "name"; - - public const string EntitySchemaName = "CustomAPIRequestParameter"; - - public const string EntityLogicalName = "customapirequestparameter"; - - public const string EntityLogicalCollectionName = "customapirequestparameters"; - - public const string EntitySetName = "customapirequestparameters"; - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentidunique")] - public System.Nullable ComponentIdUnique - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("componentidunique"); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] - public virtual ComponentState? ComponentState - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((ComponentState?)(EntityOptionSetEnum.GetEnum(this, "componentstate"))); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstatename")] - public string? ComponentStateName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("componentstate")) - { - return this.FormattedValues["componentstate"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string? CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] - public string? CreatedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for the custom API that owns this custom API request parameter - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customapiid")] - public Microsoft.Xrm.Sdk.EntityReference? CustomApiId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("customapiid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("customapiid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customapiidname")] - public string? CustomApiIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("customapiid")) - { - return this.FormattedValues["customapiid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for custom API request parameter instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customapirequestparameterid")] - public System.Nullable CustomApiRequestParameterId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("customapirequestparameterid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("customapirequestparameterid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customapirequestparameterid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.CustomApiRequestParameterId = value; - } - } - - /// - /// Localized description for custom API request parameter instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] - public string? Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("description", value); - } - } - - /// - /// Localized display name for custom API request parameter instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayname")] - public string? DisplayName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("displayname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("displayname", value); - } - } - - /// - /// Sequence number of the import that created this record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] - public System.Nullable ImportSequenceNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("importsequencenumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("importsequencenumber", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] - public Microsoft.Xrm.Sdk.BooleanManagedProperty? IsCustomizable - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("iscustomizable"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("iscustomizable", value); - } - } - - /// - /// Indicates whether the solution component is part of a managed solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] - public System.Nullable IsManaged - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("ismanaged"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanagedname")] - public string? IsManagedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ismanaged")) - { - return this.FormattedValues["ismanaged"]; - } - else - { - return default(string); - } - } - } - - /// - /// Indicates if the custom API request parameter is optional - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isoptional")] - public System.Nullable IsOptional - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isoptional"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isoptional", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isoptionalname")] - public string? IsOptionalName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("isoptional")) - { - return this.FormattedValues["isoptional"]; - } - else - { - return default(string); - } - } - } - - /// - /// The logical name of the entity bound to the custom API request parameter - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("logicalentityname")] - public string? LogicalEntityName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("logicalentityname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("logicalentityname", value); - } - } - - /// - /// Unique identifier of the user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string? ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] - public string? ModifiedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// The primary name of the custom API request parameter - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] - public string? Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("name", value); - } - } - - /// - /// Date and time that the record was migrated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] - public System.Nullable OverriddenCreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overriddencreatedon"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("overriddencreatedon", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] - public System.Nullable OverwriteTime - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overwritetime"); - } - } - - /// - /// Owner Id - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] - public Microsoft.Xrm.Sdk.EntityReference? OwnerId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("ownerid"); - } - } - - /// - /// Unique identifier for the business unit that owns the record - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] - public Microsoft.Xrm.Sdk.EntityReference? OwningBusinessUnit - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owningbusinessunit"); - } - } - - /// - /// Unique identifier for the team that owns the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] - public Microsoft.Xrm.Sdk.EntityReference? OwningTeam - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owningteam"); - } - } - - /// - /// Unique identifier for the user that owns the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] - public Microsoft.Xrm.Sdk.EntityReference? OwningUser - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owninguser"); - } - } - - /// - /// Unique identifier of the associated solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - public System.Nullable SolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("solutionid"); - } - } - - /// - /// Status of the Custom API Request Parameter - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] - public virtual CustomApiRequestParameter_StateCode? StateCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((CustomApiRequestParameter_StateCode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] - public string? StateCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statecode")) - { - return this.FormattedValues["statecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Reason for the status of the Custom API Request Parameter - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] - public virtual CustomApiRequestParameter_StatusCode? StatusCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((CustomApiRequestParameter_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] - public string? StatusCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statuscode")) - { - return this.FormattedValues["statuscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] - public System.Nullable TimeZoneRuleVersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("timezoneruleversionnumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("timezoneruleversionnumber", value); - } - } - - /// - /// The data type of the custom API request parameter - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] - public virtual CustomApiFieldType? Type - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((CustomApiFieldType?)(EntityOptionSetEnum.GetEnum(this, "type"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("type", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("typename")] - public string? TypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("type")) - { - return this.FormattedValues["type"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique name for the custom API request parameter - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] - public string? UniqueName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("uniquename"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("uniquename", value); - } - } - - /// - /// Time zone code that was in use when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] - public System.Nullable UtcConversionTimeZoneCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("utcconversiontimezonecode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("utcconversiontimezonecode", value); - } - } - - /// - /// Version Number - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// N:1 customapi_customapirequestparameter - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customapiid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customapi_customapirequestparameter")] - public XrmSync.Dataverse.Context.CustomApi? CustomApi_CustomApiRequestParameter - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("customapi_customapirequestparameter", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("customapi_customapirequestparameter", null, value); - } - } - - /// - /// N:1 lk_customapirequestparameter_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapirequestparameter_createdby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_CustomApiRequestParameter_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_customapirequestparameter_createdby", null); - } - } - - /// - /// N:1 lk_customapirequestparameter_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapirequestparameter_createdonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_CustomApiRequestParameter_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_customapirequestparameter_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_customapirequestparameter_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_customapirequestparameter_modifiedby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapirequestparameter_modifiedby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_CustomApiRequestParameter_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_customapirequestparameter_modifiedby", null); - } - } - - /// - /// N:1 lk_customapirequestparameter_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapirequestparameter_modifiedonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_CustomApiRequestParameter_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_customapirequestparameter_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_customapirequestparameter_modifiedonbehalfby", null, value); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApiRequestParameter(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["customapirequestparameterid"] = base.Id; - break; - case "customapirequestparameterid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/CustomApiResponseProperty.cs b/Dataverse/Context/Entities/CustomApiResponseProperty.cs deleted file mode 100644 index 503bd7f..0000000 --- a/Dataverse/Context/Entities/CustomApiResponseProperty.cs +++ /dev/null @@ -1,1032 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// Status of the Custom API Response Property - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum CustomApiResponseProperty_StateCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 1, - } - - /// - /// Reason for the status of the Custom API Response Property - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum CustomApiResponseProperty_StatusCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Active", 0)] - Active = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Inactive", 1)] - Inactive = 2, - } - - /// - /// Entity that defines a response property for a custom API - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("customapiresponseproperty")] - public partial class CustomApiResponseProperty : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the customapiresponseproperty entity - /// - public partial class Fields - { - public const string ComponentIdUnique = "componentidunique"; - public const string ComponentState = "componentstate"; - public const string ComponentStateName = "componentstatename"; - public const string CreatedBy = "createdby"; - public const string CreatedByName = "createdbyname"; - public const string CreatedByYomiName = "createdbyyominame"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string CustomApi_CustomApiResponseProperty = "customapi_customapiresponseproperty"; - public const string CustomApiId = "customapiid"; - public const string CustomApiIdName = "customapiidname"; - public const string CustomApiResponsePropertyId = "customapiresponsepropertyid"; - public const string Id = "customapiresponsepropertyid"; - public const string Description = "description"; - public const string DisplayName = "displayname"; - public const string ImportSequenceNumber = "importsequencenumber"; - public const string IsCustomizable = "iscustomizable"; - public const string IsManaged = "ismanaged"; - public const string IsManagedName = "ismanagedname"; - public const string Lk_CustomApiResponseProperty_CreatedBy = "lk_customapiresponseproperty_createdby"; - public const string Lk_CustomApiResponseProperty_CreatedOnBehalfBy = "lk_customapiresponseproperty_createdonbehalfby"; - public const string Lk_CustomApiResponseProperty_ModifiedBy = "lk_customapiresponseproperty_modifiedby"; - public const string Lk_CustomApiResponseProperty_ModifiedOnBehalfBy = "lk_customapiresponseproperty_modifiedonbehalfby"; - public const string LogicalEntityName = "logicalentityname"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedByYomiName = "modifiedbyyominame"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string Name = "name"; - public const string OverriddenCreatedOn = "overriddencreatedon"; - public const string OverwriteTime = "overwritetime"; - public const string OwnerId = "ownerid"; - public const string OwningBusinessUnit = "owningbusinessunit"; - public const string OwningTeam = "owningteam"; - public const string OwningUser = "owninguser"; - public const string SolutionId = "solutionid"; - public const string StateCode = "statecode"; - public const string StateCodename = "statecodename"; - public const string StatusCode = "statuscode"; - public const string StatusCodename = "statuscodename"; - public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; - public const string Type = "type"; - public const string TypeName = "typename"; - public const string UniqueName = "uniquename"; - public const string UtcConversionTimeZoneCode = "utcconversiontimezonecode"; - public const string VersionNumber = "versionnumber"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApiResponseProperty(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApiResponseProperty(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApiResponseProperty(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - public const string AlternateKeys = "componentstate,customapiid,overwritetime,uniquename"; - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApiResponseProperty() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "customapiresponsepropertyid"; - - public const string PrimaryNameAttribute = "name"; - - public const string EntitySchemaName = "CustomAPIResponseProperty"; - - public const string EntityLogicalName = "customapiresponseproperty"; - - public const string EntityLogicalCollectionName = "customapiresponseproperties"; - - public const string EntitySetName = "customapiresponseproperties"; - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentidunique")] - public System.Nullable ComponentIdUnique - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("componentidunique"); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] - public virtual ComponentState? ComponentState - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((ComponentState?)(EntityOptionSetEnum.GetEnum(this, "componentstate"))); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstatename")] - public string? ComponentStateName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("componentstate")) - { - return this.FormattedValues["componentstate"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string? CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] - public string? CreatedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for the custom API that owns this custom API response property - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customapiid")] - public Microsoft.Xrm.Sdk.EntityReference? CustomApiId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("customapiid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("customapiid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customapiidname")] - public string? CustomApiIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("customapiid")) - { - return this.FormattedValues["customapiid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for custom API response property instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customapiresponsepropertyid")] - public System.Nullable CustomApiResponsePropertyId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("customapiresponsepropertyid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("customapiresponsepropertyid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customapiresponsepropertyid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.CustomApiResponsePropertyId = value; - } - } - - /// - /// Localized description for custom API response property instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] - public string? Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("description", value); - } - } - - /// - /// Localized display name for custom API response property instances - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayname")] - public string? DisplayName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("displayname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("displayname", value); - } - } - - /// - /// Sequence number of the import that created this record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] - public System.Nullable ImportSequenceNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("importsequencenumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("importsequencenumber", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] - public Microsoft.Xrm.Sdk.BooleanManagedProperty? IsCustomizable - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("iscustomizable"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("iscustomizable", value); - } - } - - /// - /// Indicates whether the solution component is part of a managed solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] - public System.Nullable IsManaged - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("ismanaged"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanagedname")] - public string? IsManagedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ismanaged")) - { - return this.FormattedValues["ismanaged"]; - } - else - { - return default(string); - } - } - } - - /// - /// The logical name of the entity bound to the custom API response property - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("logicalentityname")] - public string? LogicalEntityName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("logicalentityname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("logicalentityname", value); - } - } - - /// - /// Unique identifier of the user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string? ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] - public string? ModifiedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the record was modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who modified the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// The primary name of the custom API response property - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] - public string? Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("name", value); - } - } - - /// - /// Date and time that the record was migrated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] - public System.Nullable OverriddenCreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overriddencreatedon"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("overriddencreatedon", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] - public System.Nullable OverwriteTime - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overwritetime"); - } - } - - /// - /// Owner Id - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] - public Microsoft.Xrm.Sdk.EntityReference? OwnerId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("ownerid"); - } - } - - /// - /// Unique identifier for the business unit that owns the record - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] - public Microsoft.Xrm.Sdk.EntityReference? OwningBusinessUnit - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owningbusinessunit"); - } - } - - /// - /// Unique identifier for the team that owns the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] - public Microsoft.Xrm.Sdk.EntityReference? OwningTeam - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owningteam"); - } - } - - /// - /// Unique identifier for the user that owns the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] - public Microsoft.Xrm.Sdk.EntityReference? OwningUser - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("owninguser"); - } - } - - /// - /// Unique identifier of the associated solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - public System.Nullable SolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("solutionid"); - } - } - - /// - /// Status of the Custom API Response Property - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] - public virtual CustomApiResponseProperty_StateCode? StateCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((CustomApiResponseProperty_StateCode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] - public string? StateCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statecode")) - { - return this.FormattedValues["statecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Reason for the status of the Custom API Response Property - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] - public virtual CustomApiResponseProperty_StatusCode? StatusCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((CustomApiResponseProperty_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] - public string? StatusCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statuscode")) - { - return this.FormattedValues["statuscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] - public System.Nullable TimeZoneRuleVersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("timezoneruleversionnumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("timezoneruleversionnumber", value); - } - } - - /// - /// The data type of the custom API response property - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("type")] - public virtual CustomApiFieldType? Type - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((CustomApiFieldType?)(EntityOptionSetEnum.GetEnum(this, "type"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("type", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("typename")] - public string? TypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("type")) - { - return this.FormattedValues["type"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique name for the custom API response property - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] - public string? UniqueName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("uniquename"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("uniquename", value); - } - } - - /// - /// Time zone code that was in use when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] - public System.Nullable UtcConversionTimeZoneCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("utcconversiontimezonecode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("utcconversiontimezonecode", value); - } - } - - /// - /// Version Number - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// N:1 customapi_customapiresponseproperty - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customapiid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("customapi_customapiresponseproperty")] - public XrmSync.Dataverse.Context.CustomApi? CustomApi_CustomApiResponseProperty - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("customapi_customapiresponseproperty", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("customapi_customapiresponseproperty", null, value); - } - } - - /// - /// N:1 lk_customapiresponseproperty_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapiresponseproperty_createdby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_CustomApiResponseProperty_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_customapiresponseproperty_createdby", null); - } - } - - /// - /// N:1 lk_customapiresponseproperty_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapiresponseproperty_createdonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_CustomApiResponseProperty_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_customapiresponseproperty_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_customapiresponseproperty_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_customapiresponseproperty_modifiedby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapiresponseproperty_modifiedby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_CustomApiResponseProperty_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_customapiresponseproperty_modifiedby", null); - } - } - - /// - /// N:1 lk_customapiresponseproperty_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapiresponseproperty_modifiedonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_CustomApiResponseProperty_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_customapiresponseproperty_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_customapiresponseproperty_modifiedonbehalfby", null, value); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public CustomApiResponseProperty(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["customapiresponsepropertyid"] = base.Id; - break; - case "customapiresponsepropertyid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/Dependency.cs b/Dataverse/Context/Entities/Dependency.cs deleted file mode 100644 index dc9fda1..0000000 --- a/Dataverse/Context/Entities/Dependency.cs +++ /dev/null @@ -1,377 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// A component dependency in CRM. - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("dependency")] - public partial class Dependency : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the dependency entity - /// - public partial class Fields - { - public const string DependencyId = "dependencyid"; - public const string Id = "dependencyid"; - public const string DependencyNode_Ancestor_Dependency = "dependencynode_ancestor_dependency"; - public const string DependencyNode_Descendent_Dependency = "dependencynode_descendent_dependency"; - public const string DependencyType = "dependencytype"; - public const string DependencyTypeName = "dependencytypename"; - public const string DependentComponentBaseSolutionId = "dependentcomponentbasesolutionid"; - public const string DependentComponentNodeId = "dependentcomponentnodeid"; - public const string DependentComponentObjectId = "dependentcomponentobjectid"; - public const string DependentComponentParentId = "dependentcomponentparentid"; - public const string DependentComponentType = "dependentcomponenttype"; - public const string DependentComponentTypeName = "dependentcomponenttypename"; - public const string RequiredComponentBaseSolutionId = "requiredcomponentbasesolutionid"; - public const string RequiredComponentIntroducedVersion = "requiredcomponentintroducedversion"; - public const string RequiredComponentNodeId = "requiredcomponentnodeid"; - public const string RequiredComponentObjectId = "requiredcomponentobjectid"; - public const string RequiredComponentParentId = "requiredcomponentparentid"; - public const string RequiredComponentType = "requiredcomponenttype"; - public const string RequiredComponentTypeName = "requiredcomponenttypename"; - public const string VersionNumber = "versionnumber"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public Dependency(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public Dependency(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public Dependency(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public Dependency() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "dependencyid"; - - public const string EntitySchemaName = "Dependency"; - - public const string EntityLogicalName = "dependency"; - - public const string EntityLogicalCollectionName = "dependencies"; - - public const string EntitySetName = "dependencies"; - - /// - /// Unique identifier of a dependency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencyid")] - public System.Nullable DependencyId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dependencyid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencyid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - base.Id = value; - } - } - - /// - /// The dependency type of the dependency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencytype")] - public virtual DependencyType? DependencyType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((DependencyType?)(EntityOptionSetEnum.GetEnum(this, "dependencytype"))); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencytypename")] - public string? DependencyTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dependencytype")) - { - return this.FormattedValues["dependencytype"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponentbasesolutionid")] - public System.Nullable DependentComponentBaseSolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dependentcomponentbasesolutionid"); - } - } - - /// - /// Unique identifier of the dependent component's node. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponentnodeid")] - public Microsoft.Xrm.Sdk.EntityReference? DependentComponentNodeId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dependentcomponentnodeid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponentobjectid")] - public System.Nullable DependentComponentObjectId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dependentcomponentobjectid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponentparentid")] - public System.Nullable DependentComponentParentId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dependentcomponentparentid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponenttype")] - public virtual ComponentType? DependentComponentType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((ComponentType?)(EntityOptionSetEnum.GetEnum(this, "dependentcomponenttype"))); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponenttypename")] - public string? DependentComponentTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("dependentcomponenttype")) - { - return this.FormattedValues["dependentcomponenttype"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentbasesolutionid")] - public System.Nullable RequiredComponentBaseSolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("requiredcomponentbasesolutionid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentintroducedversion")] - public System.Nullable RequiredComponentIntroducedVersion - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("requiredcomponentintroducedversion"); - } - } - - /// - /// Unique identifier of the required component's node - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentnodeid")] - public Microsoft.Xrm.Sdk.EntityReference? RequiredComponentNodeId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("requiredcomponentnodeid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentobjectid")] - public System.Nullable RequiredComponentObjectId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("requiredcomponentobjectid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentparentid")] - public System.Nullable RequiredComponentParentId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("requiredcomponentparentid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponenttype")] - public virtual ComponentType? RequiredComponentType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((ComponentType?)(EntityOptionSetEnum.GetEnum(this, "requiredcomponenttype"))); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponenttypename")] - public string? RequiredComponentTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("requiredcomponenttype")) - { - return this.FormattedValues["requiredcomponenttype"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// N:1 dependencynode_ancestor_dependency - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredcomponentnodeid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dependencynode_ancestor_dependency")] - public XrmSync.Dataverse.Context.DependencyNode? DependencyNode_Ancestor_Dependency - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("dependencynode_ancestor_dependency", null); - } - } - - /// - /// N:1 dependencynode_descendent_dependency - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependentcomponentnodeid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dependencynode_descendent_dependency")] - public XrmSync.Dataverse.Context.DependencyNode? DependencyNode_Descendent_Dependency - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("dependencynode_descendent_dependency", null); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public Dependency(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["dependencyid"] = base.Id; - break; - case "dependencyid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/DependencyNode.cs b/Dataverse/Context/Entities/DependencyNode.cs deleted file mode 100644 index 71ed822..0000000 --- a/Dataverse/Context/Entities/DependencyNode.cs +++ /dev/null @@ -1,346 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// The representation of a component dependency node in CRM. - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("dependencynode")] - public partial class DependencyNode : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the dependencynode entity - /// - public partial class Fields - { - public const string BaseSolutionId = "basesolutionid"; - public const string ComponentType = "componenttype"; - public const string ComponentTypeName = "componenttypename"; - public const string DependencyNode_Ancestor_Dependency = "DependencyNode_Ancestor_Dependency"; - public const string DependencyNode_Descendent_Dependency = "DependencyNode_Descendent_Dependency"; - public const string DependencyNodeId = "dependencynodeid"; - public const string Id = "dependencynodeid"; - public const string IntroducedVersion = "introducedversion"; - public const string IsSharedComponent = "issharedcomponent"; - public const string ObjectId = "objectid"; - public const string ParentId = "parentid"; - public const string Solution_Base_DependencyNode = "solution_base_dependencynode"; - public const string Solution_Top_DependencyNode = "solution_top_dependencynode"; - public const string TopSolutionId = "topsolutionid"; - public const string VersionNumber = "versionnumber"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public DependencyNode(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public DependencyNode(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public DependencyNode(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public DependencyNode() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "dependencynodeid"; - - public const string EntitySchemaName = "DependencyNode"; - - public const string EntityLogicalName = "dependencynode"; - - public const string EntityLogicalCollectionName = "dependencynodes"; - - public const string EntitySetName = "dependencynodes"; - - /// - /// Unique identifier of the user who created the solution - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("basesolutionid")] - public Microsoft.Xrm.Sdk.EntityReference? BaseSolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("basesolutionid"); - } - } - - /// - /// The type code of the component. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componenttype")] - public virtual ComponentType? ComponentType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((ComponentType?)(EntityOptionSetEnum.GetEnum(this, "componenttype"))); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componenttypename")] - public string? ComponentTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("componenttype")) - { - return this.FormattedValues["componenttype"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the dependency node. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencynodeid")] - public System.Nullable DependencyNodeId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("dependencynodeid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencynodeid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - base.Id = value; - } - } - - /// - /// Introduced version for the component - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] - public System.Nullable IntroducedVersion - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("introducedversion"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("introducedversion", value); - } - } - - /// - /// Whether this component is shared by two solutions with the same publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issharedcomponent")] - public System.Nullable IsSharedComponent - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("issharedcomponent"); - } - } - - /// - /// Unique identifier of the object with which the node is associated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] - public System.Nullable ObjectId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("objectid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("objectid", value); - } - } - - /// - /// Unique identifier of the parent entity. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentid")] - public System.Nullable ParentId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("parentid"); - } - } - - /// - /// Unique identifier of the top solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("topsolutionid")] - public Microsoft.Xrm.Sdk.EntityReference? TopSolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("topsolutionid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// 1:N dependencynode_ancestor_dependency - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dependencynode_ancestor_dependency")] - public System.Collections.Generic.IEnumerable? DependencyNode_Ancestor_Dependency - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("dependencynode_ancestor_dependency", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("dependencynode_ancestor_dependency", null, value); - } - } - - /// - /// 1:N dependencynode_descendent_dependency - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dependencynode_descendent_dependency")] - public System.Collections.Generic.IEnumerable? DependencyNode_Descendent_Dependency - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("dependencynode_descendent_dependency", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("dependencynode_descendent_dependency", null, value); - } - } - - /// - /// N:1 solution_base_dependencynode - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("basesolutionid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_base_dependencynode")] - public XrmSync.Dataverse.Context.Solution? Solution_Base_DependencyNode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("solution_base_dependencynode", null); - } - } - - /// - /// N:1 solution_top_dependencynode - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("topsolutionid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_top_dependencynode")] - public XrmSync.Dataverse.Context.Solution? Solution_Top_DependencyNode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("solution_top_dependencynode", null); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public DependencyNode(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["dependencynodeid"] = base.Id; - break; - case "dependencynodeid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/PluginAssembly.cs b/Dataverse/Context/Entities/PluginAssembly.cs deleted file mode 100644 index d9585fb..0000000 --- a/Dataverse/Context/Entities/PluginAssembly.cs +++ /dev/null @@ -1,1124 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// Authentication Type for the Web sources like AzureWebApp, for example 0=BasicAuth - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum PluginAssembly_AuthType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("BasicAuth", 0)] - Basicauth = 0, - } - - /// - /// Information about how the plugin assembly is to be isolated at execution time; None / Sandboxed / External. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum PluginAssembly_IsolationMode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("External", 2)] - External = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("None", 0)] - None = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Sandbox", 1)] - Sandbox = 2, - } - - /// - /// Location of the assembly, for example 0=database, 1=on-disk, 2=Normal, 3=AzureWebApp. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum PluginAssembly_SourceType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("AzureWebApp", 3)] - Azurewebapp = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Database", 0)] - Database = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Disk", 1)] - Disk = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("File Store", 4)] - FileStore = 4, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Normal", 2)] - Normal = 2, - } - - /// - /// Assembly that contains one or more plug-in types. - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("pluginassembly")] - public partial class PluginAssembly : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the pluginassembly entity - /// - public partial class Fields - { - public const string AuthType = "authtype"; - public const string AuthTypeName = "authtypename"; - public const string ComponentState = "componentstate"; - public const string Content = "content"; - public const string CreatedBy = "createdby"; - public const string CreatedBy_PluginAssembly = "createdby_pluginassembly"; - public const string CreatedByName = "createdbyname"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - 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 IsManagedName = "ismanagedname"; - public const string IsolationMode = "isolationmode"; - public const string IsolationModeName = "isolationmodename"; - public const string IsPasswordSet = "ispasswordset"; - public const string Lk_PluginAssembly_CreatedOnBehalfBy = "lk_pluginassembly_createdonbehalfby"; - public const string Lk_PluginAssembly_ModifiedOnBehalfBy = "lk_pluginassembly_modifiedonbehalfby"; - public const string Major = "major"; - public const string ManagedIdentityId = "managedidentityid"; - public const string ManagedIdentityIdName = "managedidentityidname"; - public const string Minor = "minor"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedBy_PluginAssembly = "modifiedby_pluginassembly"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string Name = "name"; - public const string OrganizationId = "organizationid"; - public const string OverwriteTime = "overwritetime"; - public const string PackageId = "packageid"; - public const string PackageIdName = "packageidname"; - public const string Password = "password"; - public const string Path = "path"; - public const string PluginAssembly_PluginType = "PluginAssembly_PluginType"; - 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 SourceTypeName = "sourcetypename"; - public const string Url = "url"; - public const string Username = "username"; - public const string Version = "version"; - public const string VersionNumber = "versionnumber"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public PluginAssembly(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public PluginAssembly(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public PluginAssembly(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public PluginAssembly() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "pluginassemblyid"; - - public const string PrimaryNameAttribute = "name"; - - public const string EntitySchemaName = "PluginAssembly"; - - public const string EntityLogicalName = "pluginassembly"; - - public const string EntityLogicalCollectionName = "pluginassemblies"; - - public const string EntitySetName = "pluginassemblies"; - - /// - /// Specifies mode of authentication with web sources like WebApp - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("authtype")] - public virtual PluginAssembly_AuthType? AuthType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((PluginAssembly_AuthType?)(EntityOptionSetEnum.GetEnum(this, "authtype"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("authtype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("authtypename")] - public string? AuthTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("authtype")) - { - return this.FormattedValues["authtype"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] - public virtual ComponentState? ComponentState - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((ComponentState?)(EntityOptionSetEnum.GetEnum(this, "componentstate"))); - } - } - - /// - /// Bytes of the assembly, in Base64 format. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("content")] - public string? Content - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("content"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("content", value); - } - } - - /// - /// Unique identifier of the user who created the plug-in assembly. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string? CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the plug-in assembly was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the pluginassembly. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Culture code for the plug-in assembly. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("culture")] - public string? Culture - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("culture"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("culture", value); - } - } - - /// - /// Customization Level. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] - public System.Nullable CustomizationLevel - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("customizationlevel"); - } - } - - /// - /// Description of the plug-in assembly. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] - public string? Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("description", value); - } - } - - /// - /// Version in which the form is introduced. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] - public string? IntroducedVersion - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("introducedversion"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("introducedversion", value); - } - } - - /// - /// Information that specifies whether this component can be customized. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] - public Microsoft.Xrm.Sdk.BooleanManagedProperty? IsCustomizable - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("iscustomizable"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("iscustomizable", value); - } - } - - /// - /// Information that specifies whether this component should be hidden. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ishidden")] - public Microsoft.Xrm.Sdk.BooleanManagedProperty? IsHidden - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("ishidden"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("ishidden", value); - } - } - - /// - /// Information that specifies whether this component is managed. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] - public System.Nullable IsManaged - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("ismanaged"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanagedname")] - public string? IsManagedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ismanaged")) - { - return this.FormattedValues["ismanaged"]; - } - else - { - return default(string); - } - } - } - - /// - /// 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((PluginAssembly_IsolationMode?)(EntityOptionSetEnum.GetEnum(this, "isolationmode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isolationmode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isolationmodename")] - public string? IsolationModeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("isolationmode")) - { - return this.FormattedValues["isolationmode"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispasswordset")] - public System.Nullable IsPasswordSet - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("ispasswordset"); - } - } - - /// - /// Major of the assembly version. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("major")] - public System.Nullable Major - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("major"); - } - } - - /// - /// Unique identifier for managedidentity associated with pluginassembly. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("managedidentityid")] - public Microsoft.Xrm.Sdk.EntityReference? ManagedIdentityId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("managedidentityid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("managedidentityid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("managedidentityidname")] - public string? ManagedIdentityIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("managedidentityid")) - { - return this.FormattedValues["managedidentityid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Minor of the assembly version. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minor")] - public System.Nullable Minor - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string? ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the plug-in assembly was last modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who last modified the pluginassembly. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Name of the plug-in assembly. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] - public string? Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("name", value); - } - } - - /// - /// Unique identifier of the organization with which the plug-in assembly is associated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] - public Microsoft.Xrm.Sdk.EntityReference? OrganizationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("organizationid"); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] - public System.Nullable OverwriteTime - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("packageid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("packageid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("packageidname")] - public string? PackageIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("packageid")) - { - return this.FormattedValues["packageid"]; - } - else - { - return default(string); - } - } - } - - /// - /// User Password - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("password")] - public string? Password - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("password"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("password", value); - } - } - - /// - /// File name of the plug-in assembly. Used when the source type is set to 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("path")] - public string? Path - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("path"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("path", value); - } - } - - /// - /// Unique identifier of the plug-in assembly. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] - public System.Nullable PluginAssemblyId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("pluginassemblyid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("pluginassemblyid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.PluginAssemblyId = value; - } - } - - /// - /// Unique identifier of the plug-in assembly. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyidunique")] - public System.Nullable PluginAssemblyIdUnique - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("publickeytoken"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("publickeytoken", value); - } - } - - /// - /// Unique identifier of the associated solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - public System.Nullable SolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("solutionid"); - } - } - - /// - /// Hash of the source of the assembly. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcehash")] - public string? SourceHash - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("sourcehash"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sourcehash", value); - } - } - - /// - /// Location of the assembly, for example 0=database, 1=on-disk. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcetype")] - public virtual PluginAssembly_SourceType? SourceType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((PluginAssembly_SourceType?)(EntityOptionSetEnum.GetEnum(this, "sourcetype"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sourcetype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcetypename")] - public string? SourceTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("sourcetype")) - { - return this.FormattedValues["sourcetype"]; - } - else - { - return default(string); - } - } - } - - /// - /// Web Url - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("url")] - public string? Url - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("url"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("url", value); - } - } - - /// - /// User Name - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("username")] - public string? Username - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("username"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("username", value); - } - } - - /// - /// Version number of the assembly. The value can be obtained from the assembly through reflection. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] - public string? Version - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("version"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("version", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// 1:N pluginassembly_plugintype - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pluginassembly_plugintype")] - public System.Collections.Generic.IEnumerable? PluginAssembly_PluginType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("pluginassembly_plugintype", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("pluginassembly_plugintype", null, value); - } - } - - /// - /// N:1 createdby_pluginassembly - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_pluginassembly")] - public XrmSync.Dataverse.Context.SystemUser? CreatedBy_PluginAssembly - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 XrmSync.Dataverse.Context.SystemUser? Lk_PluginAssembly_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_pluginassembly_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_pluginassembly_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_pluginassembly_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_modifiedonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_PluginAssembly_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_pluginassembly_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_pluginassembly_modifiedonbehalfby", null, value); - } - } - - /// - /// N:1 modifiedby_pluginassembly - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_pluginassembly")] - public XrmSync.Dataverse.Context.SystemUser? ModifiedBy_PluginAssembly - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("modifiedby_pluginassembly", null); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public PluginAssembly(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["pluginassemblyid"] = base.Id; - break; - case "pluginassemblyid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/PluginType.cs b/Dataverse/Context/Entities/PluginType.cs deleted file mode 100644 index e501b2f..0000000 --- a/Dataverse/Context/Entities/PluginType.cs +++ /dev/null @@ -1,912 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// 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")] - public partial class PluginType : Microsoft.Xrm.Sdk.Entity - { - - /// - /// 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 CreatedBy_PluginType = "createdby_plugintype"; - public const string CreatedByName = "createdbyname"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - 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 IsManagedName = "ismanagedname"; - public const string IsWorkflowActivity = "isworkflowactivity"; - public const string IsWorkflowActivityName = "isworkflowactivityname"; - public const string Lk_PluginType_CreatedOnBehalfBy = "lk_plugintype_createdonbehalfby"; - public const string Lk_PluginType_ModifiedOnBehalfBy = "lk_plugintype_modifiedonbehalfby"; - public const string Major = "major"; - public const string Minor = "minor"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedBy_PluginType = "modifiedby_plugintype"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string Name = "name"; - public const string OrganizationId = "organizationid"; - public const string OverwriteTime = "overwritetime"; - public const string PluginAssembly_PluginType = "pluginassembly_plugintype"; - public const string PluginAssemblyId = "pluginassemblyid"; - public const string PluginAssemblyIdName = "pluginassemblyidname"; - public const string PluginType_CustomApi = "PluginType_CustomApi"; - public const string PluginType_SdkMessageProcessingStep = "PluginType_SdkMessageProcessingStep"; - public const string PluginTypeExportKey = "plugintypeexportkey"; - public const string PluginTypeId = "plugintypeid"; - public const string Id = "plugintypeid"; - public const string PluginTypeId_SdkMessageProcessingStep = "PluginTypeId_SdkMessageProcessingStep"; - 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"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public PluginType(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public PluginType(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public PluginType(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - public const string AlternateKeys = "componentstate,overwritetime,plugintypeexportkey"; - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public PluginType() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "plugintypeid"; - - public const string PrimaryNameAttribute = "name"; - - public const string EntitySchemaName = "PluginType"; - - public const string EntityLogicalName = "plugintype"; - - public const string EntityLogicalCollectionName = "plugintypes"; - - public const string EntitySetName = "plugintypes"; - - /// - /// Full path name of the plug-in assembly. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("assemblyname")] - public string? AssemblyName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("assemblyname"); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] - public virtual ComponentState? ComponentState - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string? CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the plug-in type was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the plugintype. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Culture code for the plug-in assembly. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("culture")] - public string? Culture - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("culture"); - } - } - - /// - /// Customization level of the plug-in type. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] - public System.Nullable CustomizationLevel - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("customworkflowactivityinfo"); - } - } - - /// - /// Description of the plug-in type. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] - public string? Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("description", value); - } - } - - /// - /// User friendly name for the plug-in. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlyname")] - public string? FriendlyName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("friendlyname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("friendlyname", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] - public System.Nullable IsManaged - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("ismanaged"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanagedname")] - public string? IsManagedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ismanaged")) - { - return this.FormattedValues["ismanaged"]; - } - else - { - return default(string); - } - } - } - - /// - /// Indicates if the plug-in is a custom activity for workflows. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isworkflowactivity")] - public System.Nullable IsWorkflowActivity - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isworkflowactivity"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isworkflowactivityname")] - public string? IsWorkflowActivityName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("isworkflowactivity")) - { - return this.FormattedValues["isworkflowactivity"]; - } - else - { - return default(string); - } - } - } - - /// - /// Major of the version number of the assembly for the plug-in type. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("major")] - public System.Nullable Major - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string? ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the plug-in type was last modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who last modified the plugintype. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Name of the plug-in type. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] - public string? Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("name", value); - } - } - - /// - /// Unique identifier of the organization with which the plug-in type is associated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] - public Microsoft.Xrm.Sdk.EntityReference? OrganizationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("organizationid"); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] - public System.Nullable OverwriteTime - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("pluginassemblyid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("pluginassemblyid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyidname")] - public string? PluginAssemblyIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("pluginassemblyid")) - { - return this.FormattedValues["pluginassemblyid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Uniquely identifies the plug-in type associated with a plugin package when exporting a solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeexportkey")] - public string? PluginTypeExportKey - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("plugintypeexportkey"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("plugintypeexportkey", value); - } - } - - /// - /// Unique identifier of the plug-in type. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] - public System.Nullable PluginTypeId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("plugintypeid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("plugintypeid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.PluginTypeId = value; - } - } - - /// - /// Unique identifier of the plug-in type. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeidunique")] - public System.Nullable PluginTypeIdUnique - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("plugintypeidunique"); - } - } - - /// - /// Public key token of the assembly for the plug-in type. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publickeytoken")] - public string? PublicKeyToken - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("publickeytoken"); - } - } - - /// - /// Unique identifier of the associated solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - public System.Nullable SolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("solutionid"); - } - } - - /// - /// Fully qualified type name of the plug-in type. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("typename")] - public string? TypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("typename"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("typename", value); - } - } - - /// - /// Version number of the assembly for the plug-in type. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] - public string? Version - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("version"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// Group name of workflow custom activity. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowactivitygroupname")] - public string? WorkflowActivityGroupName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("workflowactivitygroupname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("workflowactivitygroupname", value); - } - } - - /// - /// 1:N plugintype_customapi - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_customapi")] - public System.Collections.Generic.IEnumerable? PluginType_CustomApi - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("plugintype_customapi", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("plugintype_customapi", null, value); - } - } - - /// - /// 1:N plugintype_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_sdkmessageprocessingstep")] - public System.Collections.Generic.IEnumerable? PluginType_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("plugintype_sdkmessageprocessingstep", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("plugintype_sdkmessageprocessingstep", null, value); - } - } - - /// - /// 1:N plugintypeid_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintypeid_sdkmessageprocessingstep")] - public System.Collections.Generic.IEnumerable? PluginTypeId_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("plugintypeid_sdkmessageprocessingstep", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("plugintypeid_sdkmessageprocessingstep", null, value); - } - } - - /// - /// N:1 createdby_plugintype - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_plugintype")] - public XrmSync.Dataverse.Context.SystemUser? CreatedBy_PluginType - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 XrmSync.Dataverse.Context.SystemUser? Lk_PluginType_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_plugintype_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_plugintype_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_plugintype_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_modifiedonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_PluginType_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_plugintype_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_plugintype_modifiedonbehalfby", null, value); - } - } - - /// - /// N:1 modifiedby_plugintype - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_plugintype")] - public XrmSync.Dataverse.Context.SystemUser? ModifiedBy_PluginType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("modifiedby_plugintype", null); - } - } - - /// - /// N:1 pluginassembly_plugintype - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pluginassemblyid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("pluginassembly_plugintype")] - public XrmSync.Dataverse.Context.PluginAssembly? PluginAssembly_PluginType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("pluginassembly_plugintype", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("pluginassembly_plugintype", null, value); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public PluginType(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["plugintypeid"] = base.Id; - break; - case "plugintypeid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/Publisher.cs b/Dataverse/Context/Entities/Publisher.cs deleted file mode 100644 index 58a1c10..0000000 --- a/Dataverse/Context/Entities/Publisher.cs +++ /dev/null @@ -1,1638 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// Type of address for address 1, such as billing, shipping, or primary address. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum Publisher_Address1_AddressTypeCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// Method of shipment for address 1. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum Publisher_Address1_ShippingMethodCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// Type of address for address 2. such as billing, shipping, or primary address. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum Publisher_Address2_AddressTypeCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// Method of shipment for address 2. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum Publisher_Address2_ShippingMethodCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// A publisher of a CRM solution. - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("publisher")] - public partial class Publisher : Microsoft.Xrm.Sdk.Entity - { - - /// - /// 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_AddressTypeCodename = "address1_addresstypecodename"; - 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_ShippingMethodCodename = "address1_shippingmethodcodename"; - public const string Address1_StateOrProvince = "address1_stateorprovince"; - public const string Address1_Telephone1 = "address1_telephone1"; - public const string Address1_Telephone2 = "address1_telephone2"; - public const string Address1_Telephone3 = "address1_telephone3"; - public const string Address1_UpsZone = "address1_upszone"; - public const string Address1_UtcOffset = "address1_utcoffset"; - public const string Address2_AddressId = "address2_addressid"; - public const string Address2_AddressTypeCode = "address2_addresstypecode"; - public const string Address2_AddressTypeCodename = "address2_addresstypecodename"; - public const string Address2_City = "address2_city"; - public const string Address2_Country = "address2_country"; - public const string Address2_County = "address2_county"; - public const string Address2_Fax = "address2_fax"; - public const string Address2_Latitude = "address2_latitude"; - public const string Address2_Line1 = "address2_line1"; - public const string Address2_Line2 = "address2_line2"; - public const string Address2_Line3 = "address2_line3"; - public const string Address2_Longitude = "address2_longitude"; - public const string Address2_Name = "address2_name"; - public const string Address2_PostalCode = "address2_postalcode"; - public const string Address2_PostofficeBox = "address2_postofficebox"; - public const string Address2_ShippingMethodCode = "address2_shippingmethodcode"; - public const string Address2_ShippingMethodCodename = "address2_shippingmethodcodename"; - public const string Address2_StateOrProvince = "address2_stateorprovince"; - public const string Address2_Telephone1 = "address2_telephone1"; - public const string Address2_Telephone2 = "address2_telephone2"; - public const string Address2_Telephone3 = "address2_telephone3"; - public const string Address2_UpsZone = "address2_upszone"; - public const string Address2_UtcOffset = "address2_utcoffset"; - public const string CreatedBy = "createdby"; - public const string CreatedByName = "createdbyname"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - 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 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 ModifiedBy = "modifiedby"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string OrganizationId = "organizationid"; - public const string OrganizationIdName = "organizationidname"; - public const string PinpointPublisherDefaultLocale = "pinpointpublisherdefaultlocale"; - public const string PinpointPublisherId = "pinpointpublisherid"; - public const string Publisher_Solution = "Publisher_Solution"; - 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"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public Publisher(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public Publisher(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public Publisher(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public Publisher() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "publisherid"; - - public const string PrimaryNameAttribute = "friendlyname"; - - public const string EntitySchemaName = "Publisher"; - - public const string EntityLogicalName = "publisher"; - - public const string EntityLogicalCollectionName = "publishers"; - - public const string EntitySetName = "publishers"; - - /// - /// Unique identifier for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] - public System.Nullable Address1_AddressId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address1_addressid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_addressid", value); - } - } - - /// - /// Type of address for address 1, such as billing, shipping, or primary address. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] - public virtual Publisher_Address1_AddressTypeCode? Address1_AddressTypeCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((Publisher_Address1_AddressTypeCode?)(EntityOptionSetEnum.GetEnum(this, "address1_addresstypecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecodename")] - public string? Address1_AddressTypeCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("address1_addresstypecode")) - { - return this.FormattedValues["address1_addresstypecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// City name for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] - public string? Address1_City - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_city"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_city", value); - } - } - - /// - /// Country/region name for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] - public string? Address1_Country - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_country"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_country", value); - } - } - - /// - /// County name for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] - public string? Address1_County - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_county"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_county", value); - } - } - - /// - /// Fax number for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] - public string? Address1_Fax - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_fax"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_fax", value); - } - } - - /// - /// Latitude for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] - public System.Nullable Address1_Latitude - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address1_latitude"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_latitude", value); - } - } - - /// - /// First line for entering address 1 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] - public string? Address1_Line1 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_line1"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_line1", value); - } - } - - /// - /// Second line for entering address 1 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] - public string? Address1_Line2 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_line2"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_line2", value); - } - } - - /// - /// Third line for entering address 1 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] - public string? Address1_Line3 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_line3"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_line3", value); - } - } - - /// - /// Longitude for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] - public System.Nullable Address1_Longitude - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address1_longitude"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_longitude", value); - } - } - - /// - /// Name to enter for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] - public string? Address1_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_name", value); - } - } - - /// - /// ZIP Code or postal code for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] - public string? Address1_PostalCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_postalcode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_postalcode", value); - } - } - - /// - /// Post office box number for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] - public string? Address1_PostofficeBox - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_postofficebox"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_postofficebox", value); - } - } - - /// - /// Method of shipment for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] - public virtual Publisher_Address1_ShippingMethodCode? Address1_ShippingMethodCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((Publisher_Address1_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "address1_shippingmethodcode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcodename")] - public string? Address1_ShippingMethodCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("address1_shippingmethodcode")) - { - return this.FormattedValues["address1_shippingmethodcode"]; - } - else - { - return default(string); - } - } - } - - /// - /// State or province for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] - public string? Address1_StateOrProvince - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_stateorprovince"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_stateorprovince", value); - } - } - - /// - /// First telephone number associated with address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] - public string? Address1_Telephone1 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_telephone1"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_telephone1", value); - } - } - - /// - /// Second telephone number associated with address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] - public string? Address1_Telephone2 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_telephone2"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_telephone2", value); - } - } - - /// - /// Third telephone number associated with address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] - public string? Address1_Telephone3 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_telephone3"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_telephone3", value); - } - } - - /// - /// United Parcel Service (UPS) zone for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] - public string? Address1_UpsZone - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_upszone"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_upszone", value); - } - } - - /// - /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] - public System.Nullable Address1_UtcOffset - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address1_utcoffset"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_utcoffset", value); - } - } - - /// - /// Unique identifier for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] - public System.Nullable Address2_AddressId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address2_addressid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_addressid", value); - } - } - - /// - /// Type of address for address 2. such as billing, shipping, or primary address. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] - public virtual Publisher_Address2_AddressTypeCode? Address2_AddressTypeCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((Publisher_Address2_AddressTypeCode?)(EntityOptionSetEnum.GetEnum(this, "address2_addresstypecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecodename")] - public string? Address2_AddressTypeCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("address2_addresstypecode")) - { - return this.FormattedValues["address2_addresstypecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// City name for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] - public string? Address2_City - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_city"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_city", value); - } - } - - /// - /// Country/region name for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] - public string? Address2_Country - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_country"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_country", value); - } - } - - /// - /// County name for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] - public string? Address2_County - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_county"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_county", value); - } - } - - /// - /// Fax number for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] - public string? Address2_Fax - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_fax"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_fax", value); - } - } - - /// - /// Latitude for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] - public System.Nullable Address2_Latitude - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address2_latitude"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_latitude", value); - } - } - - /// - /// First line for entering address 2 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] - public string? Address2_Line1 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_line1"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_line1", value); - } - } - - /// - /// Second line for entering address 2 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] - public string? Address2_Line2 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_line2"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_line2", value); - } - } - - /// - /// Third line for entering address 2 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] - public string? Address2_Line3 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_line3"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_line3", value); - } - } - - /// - /// Longitude for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] - public System.Nullable Address2_Longitude - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address2_longitude"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_longitude", value); - } - } - - /// - /// Name to enter for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] - public string? Address2_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_name", value); - } - } - - /// - /// ZIP Code or postal code for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] - public string? Address2_PostalCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_postalcode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_postalcode", value); - } - } - - /// - /// Post office box number for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] - public string? Address2_PostofficeBox - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_postofficebox"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_postofficebox", value); - } - } - - /// - /// Method of shipment for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] - public virtual Publisher_Address2_ShippingMethodCode? Address2_ShippingMethodCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((Publisher_Address2_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "address2_shippingmethodcode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcodename")] - public string? Address2_ShippingMethodCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("address2_shippingmethodcode")) - { - return this.FormattedValues["address2_shippingmethodcode"]; - } - else - { - return default(string); - } - } - } - - /// - /// State or province for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] - public string? Address2_StateOrProvince - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_stateorprovince"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_stateorprovince", value); - } - } - - /// - /// First telephone number associated with address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] - public string? Address2_Telephone1 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_telephone1"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_telephone1", value); - } - } - - /// - /// Second telephone number associated with address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] - public string? Address2_Telephone2 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_telephone2"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_telephone2", value); - } - } - - /// - /// Third telephone number associated with address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] - public string? Address2_Telephone3 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_telephone3"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_telephone3", value); - } - } - - /// - /// United Parcel Service (UPS) zone for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] - public string? Address2_UpsZone - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_upszone"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_upszone", value); - } - } - - /// - /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] - public System.Nullable Address2_UtcOffset - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address2_utcoffset"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_utcoffset", value); - } - } - - /// - /// Unique identifier of the user who created the publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string? CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the publisher was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Default option value prefix used for newly created options for solutions associated with this publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationoptionvalueprefix")] - public System.Nullable CustomizationOptionValuePrefix - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("customizationoptionvalueprefix"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("customizationoptionvalueprefix", value); - } - } - - /// - /// Prefix used for new entities, attributes, and entity relationships for solutions associated with this publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationprefix")] - public string? CustomizationPrefix - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("customizationprefix"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("customizationprefix", value); - } - } - - /// - /// Description of the solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] - public string? Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("description", value); - } - } - - /// - /// Email address for the publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] - public string? EmailAddress - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("emailaddress"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emailaddress", value); - } - } - - /// - /// Shows the default image for the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] - public byte[]? EntityImage - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("entityimage"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("entityimage", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] - public System.Nullable EntityImage_Timestamp - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("entityimage_timestamp"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] - public string? EntityImage_Url - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("entityimage_url"); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] - public System.Nullable EntityImageId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("entityimageid"); - } - } - - /// - /// User display name for this publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlyname")] - public string? FriendlyName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("friendlyname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("friendlyname", value); - } - } - - /// - /// Indicates whether the publisher was created as part of a managed solution installation. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isreadonly")] - public System.Nullable IsReadonly - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string? ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the publisher was last modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who modified the publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the organization associated with the publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] - public Microsoft.Xrm.Sdk.EntityReference? OrganizationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("organizationid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationidname")] - public string? OrganizationIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("organizationid")) - { - return this.FormattedValues["organizationid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Default locale of the publisher in Microsoft Pinpoint. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointpublisherdefaultlocale")] - public string? PinpointPublisherDefaultLocale - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("pinpointpublisherdefaultlocale"); - } - } - - /// - /// Identifier of the publisher in Microsoft Pinpoint. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointpublisherid")] - public System.Nullable PinpointPublisherId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("pinpointpublisherid"); - } - } - - /// - /// Unique identifier of the publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] - public System.Nullable PublisherId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("publisherid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("publisherid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.PublisherId = value; - } - } - - /// - /// URL for the supporting website of this publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("supportingwebsiteurl")] - public string? SupportingWebsiteUrl - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("supportingwebsiteurl"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("supportingwebsiteurl", value); - } - } - - /// - /// The unique name of this publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] - public string? UniqueName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("uniquename"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("uniquename", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// 1:N publisher_solution - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("publisher_solution")] - public System.Collections.Generic.IEnumerable? Publisher_Solution - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("publisher_solution", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("publisher_solution", null, value); - } - } - - /// - /// N:1 lk_publisher_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_createdby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_Publisher_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 XrmSync.Dataverse.Context.SystemUser? Lk_Publisher_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 XrmSync.Dataverse.Context.SystemUser? Lk_PublisherBase_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_publisherbase_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_publisherbase_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_publisherbase_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_modifiedonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_PublisherBase_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_publisherbase_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_publisherbase_modifiedonbehalfby", null, value); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public Publisher(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["publisherid"] = base.Id; - break; - case "publisherid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/SdkMessage.cs b/Dataverse/Context/Entities/SdkMessage.cs deleted file mode 100644 index 5f43008..0000000 --- a/Dataverse/Context/Entities/SdkMessage.cs +++ /dev/null @@ -1,992 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// Message that is supported by the SDK. - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessage")] - public partial class SdkMessage : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the sdkmessage entity - /// - public partial class Fields - { - public const string AutoTransact = "autotransact"; - public const string AutoTransactName = "autotransactname"; - public const string Availability = "availability"; - public const string CategoryName = "categoryname"; - public const string ComponentState = "componentstate"; - public const string CreatedBy = "createdby"; - public const string CreatedBy_SdkMessage = "createdby_sdkmessage"; - public const string CreatedByName = "createdbyname"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string CustomizationLevel = "customizationlevel"; - public const string ExecutePrivilegeName = "executeprivilegename"; - public const string Expand = "expand"; - public const string ExpandName = "expandname"; - public const string IntroducedVersion = "introducedversion"; - public const string IsActive = "isactive"; - public const string IsActiveName = "isactivename"; - public const string IsManaged = "ismanaged"; - public const string IsManagedName = "ismanagedname"; - public const string IsPrivate = "isprivate"; - public const string IsPrivateName = "isprivatename"; - public const string IsReadonly = "isreadonly"; - public const string IsReadonlyName = "isreadonlyname"; - public const string IsValidForExecuteAsync = "isvalidforexecuteasync"; - public const string Lk_SdkMessage_CreatedOnBehalfBy = "lk_sdkmessage_createdonbehalfby"; - public const string Lk_SdkMessage_ModifiedOnBehalfBy = "lk_sdkmessage_modifiedonbehalfby"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedBy_SdkMessage = "modifiedby_sdkmessage"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string Name = "name"; - public const string OrganizationId = "organizationid"; - public const string OverwriteTime = "overwritetime"; - public const string SdkMessage_CustomApi = "SdkMessage_CustomApi"; - public const string SdkMessageId = "sdkmessageid"; - public const string Id = "sdkmessageid"; - public const string SdkMessageId_SdkMessageFilter = "SdkMessageId_SdkMessageFilter"; - public const string SdkMessageId_SdkMessageProcessingStep = "SdkMessageId_SdkMessageProcessingStep"; - public const string SdkMessageIdUnique = "sdkmessageidunique"; - public const string SolutionId = "solutionid"; - public const string Template = "template"; - public const string TemplateName = "templatename"; - public const string ThrottleSettings = "throttlesettings"; - public const string VersionNumber = "versionnumber"; - public const string WorkflowSdkStepEnabled = "workflowsdkstepenabled"; - public const string WorkflowSdkStepEnabledName = "workflowsdkstepenabledname"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessage(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessage(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessage(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessage() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "sdkmessageid"; - - public const string PrimaryNameAttribute = "name"; - - public const string EntitySchemaName = "SdkMessage"; - - public const string EntityLogicalName = "sdkmessage"; - - public const string EntityLogicalCollectionName = "sdkmessages"; - - public const string EntitySetName = "sdkmessages"; - - /// - /// Information about whether the SDK message is automatically transacted. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("autotransact")] - public System.Nullable AutoTransact - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("autotransact"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("autotransact", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("autotransactname")] - public string? AutoTransactName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("autotransact")) - { - return this.FormattedValues["autotransact"]; - } - else - { - return default(string); - } - } - } - - /// - /// Identifies where a method will be exposed. 0 - Server, 1 - Client, 2 - both. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("availability")] - public System.Nullable Availability - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("availability"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("availability", value); - } - } - - /// - /// If this is a categorized method, this is the name, otherwise None. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("categoryname")] - public string? CategoryName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("categoryname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("categoryname", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] - public virtual ComponentState? ComponentState - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string? CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the SDK message was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the sdkmessage. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Customization level of the SDK message. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] - public System.Nullable CustomizationLevel - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("customizationlevel"); - } - } - - /// - /// Name of the privilege that allows execution of the SDK message - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("executeprivilegename")] - public string? ExecutePrivilegeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("executeprivilegename"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("executeprivilegename", value); - } - } - - /// - /// 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("expand"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("expand", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expandname")] - public string? ExpandName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("expand")) - { - return this.FormattedValues["expand"]; - } - else - { - return default(string); - } - } - } - - /// - /// Version in which the component is introduced. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] - public string? IntroducedVersion - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("introducedversion"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("introducedversion", value); - } - } - - /// - /// Information about whether the SDK message is active. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isactive")] - public System.Nullable IsActive - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isactive"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isactive", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isactivename")] - public string? IsActiveName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("isactive")) - { - return this.FormattedValues["isactive"]; - } - else - { - return default(string); - } - } - } - - /// - /// Information that specifies whether this component is managed. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] - public System.Nullable IsManaged - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("ismanaged"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanagedname")] - public string? IsManagedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ismanaged")) - { - return this.FormattedValues["ismanaged"]; - } - else - { - return default(string); - } - } - } - - /// - /// Indicates whether the SDK message is private. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isprivate")] - public System.Nullable IsPrivate - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isprivate"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isprivate", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isprivatename")] - public string? IsPrivateName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("isprivate")) - { - return this.FormattedValues["isprivate"]; - } - else - { - return default(string); - } - } - } - - /// - /// Identifies whether an SDK message will be ReadOnly or Read Write. false - ReadWrite, true - ReadOnly . - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isreadonly")] - public System.Nullable IsReadonly - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isreadonly"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isreadonly", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isreadonlyname")] - public string? IsReadonlyName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("isreadonly")) - { - return this.FormattedValues["isreadonly"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvalidforexecuteasync")] - public System.Nullable IsValidForExecuteAsync - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string? ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the SDK message was last modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who last modified the sdkmessage. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Name of the SDK message. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] - public string? Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("name", value); - } - } - - /// - /// Unique identifier of the organization with which the SDK message is associated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] - public Microsoft.Xrm.Sdk.EntityReference? OrganizationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("organizationid"); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] - public System.Nullable OverwriteTime - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overwritetime"); - } - } - - /// - /// Unique identifier of the SDK message entity. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] - public System.Nullable SdkMessageId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("sdkmessageid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sdkmessageid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SdkMessageId = value; - } - } - - /// - /// Unique identifier of the SDK message. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageidunique")] - public System.Nullable SdkMessageIdUnique - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("sdkmessageidunique"); - } - } - - /// - /// Unique identifier of the associated solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - public System.Nullable SolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("solutionid"); - } - } - - /// - /// Indicates whether the SDK message is a template. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("template")] - public System.Nullable Template - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("template"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("template", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("templatename")] - public string? TemplateName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("template")) - { - return this.FormattedValues["template"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("throttlesettings")] - public string? ThrottleSettings - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("throttlesettings"); - } - } - - /// - /// Number that identifies a specific revision of the SDK message. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("workflowsdkstepenabled"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowsdkstepenabledname")] - public string? WorkflowSdkStepEnabledName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("workflowsdkstepenabled")) - { - return this.FormattedValues["workflowsdkstepenabled"]; - } - else - { - return default(string); - } - } - } - - /// - /// 1:N sdkmessage_customapi - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessage_customapi")] - public System.Collections.Generic.IEnumerable? SdkMessage_CustomApi - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("sdkmessage_customapi", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("sdkmessage_customapi", null, value); - } - } - - /// - /// 1:N sdkmessageid_sdkmessagefilter - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessagefilter")] - public System.Collections.Generic.IEnumerable? SdkMessageId_SdkMessageFilter - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("sdkmessageid_sdkmessagefilter", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("sdkmessageid_sdkmessagefilter", null, value); - } - } - - /// - /// 1:N sdkmessageid_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessageprocessingstep")] - public System.Collections.Generic.IEnumerable? SdkMessageId_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("sdkmessageid_sdkmessageprocessingstep", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("sdkmessageid_sdkmessageprocessingstep", null, value); - } - } - - /// - /// N:1 createdby_sdkmessage - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessage")] - public XrmSync.Dataverse.Context.SystemUser? CreatedBy_SdkMessage - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 XrmSync.Dataverse.Context.SystemUser? Lk_SdkMessage_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_sdkmessage_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_sdkmessage_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_sdkmessage_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_modifiedonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_SdkMessage_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_sdkmessage_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_sdkmessage_modifiedonbehalfby", null, value); - } - } - - /// - /// N:1 modifiedby_sdkmessage - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessage")] - public XrmSync.Dataverse.Context.SystemUser? ModifiedBy_SdkMessage - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("modifiedby_sdkmessage", null); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessage(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["sdkmessageid"] = base.Id; - break; - case "sdkmessageid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/SdkMessageFilter.cs b/Dataverse/Context/Entities/SdkMessageFilter.cs deleted file mode 100644 index 9d1c5e4..0000000 --- a/Dataverse/Context/Entities/SdkMessageFilter.cs +++ /dev/null @@ -1,854 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// Filter that defines which SDK messages are valid for each type of entity. - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessagefilter")] - public partial class SdkMessageFilter : Microsoft.Xrm.Sdk.Entity - { - - /// - /// 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 CreatedBy_SdkMessageFilter = "createdby_sdkmessagefilter"; - public const string CreatedByName = "createdbyname"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string CustomizationLevel = "customizationlevel"; - public const string IntroducedVersion = "introducedversion"; - public const string IsCustomProcessingStepAllowed = "iscustomprocessingstepallowed"; - public const string IsCustomProcessingStepAllowedName = "iscustomprocessingstepallowedname"; - public const string IsManaged = "ismanaged"; - public const string IsManagedName = "ismanagedname"; - public const string IsVisible = "isvisible"; - public const string Lk_SdkMessageFilter_CreatedOnBehalfBy = "lk_sdkmessagefilter_createdonbehalfby"; - public const string Lk_SdkMessageFilter_ModifiedOnBehalfBy = "lk_sdkmessagefilter_modifiedonbehalfby"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedBy_SdkMessageFilter = "modifiedby_sdkmessagefilter"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string Name = "name"; - public const string OrganizationId = "organizationid"; - public const string OverwriteTime = "overwritetime"; - public const string PrimaryObjectTypeCode = "primaryobjecttypecode"; - public const string PrimaryObjectTypeCodename = "primaryobjecttypecodename"; - public const string RestrictionLevel = "restrictionlevel"; - public const string SdkMessageFilterId = "sdkmessagefilterid"; - public const string Id = "sdkmessagefilterid"; - public const string SdkMessageFilterId_SdkMessageProcessingStep = "SdkMessageFilterId_SdkMessageProcessingStep"; - public const string SdkMessageFilterIdUnique = "sdkmessagefilteridunique"; - public const string SdkMessageId = "sdkmessageid"; - public const string SdkMessageId_SdkMessageFilter = "sdkmessageid_sdkmessagefilter"; - public const string SdkMessageIdName = "sdkmessageidname"; - public const string SecondaryObjectTypeCode = "secondaryobjecttypecode"; - public const string SecondaryObjectTypeCodename = "secondaryobjecttypecodename"; - public const string SolutionId = "solutionid"; - public const string VersionNumber = "versionnumber"; - public const string WorkflowSdkStepEnabled = "workflowsdkstepenabled"; - public const string WorkflowSdkStepEnabledName = "workflowsdkstepenabledname"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageFilter(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageFilter(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageFilter(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageFilter() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "sdkmessagefilterid"; - - public const string PrimaryNameAttribute = "name"; - - public const string EntitySchemaName = "SdkMessageFilter"; - - public const string EntityLogicalName = "sdkmessagefilter"; - - public const string EntityLogicalCollectionName = "sdkmessagefilters"; - - public const string EntitySetName = "sdkmessagefilters"; - - /// - /// Identifies where a method will be exposed. 0 - Server, 1 - Client, 2 - both. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("availability")] - public System.Nullable Availability - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("availability"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("availability", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] - public virtual ComponentState? ComponentState - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string? CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the SDK message filter was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the sdkmessagefilter. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Customization level of the SDK message filter. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] - public System.Nullable CustomizationLevel - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("customizationlevel"); - } - } - - /// - /// Version in which the component is introduced. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] - public string? IntroducedVersion - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("introducedversion"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("introducedversion", value); - } - } - - /// - /// Indicates whether a custom SDK message processing step is allowed. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomprocessingstepallowed")] - public System.Nullable IsCustomProcessingStepAllowed - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("iscustomprocessingstepallowed"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("iscustomprocessingstepallowed", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomprocessingstepallowedname")] - public string? IsCustomProcessingStepAllowedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("iscustomprocessingstepallowed")) - { - return this.FormattedValues["iscustomprocessingstepallowed"]; - } - else - { - return default(string); - } - } - } - - /// - /// Information that specifies whether this component is managed. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] - public System.Nullable IsManaged - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("ismanaged"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanagedname")] - public string? IsManagedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ismanaged")) - { - return this.FormattedValues["ismanaged"]; - } - else - { - return default(string); - } - } - } - - /// - /// Indicates whether the filter should be visible. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvisible")] - public System.Nullable IsVisible - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string? ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the SDK message filter was last modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who last modified the sdkmessagefilter. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Name of the SDK message filter. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] - public string? Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("name", value); - } - } - - /// - /// Unique identifier of the organization with which the SDK message filter is associated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] - public Microsoft.Xrm.Sdk.EntityReference? OrganizationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("organizationid"); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] - public System.Nullable OverwriteTime - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("primaryobjecttypecode"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primaryobjecttypecodename")] - public string? PrimaryObjectTypeCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("primaryobjecttypecode")) - { - return this.FormattedValues["primaryobjecttypecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("restrictionlevel")] - public System.Nullable RestrictionLevel - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("restrictionlevel"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("restrictionlevel", value); - } - } - - /// - /// Unique identifier of the SDK message filter entity. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] - public System.Nullable SdkMessageFilterId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("sdkmessagefilterid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sdkmessagefilterid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SdkMessageFilterId = value; - } - } - - /// - /// Unique identifier of the SDK message filter. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilteridunique")] - public System.Nullable SdkMessageFilterIdUnique - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("sdkmessagefilteridunique"); - } - } - - /// - /// Unique identifier of the related SDK message. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] - public Microsoft.Xrm.Sdk.EntityReference? SdkMessageId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("sdkmessageid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sdkmessageid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageidname")] - public string? SdkMessageIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("sdkmessageid")) - { - return this.FormattedValues["sdkmessageid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Type of entity with which the SDK message filter is secondarily associated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("secondaryobjecttypecode")] - public string? SecondaryObjectTypeCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("secondaryobjecttypecode"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("secondaryobjecttypecodename")] - public string? SecondaryObjectTypeCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("secondaryobjecttypecode")) - { - return this.FormattedValues["secondaryobjecttypecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the associated solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - public System.Nullable SolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("solutionid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("workflowsdkstepenabled"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowsdkstepenabledname")] - public string? WorkflowSdkStepEnabledName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("workflowsdkstepenabled")) - { - return this.FormattedValues["workflowsdkstepenabled"]; - } - else - { - return default(string); - } - } - } - - /// - /// 1:N sdkmessagefilterid_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessagefilterid_sdkmessageprocessingstep")] - public System.Collections.Generic.IEnumerable? SdkMessageFilterId_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("sdkmessagefilterid_sdkmessageprocessingstep", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("sdkmessagefilterid_sdkmessageprocessingstep", null, value); - } - } - - /// - /// N:1 createdby_sdkmessagefilter - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagefilter")] - public XrmSync.Dataverse.Context.SystemUser? CreatedBy_SdkMessageFilter - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 XrmSync.Dataverse.Context.SystemUser? Lk_SdkMessageFilter_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_sdkmessagefilter_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_sdkmessagefilter_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_sdkmessagefilter_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_modifiedonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_SdkMessageFilter_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_sdkmessagefilter_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_sdkmessagefilter_modifiedonbehalfby", null, value); - } - } - - /// - /// N:1 modifiedby_sdkmessagefilter - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagefilter")] - public XrmSync.Dataverse.Context.SystemUser? ModifiedBy_SdkMessageFilter - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("modifiedby_sdkmessagefilter", null); - } - } - - /// - /// N:1 sdkmessageid_sdkmessagefilter - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessagefilter")] - public XrmSync.Dataverse.Context.SdkMessage? SdkMessageId_SdkMessageFilter - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("sdkmessageid_sdkmessagefilter", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("sdkmessageid_sdkmessagefilter", null, value); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageFilter(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["sdkmessagefilterid"] = base.Id; - break; - case "sdkmessagefilterid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/SdkMessageProcessingStep.cs b/Dataverse/Context/Entities/SdkMessageProcessingStep.cs deleted file mode 100644 index cb04140..0000000 --- a/Dataverse/Context/Entities/SdkMessageProcessingStep.cs +++ /dev/null @@ -1,1663 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// Identifies if a plug-in should be executed from a parent pipeline, a child pipeline, or both. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SdkMessageProcessingStep_InvocationSource - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Child", 2)] - Child = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Internal", 0)] - Internal = -1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Parent", 1)] - Parent = 0, - } - - /// - /// Run-time mode of execution, for example, synchronous or asynchronous. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SdkMessageProcessingStep_Mode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Asynchronous", 1)] - Asynchronous = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Synchronous", 0)] - Synchronous = 0, - } - - /// - /// Stage in the execution pipeline that the SDK message processing step is in. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SdkMessageProcessingStep_Stage - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Final Post-operation (For internal use only)", 10)] - FinalPostOperationForInternalUseOnly = 55, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Initial Pre-operation (For internal use only)", 0)] - InitialPreOperationForInternalUseOnly = 5, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Internal Post-operation After External Plugins (For internal use only)", 8)] - InternalPostOperationAfterExternalPluginsForInternalUseOnly = 45, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Internal Post-operation Before External Plugins (For internal use only)", 6)] - InternalPostOperationBeforeExternalPluginsForInternalUseOnly = 35, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Internal Pre-operation After External Plugins (For internal use only)", 4)] - InternalPreOperationAfterExternalPluginsForInternalUseOnly = 25, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Internal Pre-operation Before External Plugins (For internal use only)", 2)] - InternalPreOperationBeforeExternalPluginsForInternalUseOnly = 15, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Main Operation (For internal use only)", 5)] - MainOperationForInternalUseOnly = 30, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Post-Commit stage fired after transaction commit (For internal use only)", 12)] - PostCommitStageFiredAfterTransactionCommitForInternalUseOnly = 90, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Post-operation", 7)] - PostOperation = 40, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Post-operation (Deprecated)", 9)] - PostOperationDeprecated = 50, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Pre-Commit stage fired before transaction commit (For internal use only)", 11)] - PreCommitStageFiredBeforeTransactionCommitForInternalUseOnly = 80, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Pre-operation", 3)] - PreOperation = 20, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Pre-validation", 1)] - PreValidation = 10, - } - - /// - /// Status of the SDK message processing step. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SdkMessageProcessingStep_StateCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Disabled", 1)] - Disabled = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Enabled", 0)] - Enabled = 0, - } - - /// - /// Reason for the status of the SDK message processing step. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SdkMessageProcessingStep_StatusCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Disabled", 1)] - Disabled = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Enabled", 0)] - Enabled = 1, - } - - /// - /// Deployment that the SDK message processing step should be executed on; server, client, or both. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SdkMessageProcessingStep_SupportedDeployment - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Both", 2)] - Both = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Microsoft Dynamics 365 Client for Outlook Only", 1)] - MicrosoftDynamics365ClientForOutlookOnly = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Server Only", 0)] - ServerOnly = 0, - } - - /// - /// Stage in the execution pipeline that a plug-in is to execute. - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageprocessingstep")] - public partial class SdkMessageProcessingStep : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the sdkmessageprocessingstep entity - /// - public partial class Fields - { - public const string AsyncAutoDelete = "asyncautodelete"; - public const string AsyncAutoDeleteName = "asyncautodeletename"; - public const string CanBeBypassed = "canbebypassed"; - public const string CanBeBypassedName = "canbebypassedname"; - public const string CanUseReadonlyConnection = "canusereadonlyconnection"; - public const string CanUseReadonlyConnectionName = "canusereadonlyconnectionname"; - public const string Category = "category"; - public const string ComponentState = "componentstate"; - public const string Configuration = "configuration"; - public const string CreatedBy = "createdby"; - public const string CreatedBy_SdkMessageProcessingStep = "createdby_sdkmessageprocessingstep"; - public const string CreatedByName = "createdbyname"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string CustomizationLevel = "customizationlevel"; - public const string Description = "description"; - public const string EnablePluginProfiler = "enablepluginprofiler"; - public const string EnablePluginProfilerName = "enablepluginprofilername"; - public const string EventExpander = "eventexpander"; - public const string EventHandler = "eventhandler"; - public const string EventHandlerName = "eventhandlername"; - public const string FilteringAttributes = "filteringattributes"; - public const string FxExpressionId = "fxexpressionid"; - public const string FxExpressionIdName = "fxexpressionidname"; - public const string ImpersonatingUserId = "impersonatinguserid"; - public const string ImpersonatingUserId_SdkMessageProcessingStep = "impersonatinguserid_sdkmessageprocessingstep"; - public const string ImpersonatingUserIdName = "impersonatinguseridname"; - public const string IntroducedVersion = "introducedversion"; - public const string InvocationSource = "invocationsource"; - public const string InvocationSourceName = "invocationsourcename"; - public const string IsCustomizable = "iscustomizable"; - public const string IsHidden = "ishidden"; - public const string IsManaged = "ismanaged"; - public const string IsManagedName = "ismanagedname"; - public const string Lk_SdkMessageProcessingStep_CreatedOnBehalfBy = "lk_sdkmessageprocessingstep_createdonbehalfby"; - public const string Lk_SdkMessageProcessingStep_ModifiedOnBehalfBy = "lk_sdkmessageprocessingstep_modifiedonbehalfby"; - public const string Mode = "mode"; - public const string ModeName = "modename"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedBy_SdkMessageProcessingStep = "modifiedby_sdkmessageprocessingstep"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string Name = "name"; - public const string OrganizationId = "organizationid"; - public const string OverwriteTime = "overwritetime"; - public const string PluginType_SdkMessageProcessingStep = "plugintype_sdkmessageprocessingstep"; - public const string PluginTypeId = "plugintypeid"; - public const string PluginTypeId_SdkMessageProcessingStep = "plugintypeid_sdkmessageprocessingstep"; - public const string PluginTypeIdName = "plugintypeidname"; - public const string PowerFxRuleId = "powerfxruleid"; - public const string PowerFxRuleIdName = "powerfxruleidname"; - public const string Rank = "rank"; - public const string RuntimeIntegrationProperties = "runtimeintegrationproperties"; - public const string SdkMessageFilterId = "sdkmessagefilterid"; - public const string SdkMessageFilterId_SdkMessageProcessingStep = "sdkmessagefilterid_sdkmessageprocessingstep"; - public const string SdkMessageId = "sdkmessageid"; - public const string SdkMessageId_SdkMessageProcessingStep = "sdkmessageid_sdkmessageprocessingstep"; - public const string SdkMessageIdName = "sdkmessageidname"; - public const string SdkMessageProcessingStepId = "sdkmessageprocessingstepid"; - public const string Id = "sdkmessageprocessingstepid"; - public const string SdkMessageProcessingStepId_SdkMessageProcessingStepImage = "SdkMessageProcessingStepId_SdkMessageProcessingStepImage"; - public const string SdkMessageProcessingStepIdUnique = "sdkmessageprocessingstepidunique"; - public const string SdkMessageProcessingStepSecureConfigId = "sdkmessageprocessingstepsecureconfigid"; - public const string SolutionId = "solutionid"; - public const string Stage = "stage"; - public const string StageName = "stagename"; - public const string StateCode = "statecode"; - public const string StateCodename = "statecodename"; - public const string StatusCode = "statuscode"; - public const string StatusCodename = "statuscodename"; - public const string SupportedDeployment = "supporteddeployment"; - public const string SupportedDeploymentName = "supporteddeploymentname"; - public const string VersionNumber = "versionnumber"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageProcessingStep(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageProcessingStep(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageProcessingStep(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageProcessingStep() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "sdkmessageprocessingstepid"; - - public const string PrimaryNameAttribute = "name"; - - public const string EntitySchemaName = "SdkMessageProcessingStep"; - - public const string EntityLogicalName = "sdkmessageprocessingstep"; - - public const string EntityLogicalCollectionName = "sdkmessageprocessingsteps"; - - public const string EntitySetName = "sdkmessageprocessingsteps"; - - /// - /// Indicates whether the asynchronous system job is automatically deleted on completion. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncautodelete")] - public System.Nullable AsyncAutoDelete - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("asyncautodelete"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("asyncautodelete", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncautodeletename")] - public string? AsyncAutoDeleteName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("asyncautodelete")) - { - return this.FormattedValues["asyncautodelete"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbebypassed")] - public System.Nullable CanBeBypassed - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("canbebypassed"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("canbebypassed", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbebypassedname")] - public string? CanBeBypassedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("canbebypassed")) - { - return this.FormattedValues["canbebypassed"]; - } - else - { - return default(string); - } - } - } - - /// - /// 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("canusereadonlyconnection"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("canusereadonlyconnection", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canusereadonlyconnectionname")] - public string? CanUseReadonlyConnectionName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("canusereadonlyconnection")) - { - return this.FormattedValues["canusereadonlyconnection"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] - public string? Category - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("category"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("category", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] - public virtual ComponentState? ComponentState - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("configuration"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("configuration", value); - } - } - - /// - /// Unique identifier of the user who created the SDK message processing step. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string? CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the SDK message processing step was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the sdkmessageprocessingstep. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Customization level of the SDK message processing step. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] - public System.Nullable CustomizationLevel - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("customizationlevel"); - } - } - - /// - /// Description of the SDK message processing step. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] - public string? Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("description", value); - } - } - - /// - /// EnablePluginProfiler - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enablepluginprofiler")] - public System.Nullable EnablePluginProfiler - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("enablepluginprofiler"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("enablepluginprofiler", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enablepluginprofilername")] - public string? EnablePluginProfilerName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("enablepluginprofiler")) - { - return this.FormattedValues["enablepluginprofiler"]; - } - else - { - return default(string); - } - } - } - - /// - /// Configuration for sending pipeline events to the Event Expander service. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("eventexpander")] - public string? EventExpander - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("eventexpander"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("eventexpander", value); - } - } - - /// - /// Unique identifier of the associated event handler. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("eventhandler")] - public Microsoft.Xrm.Sdk.EntityReference? EventHandler - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("eventhandler"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("eventhandler", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("eventhandlername")] - public string? EventHandlerName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("eventhandler")) - { - return this.FormattedValues["eventhandler"]; - } - else - { - return default(string); - } - } - } - - /// - /// 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("filteringattributes"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("filteringattributes", value); - } - } - - /// - /// Unique identifier for fxexpression associated with SdkMessageProcessingStep. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fxexpressionid")] - public Microsoft.Xrm.Sdk.EntityReference? FxExpressionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("fxexpressionid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("fxexpressionid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fxexpressionidname")] - public string? FxExpressionIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("fxexpressionid")) - { - return this.FormattedValues["fxexpressionid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the user to impersonate context when step is executed. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("impersonatinguserid")] - public Microsoft.Xrm.Sdk.EntityReference? ImpersonatingUserId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("impersonatinguserid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("impersonatinguserid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("impersonatinguseridname")] - public string? ImpersonatingUserIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("impersonatinguserid")) - { - return this.FormattedValues["impersonatinguserid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Version in which the form is introduced. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] - public string? IntroducedVersion - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("introducedversion"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("introducedversion", value); - } - } - - /// - /// 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SdkMessageProcessingStep_InvocationSource?)(EntityOptionSetEnum.GetEnum(this, "invocationsource"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("invocationsource", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invocationsourcename")] - public string? InvocationSourceName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("invocationsource")) - { - return this.FormattedValues["invocationsource"]; - } - else - { - return default(string); - } - } - } - - /// - /// Information that specifies whether this component can be customized. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] - public Microsoft.Xrm.Sdk.BooleanManagedProperty? IsCustomizable - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("iscustomizable"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("iscustomizable", value); - } - } - - /// - /// Information that specifies whether this component should be hidden. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ishidden")] - public Microsoft.Xrm.Sdk.BooleanManagedProperty? IsHidden - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("ishidden"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("ishidden", value); - } - } - - /// - /// Information that specifies whether this component is managed. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] - public System.Nullable IsManaged - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("ismanaged"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanagedname")] - public string? IsManagedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ismanaged")) - { - return this.FormattedValues["ismanaged"]; - } - else - { - return default(string); - } - } - } - - /// - /// Run-time mode of execution, for example, synchronous or asynchronous. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mode")] - public virtual SdkMessageProcessingStep_Mode? Mode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SdkMessageProcessingStep_Mode?)(EntityOptionSetEnum.GetEnum(this, "mode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("mode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modename")] - public string? ModeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("mode")) - { - return this.FormattedValues["mode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the user who last modified the SDK message processing step. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string? ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the SDK message processing step was last modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who last modified the sdkmessageprocessingstep. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Name of SdkMessage processing step. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] - public string? Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("name", value); - } - } - - /// - /// 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("organizationid"); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] - public System.Nullable OverwriteTime - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("plugintypeid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("plugintypeid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeidname")] - [System.ObsoleteAttribute()] - public string? PluginTypeIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("plugintypeid")) - { - return this.FormattedValues["plugintypeid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for powerfxrule associated with SdkMessageProcessingStep. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("powerfxruleid")] - public Microsoft.Xrm.Sdk.EntityReference? PowerFxRuleId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("powerfxruleid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("powerfxruleid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("powerfxruleidname")] - public string? PowerFxRuleIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("powerfxruleid")) - { - return this.FormattedValues["powerfxruleid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Processing order within the stage. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rank")] - public System.Nullable Rank - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("rank"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("rank", value); - } - } - - /// - /// For internal use only. Holds miscellaneous properties related to runtime integration. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("runtimeintegrationproperties")] - public string? RuntimeIntegrationProperties - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("runtimeintegrationproperties"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("runtimeintegrationproperties", value); - } - } - - /// - /// Unique identifier of the SDK message filter. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] - public Microsoft.Xrm.Sdk.EntityReference? SdkMessageFilterId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("sdkmessagefilterid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sdkmessagefilterid", value); - } - } - - /// - /// Unique identifier of the SDK message. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] - public Microsoft.Xrm.Sdk.EntityReference? SdkMessageId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("sdkmessageid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sdkmessageid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageidname")] - public string? SdkMessageIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("sdkmessageid")) - { - return this.FormattedValues["sdkmessageid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the SDK message processing step entity. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] - public System.Nullable SdkMessageProcessingStepId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("sdkmessageprocessingstepid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sdkmessageprocessingstepid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SdkMessageProcessingStepId = value; - } - } - - /// - /// Unique identifier of the SDK message processing step. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepidunique")] - public System.Nullable SdkMessageProcessingStepIdUnique - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("sdkmessageprocessingstepsecureconfigid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sdkmessageprocessingstepsecureconfigid", value); - } - } - - /// - /// Unique identifier of the associated solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - public System.Nullable SolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SdkMessageProcessingStep_Stage?)(EntityOptionSetEnum.GetEnum(this, "stage"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("stage", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stagename")] - public string? StageName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("stage")) - { - return this.FormattedValues["stage"]; - } - else - { - return default(string); - } - } - } - - /// - /// Status of the SDK message processing step. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] - public virtual SdkMessageProcessingStep_StateCode? StateCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SdkMessageProcessingStep_StateCode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] - public string? StateCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statecode")) - { - return this.FormattedValues["statecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Reason for the status of the SDK message processing step. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] - public virtual SdkMessageProcessingStep_StatusCode? StatusCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SdkMessageProcessingStep_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] - public string? StatusCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("statuscode")) - { - return this.FormattedValues["statuscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SdkMessageProcessingStep_SupportedDeployment?)(EntityOptionSetEnum.GetEnum(this, "supporteddeployment"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("supporteddeployment", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("supporteddeploymentname")] - public string? SupportedDeploymentName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("supporteddeployment")) - { - return this.FormattedValues["supporteddeployment"]; - } - else - { - return default(string); - } - } - } - - /// - /// Number that identifies a specific revision of the SDK message processing step. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// 1:N sdkmessageprocessingstepid_sdkmessageprocessingstepimage - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageprocessingstepid_sdkmessageprocessingstepimage")] - public System.Collections.Generic.IEnumerable? SdkMessageProcessingStepId_SdkMessageProcessingStepImage - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null, value); - } - } - - /// - /// N:1 createdby_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstep")] - public XrmSync.Dataverse.Context.SystemUser? CreatedBy_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("createdby_sdkmessageprocessingstep", null); - } - } - - /// - /// N:1 impersonatinguserid_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("impersonatinguserid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("impersonatinguserid_sdkmessageprocessingstep")] - public XrmSync.Dataverse.Context.SystemUser? ImpersonatingUserId_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("impersonatinguserid_sdkmessageprocessingstep", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("impersonatinguserid_sdkmessageprocessingstep", null, value); - } - } - - /// - /// N:1 lk_sdkmessageprocessingstep_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_createdonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_SdkMessageProcessingStep_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_sdkmessageprocessingstep_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_sdkmessageprocessingstep_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_sdkmessageprocessingstep_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_modifiedonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_SdkMessageProcessingStep_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_sdkmessageprocessingstep_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_sdkmessageprocessingstep_modifiedonbehalfby", null, value); - } - } - - /// - /// N:1 modifiedby_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstep")] - public XrmSync.Dataverse.Context.SystemUser? ModifiedBy_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("modifiedby_sdkmessageprocessingstep", null); - } - } - - /// - /// N:1 plugintype_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("eventhandler")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintype_sdkmessageprocessingstep")] - public XrmSync.Dataverse.Context.PluginType? PluginType_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("plugintype_sdkmessageprocessingstep", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("plugintype_sdkmessageprocessingstep", null, value); - } - } - - /// - /// N:1 plugintypeid_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("plugintypeid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("plugintypeid_sdkmessageprocessingstep")] - public XrmSync.Dataverse.Context.PluginType? PluginTypeId_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("plugintypeid_sdkmessageprocessingstep", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("plugintypeid_sdkmessageprocessingstep", null, value); - } - } - - /// - /// N:1 sdkmessagefilterid_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessagefilterid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessagefilterid_sdkmessageprocessingstep")] - public XrmSync.Dataverse.Context.SdkMessageFilter? SdkMessageFilterId_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("sdkmessagefilterid_sdkmessageprocessingstep", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("sdkmessagefilterid_sdkmessageprocessingstep", null, value); - } - } - - /// - /// N:1 sdkmessageid_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageid_sdkmessageprocessingstep")] - public XrmSync.Dataverse.Context.SdkMessage? SdkMessageId_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("sdkmessageid_sdkmessageprocessingstep", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("sdkmessageid_sdkmessageprocessingstep", null, value); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageProcessingStep(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["sdkmessageprocessingstepid"] = base.Id; - break; - case "sdkmessageprocessingstepid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/SdkMessageProcessingStepImage.cs b/Dataverse/Context/Entities/SdkMessageProcessingStepImage.cs deleted file mode 100644 index 1e7fade..0000000 --- a/Dataverse/Context/Entities/SdkMessageProcessingStepImage.cs +++ /dev/null @@ -1,803 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// Type of image requested. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SdkMessageProcessingStepImage_ImageType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Both", 2)] - Both = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("PostImage", 1)] - Postimage = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("PreImage", 0)] - Preimage = 0, - } - - /// - /// Copy of an entity's attributes before or after the core system operation. - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("sdkmessageprocessingstepimage")] - public partial class SdkMessageProcessingStepImage : Microsoft.Xrm.Sdk.Entity - { - - /// - /// 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 CreatedBy_SdkMessageProcessingStepImage = "createdby_sdkmessageprocessingstepimage"; - public const string CreatedByName = "createdbyname"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string CustomizationLevel = "customizationlevel"; - public const string Description = "description"; - public const string EntityAlias = "entityalias"; - public const string ImageType = "imagetype"; - public const string ImageTypeName = "imagetypename"; - public const string IntroducedVersion = "introducedversion"; - public const string IsCustomizable = "iscustomizable"; - public const string IsManaged = "ismanaged"; - public const string IsManagedName = "ismanagedname"; - public const string Lk_SdkMessageProcessingStepImage_CreatedOnBehalfBy = "lk_sdkmessageprocessingstepimage_createdonbehalfby"; - public const string Lk_SdkMessageProcessingStepImage_ModifiedOnBehalfBy = "lk_sdkmessageprocessingstepimage_modifiedonbehalfby"; - public const string MessagePropertyName = "messagepropertyname"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedBy_SdkMessageProcessingStepImage = "modifiedby_sdkmessageprocessingstepimage"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - 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 SdkMessageProcessingStepId_SdkMessageProcessingStepImage = "sdkmessageprocessingstepid_sdkmessageprocessingstepimage"; - 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"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageProcessingStepImage(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageProcessingStepImage(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageProcessingStepImage(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageProcessingStepImage() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "sdkmessageprocessingstepimageid"; - - public const string PrimaryNameAttribute = "name"; - - public const string EntitySchemaName = "SdkMessageProcessingStepImage"; - - public const string EntityLogicalName = "sdkmessageprocessingstepimage"; - - public const string EntityLogicalCollectionName = "sdkmessageprocessingstepimages"; - - public const string EntitySetName = "sdkmessageprocessingstepimages"; - - /// - /// 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("attributes"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("attributes", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] - public virtual ComponentState? ComponentState - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string? CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the SDK message processing step image was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the sdkmessageprocessingstepimage. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Customization level of the SDK message processing step image. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customizationlevel")] - public System.Nullable CustomizationLevel - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("customizationlevel"); - } - } - - /// - /// Description of the SDK message processing step image. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] - public string? Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("description", value); - } - } - - /// - /// Key name used to access the pre-image or post-image property bags in a step. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityalias")] - public string? EntityAlias - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("entityalias"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("entityalias", value); - } - } - - /// - /// Type of image requested. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("imagetype")] - public virtual SdkMessageProcessingStepImage_ImageType? ImageType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SdkMessageProcessingStepImage_ImageType?)(EntityOptionSetEnum.GetEnum(this, "imagetype"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("imagetype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("imagetypename")] - public string? ImageTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("imagetype")) - { - return this.FormattedValues["imagetype"]; - } - else - { - return default(string); - } - } - } - - /// - /// Version in which the form is introduced. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] - public string? IntroducedVersion - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("introducedversion"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("introducedversion", value); - } - } - - /// - /// Information that specifies whether this component can be customized. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] - public Microsoft.Xrm.Sdk.BooleanManagedProperty? IsCustomizable - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("iscustomizable"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("iscustomizable", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] - public System.Nullable IsManaged - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("ismanaged"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanagedname")] - public string? IsManagedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ismanaged")) - { - return this.FormattedValues["ismanaged"]; - } - else - { - return default(string); - } - } - } - - /// - /// Name of the property on the Request message. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("messagepropertyname")] - public string? MessagePropertyName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("messagepropertyname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("messagepropertyname", value); - } - } - - /// - /// Unique identifier of the user who last modified the SDK message processing step. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string? ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the SDK message processing step was last modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who last modified the sdkmessageprocessingstepimage. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Name of SdkMessage processing step image. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] - public string? Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("name", value); - } - } - - /// - /// 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("organizationid"); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] - public System.Nullable OverwriteTime - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overwritetime"); - } - } - - /// - /// Name of the related entity. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("relatedattributename")] - public string? RelatedAttributeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("relatedattributename"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("relatedattributename", value); - } - } - - /// - /// Unique identifier of the SDK message processing step. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] - public Microsoft.Xrm.Sdk.EntityReference? SdkMessageProcessingStepId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("sdkmessageprocessingstepid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sdkmessageprocessingstepid", value); - } - } - - /// - /// Unique identifier of the SDK message processing step image entity. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepimageid")] - public System.Nullable SdkMessageProcessingStepImageId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("sdkmessageprocessingstepimageid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sdkmessageprocessingstepimageid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepimageid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SdkMessageProcessingStepImageId = value; - } - } - - /// - /// Unique identifier of the SDK message processing step image. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepimageidunique")] - public System.Nullable SdkMessageProcessingStepImageIdUnique - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("sdkmessageprocessingstepimageidunique"); - } - } - - /// - /// Unique identifier of the associated solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - public System.Nullable SolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("solutionid"); - } - } - - /// - /// Number that identifies a specific revision of the step image. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// N:1 createdby_sdkmessageprocessingstepimage - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstepimage")] - public XrmSync.Dataverse.Context.SystemUser? CreatedBy_SdkMessageProcessingStepImage - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 XrmSync.Dataverse.Context.SystemUser? Lk_SdkMessageProcessingStepImage_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_sdkmessageprocessingstepimage_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_sdkmessageprocessingstepimage_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_sdkmessageprocessingstepimage_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_modifiedonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_SdkMessageProcessingStepImage_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null, value); - } - } - - /// - /// N:1 modifiedby_sdkmessageprocessingstepimage - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstepimage")] - public XrmSync.Dataverse.Context.SystemUser? ModifiedBy_SdkMessageProcessingStepImage - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("modifiedby_sdkmessageprocessingstepimage", null); - } - } - - /// - /// N:1 sdkmessageprocessingstepid_sdkmessageprocessingstepimage - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sdkmessageprocessingstepid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("sdkmessageprocessingstepid_sdkmessageprocessingstepimage")] - public XrmSync.Dataverse.Context.SdkMessageProcessingStep? SdkMessageProcessingStepId_SdkMessageProcessingStepImage - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null, value); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SdkMessageProcessingStepImage(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["sdkmessageprocessingstepimageid"] = base.Id; - break; - case "sdkmessageprocessingstepimageid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/Solution.cs b/Dataverse/Context/Entities/Solution.cs deleted file mode 100644 index 906521b..0000000 --- a/Dataverse/Context/Entities/Solution.cs +++ /dev/null @@ -1,1137 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// All possible types of solution - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum Solution_SolutionType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Internal", 2)] - Internal = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("None", 0)] - None = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Snapshot", 1)] - Snapshot = 1, - } - - [System.Runtime.Serialization.DataContractAttribute()] - public enum Solution_SourceControlSyncStatus - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Committed", 4)] - Committed = 4, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Errors in initial sync", 2)] - ErrorsInInitialSync = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Initial sync in progress", 1)] - InitialSyncInProgress = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Not started", 0)] - NotStarted = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Pending changes to be committed", 3)] - PendingChangesToBeCommitted = 3, - } - - /// - /// A solution which contains CRM customizations. - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("solution")] - public partial class Solution : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the solution entity - /// - public partial class Fields - { - public const string ConfigurationPageId = "configurationpageid"; - public const string ConfigurationPageIdName = "configurationpageidname"; - public const string CreatedBy = "createdby"; - public const string CreatedByName = "createdbyname"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string Description = "description"; - public const string EnabledForSourceControlIntegration = "enabledforsourcecontrolintegration"; - public const string EnabledForSourceControlIntegrationName = "enabledforsourcecontrolintegrationname"; - public const string FriendlyName = "friendlyname"; - public const string InstalledOn = "installedon"; - public const string IsApiManaged = "isapimanaged"; - public const string IsManaged = "ismanaged"; - public const string IsManagedName = "ismanagedname"; - public const string IsVisible = "isvisible"; - 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 ModifiedBy = "modifiedby"; - public const string ModifiedByName = "modifiedbyname"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string OrganizationId = "organizationid"; - public const string OrganizationIdName = "organizationidname"; - public const string ParentSolutionId = "parentsolutionid"; - public const string ParentSolutionIdName = "parentsolutionidname"; - public const string PinpointAssetId = "pinpointassetid"; - public const string PinpointPublisherId = "pinpointpublisherid"; - public const string PinpointSolutionDefaultLocale = "pinpointsolutiondefaultlocale"; - public const string PinpointSolutionId = "pinpointsolutionid"; - public const string Publisher_Solution = "publisher_solution"; - public const string PublisherId = "publisherid"; - public const string PublisherIdName = "publisheridname"; - public const string ReferencedSolution_Parent_Solution = "ReferencedSolution_Parent_Solution"; - public const string Solution_Base_DependencyNode = "Solution_Base_DependencyNode"; - public const string Solution_Configuration_WebResource = "solution_configuration_webresource"; - public const string ReferencingSolution_Parent_Solution = "solution_parent_solution"; - public const string Solution_SolutionComponent = "Solution_SolutionComponent"; - public const string Solution_Top_DependencyNode = "Solution_Top_DependencyNode"; - 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 SourceControlSyncStatusName = "sourcecontrolsyncstatusname"; - 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"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public Solution(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public Solution(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public Solution(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public Solution() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "solutionid"; - - public const string PrimaryNameAttribute = "friendlyname"; - - public const string EntitySchemaName = "Solution"; - - public const string EntityLogicalName = "solution"; - - public const string EntityLogicalCollectionName = "solutions"; - - public const string EntitySetName = "solutions"; - - /// - /// A link to an optional configuration page for this solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("configurationpageid")] - public Microsoft.Xrm.Sdk.EntityReference? ConfigurationPageId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("configurationpageid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("configurationpageid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("configurationpageidname")] - public string? ConfigurationPageIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("configurationpageid")) - { - return this.FormattedValues["configurationpageid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the user who created the solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string? CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the solution was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Description of the solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] - public string? Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("description", value); - } - } - - /// - /// Indicates if solution is enabled for source control integration - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enabledforsourcecontrolintegration")] - public System.Nullable EnabledForSourceControlIntegration - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("enabledforsourcecontrolintegration"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("enabledforsourcecontrolintegration", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("enabledforsourcecontrolintegrationname")] - public string? EnabledForSourceControlIntegrationName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("enabledforsourcecontrolintegration")) - { - return this.FormattedValues["enabledforsourcecontrolintegration"]; - } - else - { - return default(string); - } - } - } - - /// - /// User display name for the solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("friendlyname")] - public string? FriendlyName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("friendlyname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("friendlyname", value); - } - } - - /// - /// Date and time when the solution was installed/upgraded. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("installedon")] - public System.Nullable InstalledOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("installedon"); - } - } - - /// - /// Information about whether the solution is api managed. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isapimanaged")] - public System.Nullable IsApiManaged - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isapimanaged"); - } - } - - /// - /// Indicates whether the solution is managed or unmanaged. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] - public System.Nullable IsManaged - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("ismanaged"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanagedname")] - public string? IsManagedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ismanaged")) - { - return this.FormattedValues["ismanaged"]; - } - else - { - return default(string); - } - } - } - - /// - /// Indicates whether the solution is visible outside of the platform. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isvisible")] - public System.Nullable IsVisible - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string? ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the solution was last modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who modified the solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the organization associated with the solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] - public Microsoft.Xrm.Sdk.EntityReference? OrganizationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("organizationid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationidname")] - public string? OrganizationIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("organizationid")) - { - return this.FormattedValues["organizationid"]; - } - else - { - return default(string); - } - } - } - - /// - /// 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("parentsolutionid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsolutionidname")] - public string? ParentSolutionIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("parentsolutionid")) - { - return this.FormattedValues["parentsolutionid"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointassetid")] - public string? PinpointAssetId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("pinpointassetid"); - } - } - - /// - /// Identifier of the publisher of this solution in Microsoft Pinpoint. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointpublisherid")] - public System.Nullable PinpointPublisherId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("pinpointpublisherid"); - } - } - - /// - /// Default locale of the solution in Microsoft Pinpoint. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointsolutiondefaultlocale")] - public string? PinpointSolutionDefaultLocale - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("pinpointsolutiondefaultlocale"); - } - } - - /// - /// Identifier of the solution in Microsoft Pinpoint. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pinpointsolutionid")] - public System.Nullable PinpointSolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("pinpointsolutionid"); - } - } - - /// - /// Unique identifier of the publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] - public Microsoft.Xrm.Sdk.EntityReference? PublisherId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("publisherid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("publisherid", value); - } - } - - /// - /// name of the publisher. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisheridname")] - public string? PublisherIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("publisherid")) - { - return this.FormattedValues["publisherid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - public System.Nullable SolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("solutionid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("solutionid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SolutionId = value; - } - } - - /// - /// Solution package source organization version - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionpackageversion")] - public string? SolutionPackageVersion - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("solutionpackageversion"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("solutionpackageversion", value); - } - } - - /// - /// Solution Type - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutiontype")] - public virtual Solution_SolutionType? SolutionType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((Solution_SolutionType?)(EntityOptionSetEnum.GetEnum(this, "solutiontype"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("solutiontype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - /// - /// Indicates the current status of source control integration - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcecontrolsyncstatus")] - public virtual Solution_SourceControlSyncStatus? SourceControlSyncStatus - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((Solution_SourceControlSyncStatus?)(EntityOptionSetEnum.GetEnum(this, "sourcecontrolsyncstatus"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sourcecontrolsyncstatus", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sourcecontrolsyncstatusname")] - public string? SourceControlSyncStatusName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("sourcecontrolsyncstatus")) - { - return this.FormattedValues["sourcecontrolsyncstatus"]; - } - else - { - return default(string); - } - } - } - - /// - /// The template suffix of this solution - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("templatesuffix")] - public string? TemplateSuffix - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("templatesuffix"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("templatesuffix", value); - } - } - - /// - /// thumbprint of the solution signature - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("thumbprint")] - public string? Thumbprint - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("thumbprint"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("thumbprint", value); - } - } - - /// - /// The unique name of this solution - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uniquename")] - public string? UniqueName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("uniquename"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("uniquename", value); - } - } - - /// - /// Date and time when the solution was updated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("updatedon")] - public System.Nullable UpdatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("updatedon"); - } - } - - /// - /// Contains component info for the solution upgrade operation - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("upgradeinfo")] - public string? UpgradeInfo - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("upgradeinfo"); - } - } - - /// - /// Solution version, used to identify a solution for upgrades and hotfixes. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("version")] - public string? Version - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("version"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("version", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// 1:N solution_base_dependencynode - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_base_dependencynode")] - public System.Collections.Generic.IEnumerable? Solution_Base_DependencyNode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("solution_base_dependencynode", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("solution_base_dependencynode", null, value); - } - } - - /// - /// 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("solution_parent_solution", Microsoft.Xrm.Sdk.EntityRole.Referenced); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("solution_parent_solution", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); - } - } - - /// - /// 1:N solution_solutioncomponent - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_solutioncomponent")] - public System.Collections.Generic.IEnumerable? Solution_SolutionComponent - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("solution_solutioncomponent", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("solution_solutioncomponent", null, value); - } - } - - /// - /// 1:N solution_top_dependencynode - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_top_dependencynode")] - public System.Collections.Generic.IEnumerable? Solution_Top_DependencyNode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("solution_top_dependencynode", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("solution_top_dependencynode", null, value); - } - } - - /// - /// N:1 lk_solution_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_createdby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_Solution_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 XrmSync.Dataverse.Context.SystemUser? Lk_Solution_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 XrmSync.Dataverse.Context.SystemUser? Lk_SolutionBase_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_solutionbase_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_solutionbase_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_solutionbase_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_modifiedonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_SolutionBase_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_solutionbase_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_solutionbase_modifiedonbehalfby", null, value); - } - } - - /// - /// N:1 publisher_solution - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("publisherid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("publisher_solution")] - public XrmSync.Dataverse.Context.Publisher? Publisher_Solution - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("publisher_solution", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("publisher_solution", null, value); - } - } - - /// - /// N:1 solution_configuration_webresource - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("configurationpageid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_configuration_webresource")] - public XrmSync.Dataverse.Context.WebResource? Solution_Configuration_WebResource - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("solution_configuration_webresource", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("solution_configuration_webresource", null, value); - } - } - - /// - /// N:1 solution_parent_solution - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsolutionid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_parent_solution", Microsoft.Xrm.Sdk.EntityRole.Referencing)] - public XrmSync.Dataverse.Context.Solution? ReferencingSolution_Parent_Solution - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("solution_parent_solution", Microsoft.Xrm.Sdk.EntityRole.Referencing); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public Solution(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["solutionid"] = base.Id; - break; - case "solutionid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/SolutionComponent.cs b/Dataverse/Context/Entities/SolutionComponent.cs deleted file mode 100644 index ea2d106..0000000 --- a/Dataverse/Context/Entities/SolutionComponent.cs +++ /dev/null @@ -1,547 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// Indicates the include behavior of the root component. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SolutionComponent_RootComponentBehavior - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Do not include subcomponents", 1)] - DoNotIncludeSubcomponents = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Include As Shell Only", 2)] - IncludeAsShellOnly = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Include Subcomponents", 0)] - IncludeSubcomponents = 0, - } - - /// - /// A component of a CRM solution. - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("solutioncomponent")] - public partial class SolutionComponent : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the solutioncomponent entity - /// - public partial class Fields - { - public const string ComponentType = "componenttype"; - public const string ComponentTypeName = "componenttypename"; - public const string CreatedBy = "createdby"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string IsMetadata = "ismetadata"; - public const string Lk_SolutionComponentBase_CreatedOnBehalfBy = "lk_solutioncomponentbase_createdonbehalfby"; - public const string Lk_SolutionComponentBase_ModifiedOnBehalfBy = "lk_solutioncomponentbase_modifiedonbehalfby"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string ObjectId = "objectid"; - public const string ReferencedSolutionComponent_Parent_SolutionComponent = "ReferencedSolutionComponent_Parent_SolutionComponent"; - public const string RootComponentBehavior = "rootcomponentbehavior"; - public const string RootSolutionComponentId = "rootsolutioncomponentid"; - public const string Solution_SolutionComponent = "solution_solutioncomponent"; - public const string ReferencingSolutionComponent_Parent_SolutionComponent = "solutioncomponent_parent_solutioncomponent"; - public const string SolutionComponentId = "solutioncomponentid"; - public const string Id = "solutioncomponentid"; - public const string SolutionId = "solutionid"; - public const string SolutionIdName = "solutionidname"; - public const string VersionNumber = "versionnumber"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SolutionComponent(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SolutionComponent(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SolutionComponent(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SolutionComponent() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "solutioncomponentid"; - - public const string EntitySchemaName = "SolutionComponent"; - - public const string EntityLogicalName = "solutioncomponent"; - - public const string EntityLogicalCollectionName = "solutioncomponentss"; - - public const string EntitySetName = "solutioncomponents"; - - /// - /// The object type code of the component. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componenttype")] - public virtual ComponentType? ComponentType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((ComponentType?)(EntityOptionSetEnum.GetEnum(this, "componenttype"))); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componenttypename")] - public string? ComponentTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("componenttype")) - { - return this.FormattedValues["componenttype"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the user who created the solution - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - /// - /// Date and time when the solution was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Indicates whether this component is metadata or data. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismetadata")] - public System.Nullable IsMetadata - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - /// - /// Date and time when the solution was last modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who modified the solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the object with which the component is associated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("objectid")] - public System.Nullable ObjectId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("objectid"); - } - } - - /// - /// Indicates the include behavior of the root component. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rootcomponentbehavior")] - public virtual SolutionComponent_RootComponentBehavior? RootComponentBehavior - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("rootsolutioncomponentid"); - } - } - - /// - /// Unique identifier of the solution component. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutioncomponentid")] - public System.Nullable SolutionComponentId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("solutioncomponentid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutioncomponentid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - base.Id = value; - } - } - - /// - /// Unique identifier of the solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - public Microsoft.Xrm.Sdk.EntityReference? SolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("solutionid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionidname")] - public string? SolutionIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("solutionid")) - { - return this.FormattedValues["solutionid"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("solutioncomponent_parent_solutioncomponent", Microsoft.Xrm.Sdk.EntityRole.Referenced); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("solutioncomponent_parent_solutioncomponent", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); - } - } - - /// - /// N:1 lk_solutioncomponentbase_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_createdonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_SolutionComponentBase_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_solutioncomponentbase_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_solutioncomponentbase_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_solutioncomponentbase_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_modifiedonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_SolutionComponentBase_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_solutioncomponentbase_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_solutioncomponentbase_modifiedonbehalfby", null, value); - } - } - - /// - /// N:1 solution_solutioncomponent - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_solutioncomponent")] - public XrmSync.Dataverse.Context.Solution? Solution_SolutionComponent - { - [System.Diagnostics.DebuggerNonUserCode()] - 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 XrmSync.Dataverse.Context.SolutionComponent? ReferencingSolutionComponent_Parent_SolutionComponent - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("solutioncomponent_parent_solutioncomponent", Microsoft.Xrm.Sdk.EntityRole.Referencing); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SolutionComponent(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["solutioncomponentid"] = base.Id; - break; - case "solutioncomponentid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/SystemUser.cs b/Dataverse/Context/Entities/SystemUser.cs deleted file mode 100644 index 114433e..0000000 --- a/Dataverse/Context/Entities/SystemUser.cs +++ /dev/null @@ -1,4768 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// Type of user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_AccessMode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Administrative", 1)] - Administrative = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Delegated Admin", 5)] - DelegatedAdmin = 5, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Non-interactive", 4)] - NonInteractive = 4, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Read", 2)] - Read = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Read-Write", 0)] - ReadWrite = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Support User", 3)] - SupportUser = 3, - } - - /// - /// Type of address for address 1, such as billing, shipping, or primary address. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_Address1_AddressTypeCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// Method of shipment for address 1. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_Address1_ShippingMethodCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// Type of address for address 2, such as billing, shipping, or primary address. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_Address2_AddressTypeCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// Method of shipment for address 2. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_Address2_ShippingMethodCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// Azure state of user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_AzureState - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Exists", 0)] - Exists = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Not found or hard deleted", 2)] - NotFoundOrHardDeleted = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Soft deleted", 1)] - SoftDeleted = 1, - } - - /// - /// 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()] - public enum SystemUser_CalType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Administrative", 1)] - Administrative = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Basic", 2)] - Basic = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Device Basic", 4)] - DeviceBasic = 4, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Device Enterprise", 8)] - DeviceEnterprise = 8, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Device Essential", 6)] - DeviceEssential = 6, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Device Professional", 3)] - DeviceProfessional = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Enterprise", 7)] - Enterprise = 7, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Essential", 5)] - Essential = 5, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Field Service", 11)] - FieldService = 11, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Professional", 0)] - Professional = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Project Service", 12)] - ProjectService = 12, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Sales", 9)] - Sales = 9, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Service", 10)] - Service = 10, - } - - /// - /// User delete state. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_DeletedState - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Not deleted", 0)] - NotDeleted = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Soft deleted", 1)] - SoftDeleted = 1, - } - - /// - /// Indicates the approval options for server-side synchronization or Email Router access. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_EmailRouterAccessApproval - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Approved", 1)] - Approved = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Empty", 0)] - Empty = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Pending Approval", 2)] - PendingApproval = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Rejected", 3)] - Rejected = 3, - } - - /// - /// Incoming email delivery method for the user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_IncomingEmailDeliveryMethod - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Forward Mailbox", 3)] - ForwardMailbox = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Microsoft Dynamics 365 for Outlook", 1)] - MicrosoftDynamics365ForOutlook = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("None", 0)] - None = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Server-Side Synchronization or Email Router", 2)] - ServerSideSynchronizationOrEmailRouter = 2, - } - - /// - /// User invitation status. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_InviteStatusCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invitation Accepted", 4)] - InvitationAccepted = 4, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invitation Expired", 3)] - InvitationExpired = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invitation Near Expired", 2)] - InvitationNearExpired = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invitation Not Sent", 0)] - InvitationNotSent = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invitation Rejected", 5)] - InvitationRejected = 5, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invitation Revoked", 6)] - InvitationRevoked = 6, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Invited", 1)] - Invited = 1, - } - - /// - /// Outgoing email delivery method for the user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_OutgoingEmailDeliveryMethod - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Microsoft Dynamics 365 for Outlook", 1)] - MicrosoftDynamics365ForOutlook = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("None", 0)] - None = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Server-Side Synchronization or Email Router", 2)] - ServerSideSynchronizationOrEmailRouter = 2, - } - - /// - /// Preferred address for the user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_PreferredAddressCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Mailing Address", 0)] - MailingAddress = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Other Address", 1)] - OtherAddress = 2, - } - - /// - /// Preferred email address for the user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_PreferredEmailCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Default Value", 0)] - DefaultValue = 1, - } - - /// - /// Preferred phone number for the user. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_PreferredPhoneCode - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Home Phone", 2)] - HomePhone = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Main Phone", 0)] - MainPhone = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Mobile Phone", 3)] - MobilePhone = 4, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Other Phone", 1)] - OtherPhone = 2, - } - - /// - /// The type of user - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum SystemUser_SystemManagedUserType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("C2 User", 1)] - C2User = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Entra User", 0)] - EntraUser = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Impersonable Stub User", 2)] - 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")] - public partial class SystemUser : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the systemuser entity - /// - public partial class Fields - { - public const string AccessMode = "accessmode"; - public const string AccessModeName = "accessmodename"; - public const string Address1_AddressId = "address1_addressid"; - public const string Address1_AddressTypeCode = "address1_addresstypecode"; - public const string Address1_AddressTypeCodename = "address1_addresstypecodename"; - public const string Address1_City = "address1_city"; - public const string Address1_Composite = "address1_composite"; - public const string Address1_Country = "address1_country"; - public const string Address1_County = "address1_county"; - public const string Address1_Fax = "address1_fax"; - public const string Address1_Latitude = "address1_latitude"; - public const string Address1_Line1 = "address1_line1"; - public const string Address1_Line2 = "address1_line2"; - public const string Address1_Line3 = "address1_line3"; - public const string Address1_Longitude = "address1_longitude"; - public const string Address1_Name = "address1_name"; - public const string Address1_PostalCode = "address1_postalcode"; - public const string Address1_PostofficeBox = "address1_postofficebox"; - public const string Address1_ShippingMethodCode = "address1_shippingmethodcode"; - public const string Address1_ShippingMethodCodename = "address1_shippingmethodcodename"; - public const string Address1_StateOrProvince = "address1_stateorprovince"; - public const string Address1_Telephone1 = "address1_telephone1"; - public const string Address1_Telephone2 = "address1_telephone2"; - public const string Address1_Telephone3 = "address1_telephone3"; - public const string Address1_UpsZone = "address1_upszone"; - public const string Address1_UtcOffset = "address1_utcoffset"; - public const string Address2_AddressId = "address2_addressid"; - public const string Address2_AddressTypeCode = "address2_addresstypecode"; - public const string Address2_AddressTypeCodename = "address2_addresstypecodename"; - public const string Address2_City = "address2_city"; - public const string Address2_Composite = "address2_composite"; - public const string Address2_Country = "address2_country"; - public const string Address2_County = "address2_county"; - public const string Address2_Fax = "address2_fax"; - public const string Address2_Latitude = "address2_latitude"; - public const string Address2_Line1 = "address2_line1"; - public const string Address2_Line2 = "address2_line2"; - public const string Address2_Line3 = "address2_line3"; - public const string Address2_Longitude = "address2_longitude"; - public const string Address2_Name = "address2_name"; - public const string Address2_PostalCode = "address2_postalcode"; - public const string Address2_PostofficeBox = "address2_postofficebox"; - public const string Address2_ShippingMethodCode = "address2_shippingmethodcode"; - public const string Address2_ShippingMethodCodename = "address2_shippingmethodcodename"; - public const string Address2_StateOrProvince = "address2_stateorprovince"; - public const string Address2_Telephone1 = "address2_telephone1"; - public const string Address2_Telephone2 = "address2_telephone2"; - public const string Address2_Telephone3 = "address2_telephone3"; - public const string Address2_UpsZone = "address2_upszone"; - public const string Address2_UtcOffset = "address2_utcoffset"; - public const string ApplicationId = "applicationid"; - public const string ApplicationIdUri = "applicationiduri"; - public const string AzureActiveDirectoryObjectId = "azureactivedirectoryobjectid"; - public const string AzureDeletedOn = "azuredeletedon"; - public const string AzureState = "azurestate"; - public const string AzureStatenAMe = "azurestatename"; - public const string BusinessUnitId = "businessunitid"; - public const string BusinessUnitIdName = "businessunitidname"; - public const string CalendarId = "calendarid"; - public const string CalType = "caltype"; - public const string CalTypeName = "caltypename"; - public const string CreatedBy = "createdby"; - public const string 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 CreatedByName = "createdbyname"; - public const string CreatedByYomiName = "createdbyyominame"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string DefaultFiltersPopulated = "defaultfilterspopulated"; - public const string DefaultMailbox = "defaultmailbox"; - public const string DefaultMailboxName = "defaultmailboxname"; - public const string DefaultOdbFolderName = "defaultodbfoldername"; - public const string DeletedState = "deletedstate"; - public const string DeletedStateName = "deletedstatename"; - public const string DisabledReason = "disabledreason"; - public const string DisplayInServiceViews = "displayinserviceviews"; - public const string DisplayInServiceViewsName = "displayinserviceviewsname"; - public const string DomainName = "domainname"; - public const string EmailRouterAccessApproval = "emailrouteraccessapproval"; - public const string EmailRouterAccessApprovalName = "emailrouteraccessapprovalname"; - public const string EmployeeId = "employeeid"; - public const string EntityImage = "entityimage"; - public const string EntityImage_Timestamp = "entityimage_timestamp"; - public const string EntityImage_Url = "entityimage_url"; - public const string EntityImageId = "entityimageid"; - public const string ExchangerAte = "exchangerate"; - public const string FirstName = "firstname"; - public const string FullName = "fullname"; - public const string GovernmentId = "governmentid"; - public const string HomePhone = "homephone"; - public const string IdentityId = "identityid"; - public const string ImpersonatingUserId_SdkMessageProcessingStep = "ImpersonatingUserId_SdkMessageProcessingStep"; - public const string ImportSequenceNumber = "importsequencenumber"; - public const string IncomingEmailDeliveryMethod = "incomingemaildeliverymethod"; - public const string IncomingEmailDeliveryMethodName = "incomingemaildeliverymethodname"; - public const string InternalEmailAddress = "internalemailaddress"; - public const string InviteStatusCode = "invitestatuscode"; - public const string InviteStatusCodename = "invitestatuscodename"; - public const string IsAllowedByIpFirewall = "isallowedbyipfirewall"; - public const string IsAllowedByIpFirewallName = "isallowedbyipfirewallname"; - public const string IsDisabled = "isdisabled"; - public const string IsDisabledName = "isdisabledname"; - public const string IsEmailAddressApprovedByO365Admin = "isemailaddressapprovedbyo365admin"; - public const string IsIntegrationUser = "isintegrationuser"; - public const string IsIntegrationUsername = "isintegrationusername"; - public const string IsLicensed = "islicensed"; - public const string IsLicensedName = "islicensedname"; - public const string IsSyncWithDirectory = "issyncwithdirectory"; - public const string JobTitle = "jobtitle"; - public const string LastName = "lastname"; - public const string Lk_CustomApi_CreatedBy = "Lk_CustomApi_CreatedBy"; - public const string Lk_CustomApi_CreatedOnBehalfBy = "Lk_CustomApi_CreatedOnBehalfBy"; - public const string Lk_CustomApi_ModifiedBy = "Lk_CustomApi_ModifiedBy"; - public const string Lk_CustomApi_ModifiedOnBehalfBy = "Lk_CustomApi_ModifiedOnBehalfBy"; - public const string Lk_CustomApiRequestParameter_CreatedBy = "Lk_CustomApiRequestParameter_CreatedBy"; - public const string Lk_CustomApiRequestParameter_CreatedOnBehalfBy = "Lk_CustomApiRequestParameter_CreatedOnBehalfBy"; - public const string Lk_CustomApiRequestParameter_ModifiedBy = "Lk_CustomApiRequestParameter_ModifiedBy"; - public const string Lk_CustomApiRequestParameter_ModifiedOnBehalfBy = "Lk_CustomApiRequestParameter_ModifiedOnBehalfBy"; - public const string Lk_CustomApiResponseProperty_CreatedBy = "Lk_CustomApiResponseProperty_CreatedBy"; - public const string Lk_CustomApiResponseProperty_CreatedOnBehalfBy = "Lk_CustomApiResponseProperty_CreatedOnBehalfBy"; - public const string Lk_CustomApiResponseProperty_ModifiedBy = "Lk_CustomApiResponseProperty_ModifiedBy"; - public const string Lk_CustomApiResponseProperty_ModifiedOnBehalfBy = "Lk_CustomApiResponseProperty_ModifiedOnBehalfBy"; - public const string Lk_PluginAssembly_CreatedOnBehalfBy = "Lk_PluginAssembly_CreatedOnBehalfBy"; - public const string Lk_PluginAssembly_ModifiedOnBehalfBy = "Lk_PluginAssembly_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 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 Lk_WebResourceBase_CreatedOnBehalfBy = "Lk_WebResourceBase_CreatedOnBehalfBy"; - public const string Lk_WebResourceBase_ModifiedOnBehalfBy = "Lk_WebResourceBase_ModifiedOnBehalfBy"; - public const string MiddleName = "middlename"; - public const string MobileAlertEmail = "mobilealertemail"; - public const string MobileOfflineProfileId = "mobileofflineprofileid"; - public const string MobileOfflineProfileIdName = "mobileofflineprofileidname"; - public const string MobilePhone = "mobilephone"; - public const string ModifiedBy = "modifiedby"; - public const string 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 ModifiedByName = "modifiedbyname"; - public const string ModifiedByYomiName = "modifiedbyyominame"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string Nickname = "nickname"; - public const string OrganizationId = "organizationid"; - public const string OrganizationIdName = "organizationidname"; - public const string OutgoingEmailDeliveryMethod = "outgoingemaildeliverymethod"; - public const string OutgoingEmailDeliveryMethodName = "outgoingemaildeliverymethodname"; - public const string OverriddenCreatedOn = "overriddencreatedon"; - public const string ParentSystemUserId = "parentsystemuserid"; - public const string ParentSystemUserIdName = "parentsystemuseridname"; - public const string ParentSystemUserIdYomiName = "parentsystemuseridyominame"; - public const string PassportHi = "passporthi"; - public const string PassportLo = "passportlo"; - public const string PersonalEmailAddress = "personalemailaddress"; - public const string PhotoUrl = "photourl"; - public const string PositionId = "positionid"; - public const string PositionIdName = "positionidname"; - public const string PreferredAddressCode = "preferredaddresscode"; - public const string PreferredAddressCodename = "preferredaddresscodename"; - public const string PreferredEmailCode = "preferredemailcode"; - public const string PreferredEmailCodename = "preferredemailcodename"; - public const string PreferredPhoneCode = "preferredphonecode"; - public const string PreferredPhoneCodename = "preferredphonecodename"; - public const string ProcessId = "processid"; - public const string QueueId = "queueid"; - public const string QueueIdName = "queueidname"; - public const string ReferencedLk_SystemUser_CreatedOnBehalfBy = "ReferencedLk_SystemUser_CreatedOnBehalfBy"; - public const string ReferencedLk_SystemUser_ModifiedOnBehalfBy = "ReferencedLk_SystemUser_ModifiedOnBehalfBy"; - public const string ReferencedLk_SystemUserBase_CreatedBy = "ReferencedLk_SystemUserBase_CreatedBy"; - public const string ReferencedLk_SystemUserBase_ModifiedBy = "ReferencedLk_SystemUserBase_ModifiedBy"; - public const string ReferencedUser_Parent_User = "ReferencedUser_Parent_User"; - public const string Salutation = "salutation"; - public const string SetupUser = "setupuser"; - public const string SetupUsername = "setupusername"; - public const string SharePointEmailAddress = "sharepointemailaddress"; - public const string Skills = "skills"; - public const string StageId = "stageid"; - public const string SystemManagedUserType = "systemmanagedusertype"; - public const string SystemManagedUserTypeName = "systemmanagedusertypename"; - public const string SystemUserId = "systemuserid"; - public const string Id = "systemuserid"; - public const string TerritoryId = "territoryid"; - public const string TerritoryIdName = "territoryidname"; - public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; - public const string Title = "title"; - public const string TransactionCurrencyId = "transactioncurrencyid"; - public const string TransactionCurrencyIdName = "transactioncurrencyidname"; - public const string TraversedPath = "traversedpath"; - public const string User_CustomApi = "User_CustomApi"; - public const string ReferencingUser_Parent_User = "user_parent_user"; - public const string UserLicenseType = "userlicensetype"; - public const string UserPuid = "userpuid"; - public const string UtcConversionTimeZoneCode = "utcconversiontimezonecode"; - public const string VersionNumber = "versionnumber"; - public const string WebResource_CreatedBy = "WebResource_CreatedBy"; - public const string WebResource_ModifiedBy = "WebResource_ModifiedBy"; - public const string WindowsLiveId = "windowsliveid"; - public const string YammerEmailAddress = "yammeremailaddress"; - public const string YammerUserId = "yammeruserid"; - public const string YomiFirstName = "yomifirstname"; - public const string YomiFullName = "yomifullname"; - public const string YomiLastName = "yomilastname"; - public const string YomiMiddleName = "yomimiddlename"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SystemUser(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SystemUser(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public SystemUser(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - public const string AlternateKeys = "azureactivedirectoryobjectid"; - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SystemUser() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "systemuserid"; - - public const string PrimaryNameAttribute = "fullname"; - - public const string EntitySchemaName = "SystemUser"; - - public const string EntityLogicalName = "systemuser"; - - public const string EntityLogicalCollectionName = "systemusers"; - - public const string EntitySetName = "systemusers"; - - /// - /// Type of user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accessmode")] - public virtual SystemUser_AccessMode? AccessMode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_AccessMode?)(EntityOptionSetEnum.GetEnum(this, "accessmode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("accessmode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accessmodename")] - public string? AccessModeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("accessmode")) - { - return this.FormattedValues["accessmode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] - public System.Nullable Address1_AddressId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address1_addressid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_addressid", value); - } - } - - /// - /// Type of address for address 1, such as billing, shipping, or primary address. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] - public virtual SystemUser_Address1_AddressTypeCode? Address1_AddressTypeCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_Address1_AddressTypeCode?)(EntityOptionSetEnum.GetEnum(this, "address1_addresstypecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecodename")] - public string? Address1_AddressTypeCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("address1_addresstypecode")) - { - return this.FormattedValues["address1_addresstypecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// City name for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] - public string? Address1_City - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_city"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_city", value); - } - } - - /// - /// Shows the complete primary address. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_composite")] - public string? Address1_Composite - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_composite"); - } - } - - /// - /// Country/region name in address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] - public string? Address1_Country - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_country"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_country", value); - } - } - - /// - /// County name for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] - public string? Address1_County - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_county"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_county", value); - } - } - - /// - /// Fax number for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] - public string? Address1_Fax - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_fax"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_fax", value); - } - } - - /// - /// Latitude for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] - public System.Nullable Address1_Latitude - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address1_latitude"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_latitude", value); - } - } - - /// - /// First line for entering address 1 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] - public string? Address1_Line1 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_line1"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_line1", value); - } - } - - /// - /// Second line for entering address 1 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] - public string? Address1_Line2 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_line2"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_line2", value); - } - } - - /// - /// Third line for entering address 1 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] - public string? Address1_Line3 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_line3"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_line3", value); - } - } - - /// - /// Longitude for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] - public System.Nullable Address1_Longitude - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address1_longitude"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_longitude", value); - } - } - - /// - /// Name to enter for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] - public string? Address1_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_name", value); - } - } - - /// - /// ZIP Code or postal code for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] - public string? Address1_PostalCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_postalcode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_postalcode", value); - } - } - - /// - /// Post office box number for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] - public string? Address1_PostofficeBox - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_postofficebox"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_postofficebox", value); - } - } - - /// - /// Method of shipment for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] - public virtual SystemUser_Address1_ShippingMethodCode? Address1_ShippingMethodCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_Address1_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "address1_shippingmethodcode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcodename")] - public string? Address1_ShippingMethodCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("address1_shippingmethodcode")) - { - return this.FormattedValues["address1_shippingmethodcode"]; - } - else - { - return default(string); - } - } - } - - /// - /// State or province for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] - public string? Address1_StateOrProvince - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_stateorprovince"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_stateorprovince", value); - } - } - - /// - /// First telephone number associated with address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] - public string? Address1_Telephone1 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_telephone1"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_telephone1", value); - } - } - - /// - /// Second telephone number associated with address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] - public string? Address1_Telephone2 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_telephone2"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_telephone2", value); - } - } - - /// - /// Third telephone number associated with address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] - public string? Address1_Telephone3 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_telephone3"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_telephone3", value); - } - } - - /// - /// United Parcel Service (UPS) zone for address 1. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] - public string? Address1_UpsZone - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address1_upszone"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_upszone", value); - } - } - - /// - /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] - public System.Nullable Address1_UtcOffset - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address1_utcoffset"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address1_utcoffset", value); - } - } - - /// - /// Unique identifier for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] - public System.Nullable Address2_AddressId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address2_addressid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_addressid", value); - } - } - - /// - /// Type of address for address 2, such as billing, shipping, or primary address. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] - public virtual SystemUser_Address2_AddressTypeCode? Address2_AddressTypeCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_Address2_AddressTypeCode?)(EntityOptionSetEnum.GetEnum(this, "address2_addresstypecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecodename")] - public string? Address2_AddressTypeCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("address2_addresstypecode")) - { - return this.FormattedValues["address2_addresstypecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// City name for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] - public string? Address2_City - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_city"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_city", value); - } - } - - /// - /// Shows the complete secondary address. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_composite")] - public string? Address2_Composite - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_composite"); - } - } - - /// - /// Country/region name in address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] - public string? Address2_Country - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_country"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_country", value); - } - } - - /// - /// County name for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] - public string? Address2_County - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_county"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_county", value); - } - } - - /// - /// Fax number for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] - public string? Address2_Fax - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_fax"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_fax", value); - } - } - - /// - /// Latitude for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] - public System.Nullable Address2_Latitude - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address2_latitude"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_latitude", value); - } - } - - /// - /// First line for entering address 2 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] - public string? Address2_Line1 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_line1"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_line1", value); - } - } - - /// - /// Second line for entering address 2 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] - public string? Address2_Line2 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_line2"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_line2", value); - } - } - - /// - /// Third line for entering address 2 information. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] - public string? Address2_Line3 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_line3"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_line3", value); - } - } - - /// - /// Longitude for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] - public System.Nullable Address2_Longitude - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address2_longitude"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_longitude", value); - } - } - - /// - /// Name to enter for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] - public string? Address2_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_name", value); - } - } - - /// - /// ZIP Code or postal code for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] - public string? Address2_PostalCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_postalcode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_postalcode", value); - } - } - - /// - /// Post office box number for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] - public string? Address2_PostofficeBox - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_postofficebox"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_postofficebox", value); - } - } - - /// - /// Method of shipment for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] - public virtual SystemUser_Address2_ShippingMethodCode? Address2_ShippingMethodCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_Address2_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "address2_shippingmethodcode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcodename")] - public string? Address2_ShippingMethodCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("address2_shippingmethodcode")) - { - return this.FormattedValues["address2_shippingmethodcode"]; - } - else - { - return default(string); - } - } - } - - /// - /// State or province for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] - public string? Address2_StateOrProvince - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_stateorprovince"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_stateorprovince", value); - } - } - - /// - /// First telephone number associated with address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] - public string? Address2_Telephone1 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_telephone1"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_telephone1", value); - } - } - - /// - /// Second telephone number associated with address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] - public string? Address2_Telephone2 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_telephone2"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_telephone2", value); - } - } - - /// - /// Third telephone number associated with address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] - public string? Address2_Telephone3 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_telephone3"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_telephone3", value); - } - } - - /// - /// United Parcel Service (UPS) zone for address 2. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] - public string? Address2_UpsZone - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("address2_upszone"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_upszone", value); - } - } - - /// - /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] - public System.Nullable Address2_UtcOffset - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("address2_utcoffset"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("address2_utcoffset", value); - } - } - - /// - /// The identifier for the application. This is used to access data in another application. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("applicationid")] - public System.Nullable ApplicationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("applicationid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("applicationid", value); - } - } - - /// - /// The URI used as a unique logical identifier for the external app. This can be used to validate the application. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("applicationiduri")] - public string? ApplicationIdUri - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("applicationiduri"); - } - } - - /// - /// This is the application directory object Id. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("azureactivedirectoryobjectid")] - public System.Nullable AzureActiveDirectoryObjectId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("azureactivedirectoryobjectid"); - } - } - - /// - /// Date and time when the user was set as soft deleted in Azure. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("azuredeletedon")] - public System.Nullable AzureDeletedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("azuredeletedon"); - } - } - - /// - /// Azure state of user - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("azurestate")] - public virtual SystemUser_AzureState? AzureState - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_AzureState?)(EntityOptionSetEnum.GetEnum(this, "azurestate"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("azurestate", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("azurestatename")] - public string? AzureStatenAMe - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("azurestate")) - { - return this.FormattedValues["azurestate"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the business unit with which the user is associated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] - public Microsoft.Xrm.Sdk.EntityReference? BusinessUnitId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("businessunitid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("businessunitid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitidname")] - public string? BusinessUnitIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("businessunitid")) - { - return this.FormattedValues["businessunitid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Fiscal calendar associated with the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] - public Microsoft.Xrm.Sdk.EntityReference? CalendarId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("calendarid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("calendarid", value); - } - } - - /// - /// License type of user. 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 - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_CalType?)(EntityOptionSetEnum.GetEnum(this, "caltype"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("caltype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("caltypename")] - public string? CalTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("caltype")) - { - return this.FormattedValues["caltype"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the user who created the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] - public string? CreatedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] - public string? CreatedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdby")) - { - return this.FormattedValues["createdby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the user was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the systemuser. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Indicates if default outlook filters have been populated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultfilterspopulated")] - public System.Nullable DefaultFiltersPopulated - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("defaultfilterspopulated"); - } - } - - /// - /// Select the mailbox associated with this user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultmailbox")] - public Microsoft.Xrm.Sdk.EntityReference? DefaultMailbox - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("defaultmailbox"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultmailboxname")] - public string? DefaultMailboxName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("defaultmailbox")) - { - return this.FormattedValues["defaultmailbox"]; - } - else - { - return default(string); - } - } - } - - /// - /// Type a default folder name for the user's OneDrive For Business location. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultodbfoldername")] - public string? DefaultOdbFolderName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("defaultodbfoldername"); - } - } - - /// - /// User delete state - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deletedstate")] - public virtual SystemUser_DeletedState? DeletedState - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_DeletedState?)(EntityOptionSetEnum.GetEnum(this, "deletedstate"))); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deletedstatename")] - public string? DeletedStateName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("deletedstate")) - { - return this.FormattedValues["deletedstate"]; - } - else - { - return default(string); - } - } - } - - /// - /// Reason for disabling the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("disabledreason")] - public string? DisabledReason - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("disabledreason"); - } - } - - /// - /// Whether to display the user in service views. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayinserviceviews")] - public System.Nullable DisplayInServiceViews - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("displayinserviceviews"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("displayinserviceviews", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayinserviceviewsname")] - public string? DisplayInServiceViewsName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("displayinserviceviews")) - { - return this.FormattedValues["displayinserviceviews"]; - } - else - { - return default(string); - } - } - } - - /// - /// Active Directory domain of which the user is a member. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("domainname")] - public string? DomainName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("domainname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("domainname", value); - } - } - - /// - /// Shows the status of the primary email address. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailrouteraccessapproval")] - public virtual SystemUser_EmailRouterAccessApproval? EmailRouterAccessApproval - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_EmailRouterAccessApproval?)(EntityOptionSetEnum.GetEnum(this, "emailrouteraccessapproval"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("emailrouteraccessapproval", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailrouteraccessapprovalname")] - public string? EmailRouterAccessApprovalName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("emailrouteraccessapproval")) - { - return this.FormattedValues["emailrouteraccessapproval"]; - } - else - { - return default(string); - } - } - } - - /// - /// Employee identifier for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("employeeid")] - public string? EmployeeId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("employeeid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("employeeid", value); - } - } - - /// - /// Shows the default image for the record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] - public byte[]? EntityImage - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("entityimage"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("entityimage", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] - public System.Nullable EntityImage_Timestamp - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("entityimage_timestamp"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] - public string? EntityImage_Url - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("entityimage_url"); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] - public System.Nullable EntityImageId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("entityimageid"); - } - } - - /// - /// Exchange rate for the currency associated with the systemuser with respect to the base currency. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] - public System.Nullable ExchangerAte - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("exchangerate"); - } - } - - /// - /// First name of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firstname")] - public string? FirstName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("firstname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("firstname", value); - } - } - - /// - /// Full name of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fullname")] - public string? FullName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("fullname"); - } - } - - /// - /// Government identifier for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("governmentid")] - public string? GovernmentId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("governmentid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("governmentid", value); - } - } - - /// - /// Home phone number for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("homephone")] - public string? HomePhone - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("homephone"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("homephone", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("identityid")] - public System.Nullable IdentityId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("identityid"); - } - } - - /// - /// Unique identifier of the data import or data migration that created this record. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] - public System.Nullable ImportSequenceNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("importsequencenumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("importsequencenumber", value); - } - } - - /// - /// Incoming email delivery method for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemaildeliverymethod")] - public virtual SystemUser_IncomingEmailDeliveryMethod? IncomingEmailDeliveryMethod - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_IncomingEmailDeliveryMethod?)(EntityOptionSetEnum.GetEnum(this, "incomingemaildeliverymethod"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("incomingemaildeliverymethod", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("incomingemaildeliverymethodname")] - public string? IncomingEmailDeliveryMethodName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("incomingemaildeliverymethod")) - { - return this.FormattedValues["incomingemaildeliverymethod"]; - } - else - { - return default(string); - } - } - } - - /// - /// Internal email address for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("internalemailaddress")] - public string? InternalEmailAddress - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("internalemailaddress"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("internalemailaddress", value); - } - } - - /// - /// User invitation status. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invitestatuscode")] - public virtual SystemUser_InviteStatusCode? InviteStatusCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_InviteStatusCode?)(EntityOptionSetEnum.GetEnum(this, "invitestatuscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("invitestatuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("invitestatuscodename")] - public string? InviteStatusCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("invitestatuscode")) - { - return this.FormattedValues["invitestatuscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Bypasses the selected user from IP firewall restriction - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isallowedbyipfirewall")] - public System.Nullable IsAllowedByIpFirewall - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isallowedbyipfirewall"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isallowedbyipfirewall", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isallowedbyipfirewallname")] - public string? IsAllowedByIpFirewallName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("isallowedbyipfirewall")) - { - return this.FormattedValues["isallowedbyipfirewall"]; - } - else - { - return default(string); - } - } - } - - /// - /// Information about whether the user is enabled. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] - public System.Nullable IsDisabled - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isdisabled"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isdisabled", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabledname")] - public string? IsDisabledName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("isdisabled")) - { - return this.FormattedValues["isdisabled"]; - } - else - { - return default(string); - } - } - } - - /// - /// Shows the status of approval of the email address by O365 Admin. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isemailaddressapprovedbyo365admin")] - public System.Nullable IsEmailAddressApprovedByO365Admin - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isemailaddressapprovedbyo365admin"); - } - } - - /// - /// Check if user is an integration user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isintegrationuser")] - public System.Nullable IsIntegrationUser - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isintegrationuser"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isintegrationuser", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isintegrationusername")] - public string? IsIntegrationUsername - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("isintegrationuser")) - { - return this.FormattedValues["isintegrationuser"]; - } - else - { - return default(string); - } - } - } - - /// - /// Information about whether the user is licensed. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("islicensed")] - public System.Nullable IsLicensed - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("islicensed"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("islicensed", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("islicensedname")] - public string? IsLicensedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("islicensed")) - { - return this.FormattedValues["islicensed"]; - } - else - { - return default(string); - } - } - } - - /// - /// Information about whether the user is synced with the directory. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issyncwithdirectory")] - public System.Nullable IsSyncWithDirectory - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("issyncwithdirectory"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("issyncwithdirectory", value); - } - } - - /// - /// Job title of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("jobtitle")] - public string? JobTitle - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("jobtitle"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("jobtitle", value); - } - } - - /// - /// Last name of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastname")] - public string? LastName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("lastname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("lastname", value); - } - } - - /// - /// Middle name of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("middlename")] - public string? MiddleName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("middlename"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("middlename", value); - } - } - - /// - /// Mobile alert email address for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobilealertemail")] - public string? MobileAlertEmail - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("mobilealertemail"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("mobilealertemail", value); - } - } - - /// - /// Items contained with a particular SystemUser. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobileofflineprofileid")] - public Microsoft.Xrm.Sdk.EntityReference? MobileOfflineProfileId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("mobileofflineprofileid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("mobileofflineprofileid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobileofflineprofileidname")] - public string? MobileOfflineProfileIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("mobileofflineprofileid")) - { - return this.FormattedValues["mobileofflineprofileid"]; - } - else - { - return default(string); - } - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("mobileofflineprofileidname", value); - } - } - - /// - /// Mobile phone number for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobilephone")] - public string? MobilePhone - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("mobilephone"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("mobilephone", value); - } - } - - /// - /// Unique identifier of the user who last modified the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] - public string? ModifiedByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] - public string? ModifiedByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedby")) - { - return this.FormattedValues["modifiedby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time when the user was last modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who last modified the systemuser. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Nickname of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nickname")] - public string? Nickname - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("nickname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("nickname", value); - } - } - - /// - /// Unique identifier of the organization associated with the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] - public System.Nullable OrganizationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("organizationid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationidname")] - public string? OrganizationIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("organizationid")) - { - return this.FormattedValues["organizationid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Outgoing email delivery method for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingemaildeliverymethod")] - public virtual SystemUser_OutgoingEmailDeliveryMethod? OutgoingEmailDeliveryMethod - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_OutgoingEmailDeliveryMethod?)(EntityOptionSetEnum.GetEnum(this, "outgoingemaildeliverymethod"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("outgoingemaildeliverymethod", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("outgoingemaildeliverymethodname")] - public string? OutgoingEmailDeliveryMethodName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("outgoingemaildeliverymethod")) - { - return this.FormattedValues["outgoingemaildeliverymethod"]; - } - else - { - return default(string); - } - } - } - - /// - /// Date and time that the record was migrated. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] - public System.Nullable OverriddenCreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overriddencreatedon"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("overriddencreatedon", value); - } - } - - /// - /// Unique identifier of the manager of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsystemuserid")] - public Microsoft.Xrm.Sdk.EntityReference? ParentSystemUserId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("parentsystemuserid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("parentsystemuserid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsystemuseridname")] - public string? ParentSystemUserIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("parentsystemuserid")) - { - return this.FormattedValues["parentsystemuserid"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsystemuseridyominame")] - public string? ParentSystemUserIdYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("parentsystemuserid")) - { - return this.FormattedValues["parentsystemuserid"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("passporthi")] - public System.Nullable PassportHi - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("passporthi"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("passporthi", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("passportlo")] - public System.Nullable PassportLo - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("passportlo"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("passportlo", value); - } - } - - /// - /// Personal email address of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("personalemailaddress")] - public string? PersonalEmailAddress - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("personalemailaddress"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("personalemailaddress", value); - } - } - - /// - /// URL for the Website on which a photo of the user is located. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("photourl")] - public string? PhotoUrl - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("photourl"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("photourl", value); - } - } - - /// - /// User's position in hierarchical security model. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("positionid")] - public Microsoft.Xrm.Sdk.EntityReference? PositionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("positionid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("positionid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("positionidname")] - public string? PositionIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("positionid")) - { - return this.FormattedValues["positionid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Preferred address for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredaddresscode")] - public virtual SystemUser_PreferredAddressCode? PreferredAddressCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_PreferredAddressCode?)(EntityOptionSetEnum.GetEnum(this, "preferredaddresscode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("preferredaddresscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredaddresscodename")] - public string? PreferredAddressCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("preferredaddresscode")) - { - return this.FormattedValues["preferredaddresscode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Preferred email address for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredemailcode")] - public virtual SystemUser_PreferredEmailCode? PreferredEmailCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_PreferredEmailCode?)(EntityOptionSetEnum.GetEnum(this, "preferredemailcode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("preferredemailcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredemailcodename")] - public string? PreferredEmailCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("preferredemailcode")) - { - return this.FormattedValues["preferredemailcode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Preferred phone number for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredphonecode")] - public virtual SystemUser_PreferredPhoneCode? PreferredPhoneCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_PreferredPhoneCode?)(EntityOptionSetEnum.GetEnum(this, "preferredphonecode"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("preferredphonecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredphonecodename")] - public string? PreferredPhoneCodename - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("preferredphonecode")) - { - return this.FormattedValues["preferredphonecode"]; - } - else - { - return default(string); - } - } - } - - /// - /// Shows the ID of the process. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] - public System.Nullable ProcessId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("processid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("processid", value); - } - } - - /// - /// Unique identifier of the default queue for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] - public Microsoft.Xrm.Sdk.EntityReference? QueueId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("queueid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("queueid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueidname")] - public string? QueueIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("queueid")) - { - return this.FormattedValues["queueid"]; - } - else - { - return default(string); - } - } - } - - /// - /// Salutation for correspondence with the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salutation")] - public string? Salutation - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("salutation"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("salutation", value); - } - } - - /// - /// Check if user is a setup user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("setupuser")] - public System.Nullable SetupUser - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("setupuser"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("setupuser", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("setupusername")] - public string? SetupUsername - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("setupuser")) - { - return this.FormattedValues["setupuser"]; - } - else - { - return default(string); - } - } - } - - /// - /// SharePoint Work Email Address - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharepointemailaddress")] - public string? SharePointEmailAddress - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("sharepointemailaddress"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("sharepointemailaddress", value); - } - } - - /// - /// Skill set of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("skills")] - public string? Skills - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("skills"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("skills", value); - } - } - - /// - /// Shows the ID of the stage. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] - [System.Obsolete("This attribute is deprecated.")] - public System.Nullable StageId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("stageid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("stageid", value); - } - } - - /// - /// The type of user - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemmanagedusertype")] - public virtual SystemUser_SystemManagedUserType? SystemManagedUserType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((SystemUser_SystemManagedUserType?)(EntityOptionSetEnum.GetEnum(this, "systemmanagedusertype"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("systemmanagedusertype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemmanagedusertypename")] - public string? SystemManagedUserTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("systemmanagedusertype")) - { - return this.FormattedValues["systemmanagedusertype"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier for the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] - public System.Nullable SystemUserId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("systemuserid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("systemuserid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemuserid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SystemUserId = value; - } - } - - /// - /// Unique identifier of the territory to which the user is assigned. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryid")] - public Microsoft.Xrm.Sdk.EntityReference? TerritoryId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("territoryid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("territoryid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryidname")] - public string? TerritoryIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("territoryid")) - { - return this.FormattedValues["territoryid"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] - public System.Nullable TimeZoneRuleVersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("timezoneruleversionnumber"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("timezoneruleversionnumber", value); - } - } - - /// - /// Title of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("title")] - public string? Title - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("title"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("title", value); - } - } - - /// - /// Unique identifier of the currency associated with the systemuser. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] - public Microsoft.Xrm.Sdk.EntityReference? TransactionCurrencyId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("transactioncurrencyid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("transactioncurrencyid", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyidname")] - public string? TransactionCurrencyIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("transactioncurrencyid")) - { - return this.FormattedValues["transactioncurrencyid"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traversedpath")] - [System.Obsolete("This attribute is deprecated.")] - public string? TraversedPath - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("traversedpath"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("traversedpath", value); - } - } - - /// - /// Shows the type of user license. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userlicensetype")] - public System.Nullable UserLicenseType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("userlicensetype"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("userlicensetype", value); - } - } - - /// - /// User PUID User Identifiable Information - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("userpuid")] - public string? UserPuid - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("userpuid"); - } - } - - /// - /// Time zone code that was in use when the record was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] - public System.Nullable UtcConversionTimeZoneCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("utcconversiontimezonecode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("utcconversiontimezonecode", value); - } - } - - /// - /// Version number of the user. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// Windows Live ID - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("windowsliveid")] - public string? WindowsLiveId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("windowsliveid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("windowsliveid", value); - } - } - - /// - /// User's Yammer login email address - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammeremailaddress")] - public string? YammerEmailAddress - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("yammeremailaddress"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("yammeremailaddress", value); - } - } - - /// - /// User's Yammer ID - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yammeruserid")] - public string? YammerUserId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("yammeruserid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("yammeruserid", value); - } - } - - /// - /// Pronunciation of the first name of the user, written in phonetic hiragana or katakana characters. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifirstname")] - public string? YomiFirstName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("yomifirstname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("yomifirstname", value); - } - } - - /// - /// Pronunciation of the full name of the user, written in phonetic hiragana or katakana characters. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifullname")] - public string? YomiFullName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("yomifullname"); - } - } - - /// - /// Pronunciation of the last name of the user, written in phonetic hiragana or katakana characters. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomilastname")] - public string? YomiLastName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("yomilastname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("yomilastname", value); - } - } - - /// - /// Pronunciation of the middle name of the user, written in phonetic hiragana or katakana characters. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomimiddlename")] - public string? YomiMiddleName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("yomimiddlename"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("yomimiddlename", value); - } - } - - /// - /// 1:N createdby_pluginassembly - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_pluginassembly")] - public System.Collections.Generic.IEnumerable? CreatedBy_PluginAssembly - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("createdby_pluginassembly", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("createdby_pluginassembly", null, value); - } - } - - /// - /// 1:N createdby_plugintype - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_plugintype")] - public System.Collections.Generic.IEnumerable? CreatedBy_PluginType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("createdby_plugintype", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("createdby_plugintype", null, value); - } - } - - /// - /// 1:N createdby_sdkmessage - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessage")] - public System.Collections.Generic.IEnumerable? CreatedBy_SdkMessage - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("createdby_sdkmessage", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("createdby_sdkmessage", null, value); - } - } - - /// - /// 1:N createdby_sdkmessagefilter - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessagefilter")] - public System.Collections.Generic.IEnumerable? CreatedBy_SdkMessageFilter - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("createdby_sdkmessagefilter", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("createdby_sdkmessagefilter", null, value); - } - } - - /// - /// 1:N createdby_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstep")] - public System.Collections.Generic.IEnumerable? CreatedBy_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("createdby_sdkmessageprocessingstep", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("createdby_sdkmessageprocessingstep", null, value); - } - } - - /// - /// 1:N createdby_sdkmessageprocessingstepimage - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("createdby_sdkmessageprocessingstepimage")] - public System.Collections.Generic.IEnumerable? CreatedBy_SdkMessageProcessingStepImage - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("createdby_sdkmessageprocessingstepimage", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("createdby_sdkmessageprocessingstepimage", null, value); - } - } - - /// - /// 1:N impersonatinguserid_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("impersonatinguserid_sdkmessageprocessingstep")] - public System.Collections.Generic.IEnumerable? ImpersonatingUserId_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("impersonatinguserid_sdkmessageprocessingstep", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("impersonatinguserid_sdkmessageprocessingstep", null, value); - } - } - - /// - /// 1:N lk_customapi_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapi_createdby")] - public System.Collections.Generic.IEnumerable? Lk_CustomApi_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_customapi_createdby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_customapi_createdby", null, value); - } - } - - /// - /// 1:N lk_customapi_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapi_createdonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_CustomApi_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_customapi_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_customapi_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_customapi_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapi_modifiedby")] - public System.Collections.Generic.IEnumerable? Lk_CustomApi_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_customapi_modifiedby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_customapi_modifiedby", null, value); - } - } - - /// - /// 1:N lk_customapi_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapi_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_CustomApi_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_customapi_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_customapi_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_customapirequestparameter_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapirequestparameter_createdby")] - public System.Collections.Generic.IEnumerable? Lk_CustomApiRequestParameter_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_customapirequestparameter_createdby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_customapirequestparameter_createdby", null, value); - } - } - - /// - /// 1:N lk_customapirequestparameter_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapirequestparameter_createdonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_CustomApiRequestParameter_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_customapirequestparameter_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_customapirequestparameter_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_customapirequestparameter_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapirequestparameter_modifiedby")] - public System.Collections.Generic.IEnumerable? Lk_CustomApiRequestParameter_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_customapirequestparameter_modifiedby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_customapirequestparameter_modifiedby", null, value); - } - } - - /// - /// 1:N lk_customapirequestparameter_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapirequestparameter_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_CustomApiRequestParameter_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_customapirequestparameter_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_customapirequestparameter_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_customapiresponseproperty_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapiresponseproperty_createdby")] - public System.Collections.Generic.IEnumerable? Lk_CustomApiResponseProperty_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_customapiresponseproperty_createdby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_customapiresponseproperty_createdby", null, value); - } - } - - /// - /// 1:N lk_customapiresponseproperty_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapiresponseproperty_createdonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_CustomApiResponseProperty_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_customapiresponseproperty_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_customapiresponseproperty_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_customapiresponseproperty_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapiresponseproperty_modifiedby")] - public System.Collections.Generic.IEnumerable? Lk_CustomApiResponseProperty_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_customapiresponseproperty_modifiedby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_customapiresponseproperty_modifiedby", null, value); - } - } - - /// - /// 1:N lk_customapiresponseproperty_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_customapiresponseproperty_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_CustomApiResponseProperty_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_customapiresponseproperty_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_customapiresponseproperty_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_pluginassembly_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_createdonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_PluginAssembly_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_pluginassembly_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_pluginassembly_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_pluginassembly_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_pluginassembly_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_PluginAssembly_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_pluginassembly_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_pluginassembly_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_plugintype_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_createdonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_PluginType_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_plugintype_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_plugintype_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_plugintype_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_plugintype_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_PluginType_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_plugintype_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_plugintype_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_publisher_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_createdby")] - public System.Collections.Generic.IEnumerable? Lk_Publisher_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_publisher_createdby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_publisher_createdby", null, value); - } - } - - /// - /// 1:N lk_publisher_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisher_modifiedby")] - public System.Collections.Generic.IEnumerable? Lk_Publisher_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_publisher_modifiedby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_publisher_modifiedby", null, value); - } - } - - /// - /// 1:N lk_publisherbase_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_createdonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_PublisherBase_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_publisherbase_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_publisherbase_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_publisherbase_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_publisherbase_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_PublisherBase_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_publisherbase_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_publisherbase_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_sdkmessage_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_createdonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_SdkMessage_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_sdkmessage_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_sdkmessage_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_sdkmessage_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessage_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_SdkMessage_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_sdkmessage_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_sdkmessage_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_sdkmessagefilter_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_createdonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_SdkMessageFilter_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_sdkmessagefilter_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_sdkmessagefilter_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_sdkmessagefilter_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessagefilter_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_SdkMessageFilter_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_sdkmessagefilter_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_sdkmessagefilter_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_sdkmessageprocessingstep_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_createdonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_SdkMessageProcessingStep_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_sdkmessageprocessingstep_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_sdkmessageprocessingstep_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_sdkmessageprocessingstep_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstep_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_SdkMessageProcessingStep_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_sdkmessageprocessingstep_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_sdkmessageprocessingstep_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_sdkmessageprocessingstepimage_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_createdonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_SdkMessageProcessingStepImage_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_sdkmessageprocessingstepimage_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_sdkmessageprocessingstepimage_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_sdkmessageprocessingstepimage_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_sdkmessageprocessingstepimage_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_SdkMessageProcessingStepImage_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_solution_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_createdby")] - public System.Collections.Generic.IEnumerable? Lk_Solution_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_solution_createdby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_solution_createdby", null, value); - } - } - - /// - /// 1:N lk_solution_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solution_modifiedby")] - public System.Collections.Generic.IEnumerable? Lk_Solution_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_solution_modifiedby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_solution_modifiedby", null, value); - } - } - - /// - /// 1:N lk_solutionbase_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_createdonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_SolutionBase_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_solutionbase_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_solutionbase_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_solutionbase_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutionbase_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_SolutionBase_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_solutionbase_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_solutionbase_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_solutioncomponentbase_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_createdonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_SolutionComponentBase_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_solutioncomponentbase_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_solutioncomponentbase_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_solutioncomponentbase_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_solutioncomponentbase_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_SolutionComponentBase_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_solutioncomponentbase_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_solutioncomponentbase_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N lk_systemuser_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] - public System.Collections.Generic.IEnumerable? ReferencedLk_SystemUser_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); - } - } - - /// - /// 1:N lk_systemuser_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] - public System.Collections.Generic.IEnumerable? ReferencedLk_SystemUser_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); - } - } - - /// - /// 1:N lk_systemuserbase_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] - public System.Collections.Generic.IEnumerable? ReferencedLk_SystemUserBase_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); - } - } - - /// - /// 1:N lk_systemuserbase_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced)] - public System.Collections.Generic.IEnumerable? ReferencedLk_SystemUserBase_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); - } - } - - /// - /// 1:N lk_webresourcebase_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_webresourcebase_createdonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_WebResourceBase_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_webresourcebase_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_webresourcebase_createdonbehalfby", null, value); - } - } - - /// - /// 1:N lk_webresourcebase_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_webresourcebase_modifiedonbehalfby")] - public System.Collections.Generic.IEnumerable? Lk_WebResourceBase_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("lk_webresourcebase_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("lk_webresourcebase_modifiedonbehalfby", null, value); - } - } - - /// - /// 1:N modifiedby_pluginassembly - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_pluginassembly")] - public System.Collections.Generic.IEnumerable? ModifiedBy_PluginAssembly - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("modifiedby_pluginassembly", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("modifiedby_pluginassembly", null, value); - } - } - - /// - /// 1:N modifiedby_plugintype - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_plugintype")] - public System.Collections.Generic.IEnumerable? ModifiedBy_PluginType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("modifiedby_plugintype", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("modifiedby_plugintype", null, value); - } - } - - /// - /// 1:N modifiedby_sdkmessage - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessage")] - public System.Collections.Generic.IEnumerable? ModifiedBy_SdkMessage - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("modifiedby_sdkmessage", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("modifiedby_sdkmessage", null, value); - } - } - - /// - /// 1:N modifiedby_sdkmessagefilter - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessagefilter")] - public System.Collections.Generic.IEnumerable? ModifiedBy_SdkMessageFilter - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("modifiedby_sdkmessagefilter", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("modifiedby_sdkmessagefilter", null, value); - } - } - - /// - /// 1:N modifiedby_sdkmessageprocessingstep - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstep")] - public System.Collections.Generic.IEnumerable? ModifiedBy_SdkMessageProcessingStep - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("modifiedby_sdkmessageprocessingstep", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("modifiedby_sdkmessageprocessingstep", null, value); - } - } - - /// - /// 1:N modifiedby_sdkmessageprocessingstepimage - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("modifiedby_sdkmessageprocessingstepimage")] - public System.Collections.Generic.IEnumerable? ModifiedBy_SdkMessageProcessingStepImage - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("modifiedby_sdkmessageprocessingstepimage", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("modifiedby_sdkmessageprocessingstepimage", null, value); - } - } - - /// - /// 1:N user_customapi - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_customapi")] - public System.Collections.Generic.IEnumerable? User_CustomApi - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("user_customapi", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("user_customapi", null, value); - } - } - - /// - /// 1:N user_parent_user - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced)] - public System.Collections.Generic.IEnumerable? ReferencedUser_Parent_User - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); - } - } - - /// - /// 1:N webresource_createdby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_createdby")] - public System.Collections.Generic.IEnumerable? WebResource_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("webresource_createdby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("webresource_createdby", null, value); - } - } - - /// - /// 1:N webresource_modifiedby - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_modifiedby")] - public System.Collections.Generic.IEnumerable? WebResource_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("webresource_modifiedby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("webresource_modifiedby", null, value); - } - } - - /// - /// N:1 lk_systemuser_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] - public XrmSync.Dataverse.Context.SystemUser? ReferencingLk_SystemUser_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_systemuser_createdonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); - } - } - - /// - /// N:1 lk_systemuser_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] - public XrmSync.Dataverse.Context.SystemUser? ReferencingLk_SystemUser_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_systemuser_modifiedonbehalfby", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); - } - } - - /// - /// N:1 lk_systemuserbase_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] - public XrmSync.Dataverse.Context.SystemUser? ReferencingLk_SystemUserBase_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_systemuserbase_createdby", Microsoft.Xrm.Sdk.EntityRole.Referencing); - } - } - - /// - /// N:1 lk_systemuserbase_modifiedby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referencing)] - public XrmSync.Dataverse.Context.SystemUser? ReferencingLk_SystemUserBase_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_systemuserbase_modifiedby", Microsoft.Xrm.Sdk.EntityRole.Referencing); - } - } - - /// - /// N:1 user_parent_user - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentsystemuserid")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing)] - public XrmSync.Dataverse.Context.SystemUser? ReferencingUser_Parent_User - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("user_parent_user", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public SystemUser(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["systemuserid"] = base.Id; - break; - case "systemuserid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/Entities/WebResource.cs b/Dataverse/Context/Entities/WebResource.cs deleted file mode 100644 index 7323953..0000000 --- a/Dataverse/Context/Entities/WebResource.cs +++ /dev/null @@ -1,962 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - /// - /// Drop-down list for selecting the type of the web resource. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum WebResource_WebResourceType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Data (XML)", 3)] - DataXml = 4, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("GIF format", 6)] - GifFormat = 7, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("ICO format", 9)] - IcoFormat = 10, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("JPG format", 5)] - JpgFormat = 6, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("PNG format", 4)] - PngFormat = 5, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Script (JScript)", 2)] - ScriptJscript = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Silverlight (XAP)", 7)] - SilverlightXap = 8, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("String (RESX)", 11)] - StringResx = 12, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Style Sheet (CSS)", 1)] - StyleSheetCss = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Style Sheet (XSL)", 8)] - StyleSheetXsl = 9, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Vector format (SVG)", 10)] - VectorFormatSvg = 11, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Webpage (HTML)", 0)] - WebpageHtml = 1, - } - - /// - /// Data equivalent to files used in Web development. Web resources provide client-side components that are used to provide custom user interface elements. - /// - [System.Runtime.Serialization.DataContractAttribute()] - [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("webresource")] - public partial class WebResource : Microsoft.Xrm.Sdk.Entity - { - - /// - /// Available fields, a the time of codegen, for the webresource entity - /// - public partial class Fields - { - public const string CanBeDeleted = "canbedeleted"; - public const string ComponentState = "componentstate"; - public const string Content = "content"; - public const string ContentFileRef = "contentfileref"; - public const string ContentFileRef_Name = "contentfileref_name"; - public const string ContentJSon = "contentjson"; - public const string ContentJSonFileRef = "contentjsonfileref"; - public const string ContentJSonFileRef_Name = "contentjsonfileref_name"; - public const string CreatedBy = "createdby"; - public const string CreatedOn = "createdon"; - public const string CreatedOnBehalfBy = "createdonbehalfby"; - public const string CreatedOnBehalfByName = "createdonbehalfbyname"; - public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; - public const string DependencyXml = "dependencyxml"; - public const string Description = "description"; - public const string DisplayName = "displayname"; - public const string IntroducedVersion = "introducedversion"; - public const string IsAvailableForMobileOffline = "isavailableformobileoffline"; - public const string IsCustomizable = "iscustomizable"; - public const string IsEnabledForMobileClient = "isenabledformobileclient"; - public const string IsHidden = "ishidden"; - public const string IsManaged = "ismanaged"; - public const string IsManagedName = "ismanagedname"; - public const string LanguageCode = "languagecode"; - public const string Lk_WebResourceBase_CreatedOnBehalfBy = "lk_webresourcebase_createdonbehalfby"; - public const string Lk_WebResourceBase_ModifiedOnBehalfBy = "lk_webresourcebase_modifiedonbehalfby"; - public const string ModifiedBy = "modifiedby"; - public const string ModifiedOn = "modifiedon"; - public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; - public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; - public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; - public const string Name = "name"; - public const string OrganizationId = "organizationid"; - public const string OrganizationIdName = "organizationidname"; - public const string OverwriteTime = "overwritetime"; - public const string SilverLightVersion = "silverlightversion"; - public const string Solution_Configuration_WebResource = "Solution_Configuration_WebResource"; - public const string SolutionId = "solutionid"; - public const string VersionNumber = "versionnumber"; - public const string WebResource_CreatedBy = "webresource_createdby"; - public const string WebResource_ModifiedBy = "webresource_modifiedby"; - public const string WebResourceId = "webresourceid"; - public const string Id = "webresourceid"; - public const string WebResourceIdUnique = "webresourceidunique"; - public const string WebResourceType = "webresourcetype"; - public const string WebResourceTypeName = "webresourcetypename"; - } - - [System.Diagnostics.DebuggerNonUserCode()] - public WebResource(System.Guid id) : - base(EntityLogicalName, id) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public WebResource(string keyName, object keyValue) : - base(EntityLogicalName, keyName, keyValue) - { - } - - [System.Diagnostics.DebuggerNonUserCode()] - public WebResource(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : - base(EntityLogicalName, keyAttributes) - { - } - - /// - /// Default Constructor. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public WebResource() : - base(EntityLogicalName) - { - } - - public const string PrimaryIdAttribute = "webresourceid"; - - public const string PrimaryNameAttribute = "name"; - - public const string EntitySchemaName = "WebResource"; - - public const string EntityLogicalName = "webresource"; - - public const string EntityLogicalCollectionName = "webresources"; - - public const string EntitySetName = "webresourceset"; - - /// - /// Information that specifies whether this component can be deleted. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("canbedeleted")] - public Microsoft.Xrm.Sdk.BooleanManagedProperty? CanBeDeleted - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("canbedeleted"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("canbedeleted", value); - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")] - public virtual ComponentState? ComponentState - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((ComponentState?)(EntityOptionSetEnum.GetEnum(this, "componentstate"))); - } - } - - /// - /// Bytes of the web resource, in Base64 format. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("content")] - public string? Content - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("content"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("content", value); - } - } - - /// - /// Reference to the content file on Azure. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contentfileref")] - public object? ContentFileRef - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("contentfileref"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contentfileref_name")] - public string? ContentFileRef_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("contentfileref")) - { - return this.FormattedValues["contentfileref"]; - } - else - { - return default(string); - } - } - } - - /// - /// Json representation of the content of the resource. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contentjson")] - public string? ContentJSon - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("contentjson"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("contentjson", value); - } - } - - /// - /// Reference to the Json content file on Azure. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contentjsonfileref")] - public object? ContentJSonFileRef - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("contentjsonfileref"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contentjsonfileref_name")] - public string? ContentJSonFileRef_Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("contentjsonfileref")) - { - return this.FormattedValues["contentjsonfileref"]; - } - else - { - return default(string); - } - } - } - - /// - /// Unique identifier of the user who created the web resource. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdby"); - } - } - - /// - /// Date and time when the web resource was created. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] - public System.Nullable CreatedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("createdon"); - } - } - - /// - /// Unique identifier of the delegate user who created the web resource. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("createdonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("createdonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] - public string? CreatedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] - public string? CreatedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("createdonbehalfby")) - { - return this.FormattedValues["createdonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dependencyxml")] - public string? DependencyXml - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("dependencyxml"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("dependencyxml", value); - } - } - - /// - /// Description of the web resource. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] - public string? Description - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("description"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("description", value); - } - } - - /// - /// Display name of the web resource. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("displayname")] - public string? DisplayName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("displayname"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("displayname", value); - } - } - - /// - /// Version in which the form is introduced. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("introducedversion")] - public string? IntroducedVersion - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("introducedversion"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("introducedversion", value); - } - } - - /// - /// Information that specifies whether this web resource is available for mobile client in offline mode. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isavailableformobileoffline")] - public System.Nullable IsAvailableForMobileOffline - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isavailableformobileoffline"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isavailableformobileoffline", value); - } - } - - /// - /// Information that specifies whether this component can be customized. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscustomizable")] - public Microsoft.Xrm.Sdk.BooleanManagedProperty? IsCustomizable - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("iscustomizable"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("iscustomizable", value); - } - } - - /// - /// Information that specifies whether this web resource is enabled for mobile client. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isenabledformobileclient")] - public System.Nullable IsEnabledForMobileClient - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("isenabledformobileclient"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("isenabledformobileclient", value); - } - } - - /// - /// Information that specifies whether this component should be hidden. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ishidden")] - public Microsoft.Xrm.Sdk.BooleanManagedProperty? IsHidden - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("ishidden"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("ishidden", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")] - public System.Nullable IsManaged - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("ismanaged"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanagedname")] - public string? IsManagedName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("ismanaged")) - { - return this.FormattedValues["ismanaged"]; - } - else - { - return default(string); - } - } - } - - /// - /// Language of the web resource. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("languagecode")] - public System.Nullable LanguageCode - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("languagecode"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("languagecode", value); - } - } - - /// - /// Unique identifier of the user who last modified the web resource. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedby"); - } - } - - /// - /// Date and time when the web resource was last modified. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] - public System.Nullable ModifiedOn - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("modifiedon"); - } - } - - /// - /// Unique identifier of the delegate user who modified the web resource. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - public Microsoft.Xrm.Sdk.EntityReference? ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("modifiedonbehalfby"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("modifiedonbehalfby", value); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] - public string? ModifiedOnBehalfByName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] - public string? ModifiedOnBehalfByYomiName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("modifiedonbehalfby")) - { - return this.FormattedValues["modifiedonbehalfby"]; - } - else - { - return default(string); - } - } - } - - /// - /// Name of the web resource. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] - public string? Name - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("name"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("name", value); - } - } - - /// - /// Unique identifier of the organization associated with the web resource. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] - public Microsoft.Xrm.Sdk.EntityReference? OrganizationId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("organizationid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationidname")] - public string? OrganizationIdName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("organizationid")) - { - return this.FormattedValues["organizationid"]; - } - else - { - return default(string); - } - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")] - public System.Nullable OverwriteTime - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("overwritetime"); - } - } - - /// - /// Silverlight runtime version number required by a silverlight web resource. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("silverlightversion")] - public string? SilverLightVersion - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue("silverlightversion"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("silverlightversion", value); - } - } - - /// - /// Unique identifier of the associated solution. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")] - public System.Nullable SolutionId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("solutionid"); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] - public System.Nullable VersionNumber - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("versionnumber"); - } - } - - /// - /// Unique identifier of the web resource. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] - public System.Nullable WebResourceId - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("webresourceid"); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("webresourceid", value); - if (value.HasValue) - { - base.Id = value.Value; - } - else - { - base.Id = System.Guid.Empty; - } - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceid")] - public override System.Guid Id - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return base.Id; - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.WebResourceId = value; - } - } - - /// - /// For internal use only. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourceidunique")] - public System.Nullable WebResourceIdUnique - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetAttributeValue>("webresourceidunique"); - } - } - - /// - /// Drop-down list for selecting the type of the web resource. - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourcetype")] - public virtual WebResource_WebResourceType? WebResourceType - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return ((WebResource_WebResourceType?)(EntityOptionSetEnum.GetEnum(this, "webresourcetype"))); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetAttributeValue("webresourcetype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); - } - } - - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("webresourcetypename")] - public string? WebResourceTypeName - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - if (this.FormattedValues.Contains("webresourcetype")) - { - return this.FormattedValues["webresourcetype"]; - } - else - { - return default(string); - } - } - } - - /// - /// 1:N solution_configuration_webresource - /// - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("solution_configuration_webresource")] - public System.Collections.Generic.IEnumerable? Solution_Configuration_WebResource - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntities("solution_configuration_webresource", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntities("solution_configuration_webresource", null, value); - } - } - - /// - /// N:1 lk_webresourcebase_createdonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_webresourcebase_createdonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_WebResourceBase_CreatedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_webresourcebase_createdonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_webresourcebase_createdonbehalfby", null, value); - } - } - - /// - /// N:1 lk_webresourcebase_modifiedonbehalfby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_webresourcebase_modifiedonbehalfby")] - public XrmSync.Dataverse.Context.SystemUser? Lk_WebResourceBase_ModifiedOnBehalfBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("lk_webresourcebase_modifiedonbehalfby", null); - } - [System.Diagnostics.DebuggerNonUserCode()] - set - { - this.SetRelatedEntity("lk_webresourcebase_modifiedonbehalfby", null, value); - } - } - - /// - /// N:1 webresource_createdby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_createdby")] - public XrmSync.Dataverse.Context.SystemUser? WebResource_CreatedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("webresource_createdby", null); - } - } - - /// - /// N:1 webresource_modifiedby - /// - [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] - [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("webresource_modifiedby")] - public XrmSync.Dataverse.Context.SystemUser? WebResource_ModifiedBy - { - [System.Diagnostics.DebuggerNonUserCode()] - get - { - return this.GetRelatedEntity("webresource_modifiedby", null); - } - } - - /// - /// Constructor for populating via LINQ queries given a LINQ anonymous type - /// LINQ anonymous type. - /// - [System.Diagnostics.DebuggerNonUserCode()] - public WebResource(object anonymousType) : - this() - { - foreach (var p in anonymousType.GetType().GetProperties()) - { - var value = p.GetValue(anonymousType, null); - var name = p.Name.ToLower(); - - if (value != null && name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) - { - value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); - name = name.Remove(name.Length - "enum".Length); - } - - switch (name) - { - case "id": - base.Id = (System.Guid)value; - Attributes["webresourceid"] = base.Id; - break; - case "webresourceid": - var id = (System.Nullable) value; - if(id == null){ continue; } - base.Id = id.Value; - Attributes[name] = base.Id; - break; - case "formattedvalues": - // Add Support for FormattedValues - FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); - break; - default: - Attributes[name] = value; - break; - } - } - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/EntityOptionSetEnum.cs b/Dataverse/Context/EntityOptionSetEnum.cs deleted file mode 100644 index aa39849..0000000 --- a/Dataverse/Context/EntityOptionSetEnum.cs +++ /dev/null @@ -1,67 +0,0 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context -{ - - - internal sealed class EntityOptionSetEnum - { - - /// - /// Returns the integer version of an OptionSetValue - /// - public static System.Nullable GetEnum(Microsoft.Xrm.Sdk.Entity entity, string attributeLogicalName) - { - if (entity.Attributes.ContainsKey(attributeLogicalName)) - { - Microsoft.Xrm.Sdk.OptionSetValue value = entity.GetAttributeValue(attributeLogicalName); - if (value != null) - { - return value.Value; - } - } - return null; - } - - /// - /// Returns a collection of integer version's of an Multi-Select OptionSetValue for a given attribute on the passed entity - /// - public static System.Collections.Generic.IEnumerable GetMultiEnum(Microsoft.Xrm.Sdk.Entity entity, string attributeLogicalName) - - { - Microsoft.Xrm.Sdk.OptionSetValueCollection value = entity.GetAttributeValue(attributeLogicalName); - System.Collections.Generic.List list = new System.Collections.Generic.List(); - if (value == null) - { - return list; - } - list.AddRange(System.Linq.Enumerable.Select(value, v => (T)(object)v.Value)); - return list; - } - - /// - /// Returns a OptionSetValueCollection based on a list of Multi-Select OptionSetValues - /// - public static Microsoft.Xrm.Sdk.OptionSetValueCollection GetMultiEnum(Microsoft.Xrm.Sdk.Entity entity, string attributeLogicalName, System.Collections.Generic.IEnumerable values) - - { - if (values == null) - { - return null; - } - Microsoft.Xrm.Sdk.OptionSetValueCollection collection = new Microsoft.Xrm.Sdk.OptionSetValueCollection(); - collection.AddRange(System.Linq.Enumerable.Select(values, v => new Microsoft.Xrm.Sdk.OptionSetValue((int)(object)v))); - return collection; - } - } -} -#pragma warning restore CS1591 diff --git a/Dataverse/Context/OptionSets/ComponentState.cs b/Dataverse/Context/OptionSets/ComponentState.cs index 1738d38..aeb4c8c 100644 --- a/Dataverse/Context/OptionSets/ComponentState.cs +++ b/Dataverse/Context/OptionSets/ComponentState.cs @@ -1,40 +1,26 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ +using System.Runtime.Serialization; -namespace XrmSync.Dataverse.Context +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum componentstate +#pragma warning restore CS8981 { - - - /// - /// The state of this component. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum ComponentState - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Deleted", 2)] - Deleted = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Deleted Unpublished", 3)] - DeletedUnpublished = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Published", 0)] - Published = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Unpublished", 1)] - Unpublished = 1, - } -} -#pragma warning restore CS1591 + [EnumMember] + [OptionSetMetadata("Published", 1033)] + Published = 0, + + [EnumMember] + [OptionSetMetadata("Unpublished", 1033)] + Unpublished = 1, + + [EnumMember] + [OptionSetMetadata("Deleted", 1033)] + Deleted = 2, + + [EnumMember] + [OptionSetMetadata("Deleted Unpublished", 1033)] + DeletedUnpublished = 3, +} \ No newline at end of file diff --git a/Dataverse/Context/OptionSets/ComponentType.cs b/Dataverse/Context/OptionSets/ComponentType.cs index 506b406..1304792 100644 --- a/Dataverse/Context/OptionSets/ComponentType.cs +++ b/Dataverse/Context/OptionSets/ComponentType.cs @@ -1,384 +1,370 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XrmSync.Dataverse.Context +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum componenttype +#pragma warning restore CS8981 { - - - /// - /// All of the possible component types for solutions. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum ComponentType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("AI Configuration", 86)] - AiConfiguration = 402, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("AI Project", 85)] - AiProject = 401, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("AI Project Type", 84)] - AiProjectType = 400, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Attachment", 28)] - Attachment = 35, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Attribute", 1)] - Attribute = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Attribute Image Configuration", 88)] - AttributeImageConfiguration = 431, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Attribute Lookup Value", 4)] - AttributeLookupValue = 5, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Attribute Map", 36)] - AttributeMap = 47, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Attribute Picklist Value", 3)] - AttributePicklistValue = 4, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Canvas App", 79)] - CanvasApp = 300, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Complex Control", 48)] - ComplexControl = 64, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Connection Role", 47)] - ConnectionRole = 63, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Connector", 80)] - Connector_371 = 371, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Connector", 81)] - Connector_372 = 372, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Contract Template", 30)] - ContractTemplate = 37, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Convert Rule", 60)] - ConvertRule = 154, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Convert Rule Item", 61)] - ConvertRuleItem = 155, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Custom Control", 66)] - CustomControl = 66, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Custom Control Default Config", 67)] - CustomControlDefaultConfig = 68, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Data Source Mapping", 68)] - DataSourceMapping = 166, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Display String", 18)] - DisplayString = 22, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Display String Map", 19)] - DisplayStringMap = 23, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Duplicate Rule", 33)] - DuplicateRule = 44, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Duplicate Rule Condition", 34)] - DuplicateRuleCondition = 45, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Email Template", 29)] - EmailTemplate = 36, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Entity", 0)] - Entity = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Entity Analytics Configuration", 87)] - EntityAnalyticsConfiguration = 430, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Entity Image Configuration", 89)] - EntityImageConfiguration = 432, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Entity Key", 13)] - EntityKey = 14, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Entity Map", 35)] - EntityMap = 46, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Entity Relationship", 9)] - EntityRelationship = 10, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Entity Relationship Relationships", 11)] - EntityRelationshipRelationships = 12, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Entity Relationship Role", 10)] - EntityRelationshipRole = 11, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Environment Variable Definition", 82)] - EnvironmentVariableDefinition = 380, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Environment Variable Value", 83)] - EnvironmentVariableValue = 381, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Field Permission", 50)] - FieldPermission = 71, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Field Security Profile", 49)] - FieldSecurityProfile = 70, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Form", 20)] - Form = 24, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Hierarchy Rule", 62)] - HierarchyRule = 65, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Import Map", 78)] - ImportMap = 208, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Index", 77)] - Index = 18, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("KB Article Template", 31)] - KbArticleTemplate = 38, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Localized Label", 6)] - LocalizedLabel = 7, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Mail Merge Template", 32)] - MailMergeTemplate = 39, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Managed Property", 12)] - ManagedProperty = 13, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Mobile Offline Profile", 63)] - MobileOfflineProfile = 161, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Mobile Offline Profile Item", 64)] - MobileOfflineProfileItem = 162, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Option Set", 8)] - OptionSet = 9, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Organization", 21)] - Organization = 25, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Plugin Assembly", 52)] - PluginAssembly = 91, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Plugin Type", 51)] - PluginType = 90, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Privilege", 14)] - Privilege = 16, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("PrivilegeObjectTypeCode", 15)] - Privilegeobjecttypecode = 17, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Relationship", 2)] - Relationship = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Relationship Extra Condition", 7)] - RelationshipExtraCondition = 8, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Report", 24)] - Report = 31, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Report Category", 26)] - ReportCategory = 33, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Report Entity", 25)] - ReportEntity = 32, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Report Visibility", 27)] - ReportVisibility = 34, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Ribbon Command", 37)] - RibbonCommand = 48, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Ribbon Context Group", 38)] - RibbonContextGroup = 49, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Ribbon Customization", 39)] - RibbonCustomization = 50, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Ribbon Diff", 42)] - RibbonDiff = 55, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Ribbon Rule", 40)] - RibbonRule = 52, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Ribbon Tab To Command Map", 41)] - RibbonTabToCommandMap = 53, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Role", 16)] - Role = 20, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Role Privilege", 17)] - RolePrivilege = 21, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Routing Rule", 56)] - RoutingRule = 150, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Routing Rule Item", 57)] - RoutingRuleItem = 151, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Saved Query", 22)] - SavedQuery = 26, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Saved Query Visualization", 43)] - SavedQueryVisualization = 59, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("SDKMessage", 69)] - Sdkmessage = 201, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("SDKMessageFilter", 70)] - Sdkmessagefilter = 202, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("SdkMessagePair", 71)] - Sdkmessagepair = 203, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("SDK Message Processing Step", 53)] - SdkMessageProcessingStep = 92, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("SDK Message Processing Step Image", 54)] - SdkMessageProcessingStepImage = 93, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("SdkMessageRequest", 72)] - Sdkmessagerequest = 204, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("SdkMessageRequestField", 73)] - Sdkmessagerequestfield = 205, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("SdkMessageResponse", 74)] - Sdkmessageresponse = 206, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("SdkMessageResponseField", 75)] - Sdkmessageresponsefield = 207, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Service Endpoint", 55)] - ServiceEndpoint = 95, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Similarity Rule", 65)] - SimilarityRule = 165, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Site Map", 46)] - SiteMap = 62, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("SLA", 58)] - Sla = 152, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("SLA Item", 59)] - SlaItem = 153, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("System Form", 44)] - SystemForm = 60, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("View Attribute", 5)] - ViewAttribute = 6, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Web Resource", 45)] - WebResource = 61, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("WebWizard", 76)] - Webwizard = 210, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Workflow", 23)] - Workflow = 29, - } -} -#pragma warning restore CS1591 + [EnumMember] + [OptionSetMetadata("Entity", 1033)] + Entity = 1, + + [EnumMember] + [OptionSetMetadata("Attribute", 1033)] + Attribute = 2, + + [EnumMember] + [OptionSetMetadata("Relationship", 1033)] + Relationship = 3, + + [EnumMember] + [OptionSetMetadata("Attribute Picklist Value", 1033)] + AttributePicklistValue = 4, + + [EnumMember] + [OptionSetMetadata("Attribute Lookup Value", 1033)] + AttributeLookupValue = 5, + + [EnumMember] + [OptionSetMetadata("View Attribute", 1033)] + ViewAttribute = 6, + + [EnumMember] + [OptionSetMetadata("Localized Label", 1033)] + LocalizedLabel = 7, + + [EnumMember] + [OptionSetMetadata("Relationship Extra Condition", 1033)] + RelationshipExtraCondition = 8, + + [EnumMember] + [OptionSetMetadata("Option Set", 1033)] + OptionSet = 9, + + [EnumMember] + [OptionSetMetadata("Entity Relationship", 1033)] + EntityRelationship = 10, + + [EnumMember] + [OptionSetMetadata("Entity Relationship Role", 1033)] + EntityRelationshipRole = 11, + + [EnumMember] + [OptionSetMetadata("Entity Relationship Relationships", 1033)] + EntityRelationshipRelationships = 12, + + [EnumMember] + [OptionSetMetadata("Managed Property", 1033)] + ManagedProperty = 13, + + [EnumMember] + [OptionSetMetadata("Entity Key", 1033)] + EntityKey = 14, + + [EnumMember] + [OptionSetMetadata("Privilege", 1033)] + Privilege = 16, + + [EnumMember] + [OptionSetMetadata("PrivilegeObjectTypeCode", 1033)] + PrivilegeObjectTypeCode = 17, + + [EnumMember] + [OptionSetMetadata("Index", 1033)] + Index = 18, + + [EnumMember] + [OptionSetMetadata("Role", 1033)] + Role = 20, + + [EnumMember] + [OptionSetMetadata("Role Privilege", 1033)] + RolePrivilege = 21, + + [EnumMember] + [OptionSetMetadata("Display String", 1033)] + DisplayString = 22, + + [EnumMember] + [OptionSetMetadata("Display String Map", 1033)] + DisplayStringMap = 23, + + [EnumMember] + [OptionSetMetadata("Form", 1033)] + Form = 24, + + [EnumMember] + [OptionSetMetadata("Organization", 1033)] + Organization = 25, + + [EnumMember] + [OptionSetMetadata("Saved Query", 1033)] + SavedQuery = 26, + + [EnumMember] + [OptionSetMetadata("Workflow", 1033)] + Workflow = 29, + + [EnumMember] + [OptionSetMetadata("Report", 1033)] + Report = 31, + + [EnumMember] + [OptionSetMetadata("Report Entity", 1033)] + ReportEntity = 32, + + [EnumMember] + [OptionSetMetadata("Report Category", 1033)] + ReportCategory = 33, + + [EnumMember] + [OptionSetMetadata("Report Visibility", 1033)] + ReportVisibility = 34, + + [EnumMember] + [OptionSetMetadata("Attachment", 1033)] + Attachment = 35, + + [EnumMember] + [OptionSetMetadata("Email Template", 1033)] + EmailTemplate = 36, + + [EnumMember] + [OptionSetMetadata("Contract Template", 1033)] + ContractTemplate = 37, + + [EnumMember] + [OptionSetMetadata("KB Article Template", 1033)] + KBArticleTemplate = 38, + + [EnumMember] + [OptionSetMetadata("Mail Merge Template", 1033)] + MailMergeTemplate = 39, + + [EnumMember] + [OptionSetMetadata("Duplicate Rule", 1033)] + DuplicateRule = 44, + + [EnumMember] + [OptionSetMetadata("Duplicate Rule Condition", 1033)] + DuplicateRuleCondition = 45, + + [EnumMember] + [OptionSetMetadata("Entity Map", 1033)] + EntityMap = 46, + + [EnumMember] + [OptionSetMetadata("Attribute Map", 1033)] + AttributeMap = 47, + + [EnumMember] + [OptionSetMetadata("Ribbon Command", 1033)] + RibbonCommand = 48, + + [EnumMember] + [OptionSetMetadata("Ribbon Context Group", 1033)] + RibbonContextGroup = 49, + + [EnumMember] + [OptionSetMetadata("Ribbon Customization", 1033)] + RibbonCustomization = 50, + + [EnumMember] + [OptionSetMetadata("Ribbon Rule", 1033)] + RibbonRule = 52, + + [EnumMember] + [OptionSetMetadata("Ribbon Tab To Command Map", 1033)] + RibbonTabToCommandMap = 53, + + [EnumMember] + [OptionSetMetadata("Ribbon Diff", 1033)] + RibbonDiff = 55, + + [EnumMember] + [OptionSetMetadata("Saved Query Visualization", 1033)] + SavedQueryVisualization = 59, + + [EnumMember] + [OptionSetMetadata("System Form", 1033)] + SystemForm = 60, + + [EnumMember] + [OptionSetMetadata("Web Resource", 1033)] + WebResource = 61, + + [EnumMember] + [OptionSetMetadata("Site Map", 1033)] + SiteMap = 62, + + [EnumMember] + [OptionSetMetadata("Connection Role", 1033)] + ConnectionRole = 63, + + [EnumMember] + [OptionSetMetadata("Complex Control", 1033)] + ComplexControl = 64, + + [EnumMember] + [OptionSetMetadata("Hierarchy Rule", 1033)] + HierarchyRule = 65, + + [EnumMember] + [OptionSetMetadata("Custom Control", 1033)] + CustomControl = 66, + + [EnumMember] + [OptionSetMetadata("Custom Control Default Config", 1033)] + CustomControlDefaultConfig = 68, + + [EnumMember] + [OptionSetMetadata("Field Security Profile", 1033)] + FieldSecurityProfile = 70, + + [EnumMember] + [OptionSetMetadata("Field Permission", 1033)] + FieldPermission = 71, + + [EnumMember] + [OptionSetMetadata("Plugin Type", 1033)] + PluginType = 90, + + [EnumMember] + [OptionSetMetadata("Plugin Assembly", 1033)] + PluginAssembly = 91, + + [EnumMember] + [OptionSetMetadata("SDK Message Processing Step", 1033)] + SDKMessageProcessingStep = 92, + + [EnumMember] + [OptionSetMetadata("SDK Message Processing Step Image", 1033)] + SDKMessageProcessingStepImage = 93, + + [EnumMember] + [OptionSetMetadata("Service Endpoint", 1033)] + ServiceEndpoint = 95, + + [EnumMember] + [OptionSetMetadata("Routing Rule", 1033)] + RoutingRule = 150, + + [EnumMember] + [OptionSetMetadata("Routing Rule Item", 1033)] + RoutingRuleItem = 151, + + [EnumMember] + [OptionSetMetadata("SLA", 1033)] + SLA = 152, + + [EnumMember] + [OptionSetMetadata("SLA Item", 1033)] + SLAItem = 153, + + [EnumMember] + [OptionSetMetadata("Convert Rule", 1033)] + ConvertRule = 154, + + [EnumMember] + [OptionSetMetadata("Convert Rule Item", 1033)] + ConvertRuleItem = 155, + + [EnumMember] + [OptionSetMetadata("Mobile Offline Profile", 1033)] + MobileOfflineProfile = 161, + + [EnumMember] + [OptionSetMetadata("Mobile Offline Profile Item", 1033)] + MobileOfflineProfileItem = 162, + + [EnumMember] + [OptionSetMetadata("Similarity Rule", 1033)] + SimilarityRule = 165, + + [EnumMember] + [OptionSetMetadata("Data Source Mapping", 1033)] + DataSourceMapping = 166, + + [EnumMember] + [OptionSetMetadata("SDKMessage", 1033)] + SDKMessage = 201, + + [EnumMember] + [OptionSetMetadata("SDKMessageFilter", 1033)] + SDKMessageFilter = 202, + + [EnumMember] + [OptionSetMetadata("SdkMessagePair", 1033)] + SdkMessagePair = 203, + + [EnumMember] + [OptionSetMetadata("SdkMessageRequest", 1033)] + SdkMessageRequest = 204, + + [EnumMember] + [OptionSetMetadata("SdkMessageRequestField", 1033)] + SdkMessageRequestField = 205, + + [EnumMember] + [OptionSetMetadata("SdkMessageResponse", 1033)] + SdkMessageResponse = 206, + + [EnumMember] + [OptionSetMetadata("SdkMessageResponseField", 1033)] + SdkMessageResponseField = 207, + + [EnumMember] + [OptionSetMetadata("Import Map", 1033)] + ImportMap = 208, + + [EnumMember] + [OptionSetMetadata("WebWizard", 1033)] + WebWizard = 210, + + [EnumMember] + [OptionSetMetadata("Canvas App", 1033)] + CanvasApp = 300, + + [EnumMember] + [OptionSetMetadata("Connector", 1033)] + Connector = 371, + + [EnumMember] + [OptionSetMetadata("Connector", 1033)] + Connector_1 = 372, + + [EnumMember] + [OptionSetMetadata("Environment Variable Definition", 1033)] + EnvironmentVariableDefinition = 380, + + [EnumMember] + [OptionSetMetadata("Environment Variable Value", 1033)] + EnvironmentVariableValue = 381, + + [EnumMember] + [OptionSetMetadata("AI Project Type", 1033)] + AIProjectType = 400, + + [EnumMember] + [OptionSetMetadata("AI Project", 1033)] + AIProject = 401, + + [EnumMember] + [OptionSetMetadata("AI Configuration", 1033)] + AIConfiguration = 402, + + [EnumMember] + [OptionSetMetadata("Entity Analytics Configuration", 1033)] + EntityAnalyticsConfiguration = 430, + + [EnumMember] + [OptionSetMetadata("Attribute Image Configuration", 1033)] + AttributeImageConfiguration = 431, + + [EnumMember] + [OptionSetMetadata("Entity Image Configuration", 1033)] + EntityImageConfiguration = 432, +} \ No newline at end of file diff --git a/Dataverse/Context/OptionSets/CustomApiFieldType.cs b/Dataverse/Context/OptionSets/CustomApiFieldType.cs index 747576f..635a825 100644 --- a/Dataverse/Context/OptionSets/CustomApiFieldType.cs +++ b/Dataverse/Context/OptionSets/CustomApiFieldType.cs @@ -1,76 +1,62 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ +using System.Runtime.Serialization; -namespace XrmSync.Dataverse.Context +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum customapifieldtype +#pragma warning restore CS8981 { - - - /// - /// Custom API Field Types - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum CustomApiFieldType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Boolean", 0, "#0000ff")] - Boolean = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("DateTime", 1, "#0000ff")] - Datetime = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Decimal", 2, "#0000ff")] - Decimal = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Entity", 3, "#0000ff")] - Entity = 3, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("EntityCollection", 4, "#0000ff")] - Entitycollection = 4, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("EntityReference", 5, "#0000ff")] - Entityreference = 5, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Float", 6, "#0000ff")] - Float = 6, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Guid", 12, "#0000ff")] - Guid = 12, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Integer", 7, "#0000ff")] - Integer = 7, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Money", 8, "#0000ff")] - Money = 8, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Picklist", 9, "#0000ff")] - Picklist = 9, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("String", 10, "#0000ff")] - String = 10, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("StringArray", 11, "#0000ff")] - Stringarray = 11, - } -} -#pragma warning restore CS1591 + [EnumMember] + [OptionSetMetadata("Boolean", 1033)] + Boolean = 0, + + [EnumMember] + [OptionSetMetadata("DateTime", 1033)] + DateTime = 1, + + [EnumMember] + [OptionSetMetadata("Decimal", 1033)] + @Decimal = 2, + + [EnumMember] + [OptionSetMetadata("Entity", 1033)] + Entity = 3, + + [EnumMember] + [OptionSetMetadata("EntityCollection", 1033)] + EntityCollection = 4, + + [EnumMember] + [OptionSetMetadata("EntityReference", 1033)] + EntityReference = 5, + + [EnumMember] + [OptionSetMetadata("Float", 1033)] + @Float = 6, + + [EnumMember] + [OptionSetMetadata("Integer", 1033)] + Integer = 7, + + [EnumMember] + [OptionSetMetadata("Money", 1033)] + Money = 8, + + [EnumMember] + [OptionSetMetadata("Picklist", 1033)] + Picklist = 9, + + [EnumMember] + [OptionSetMetadata("String", 1033)] + @String = 10, + + [EnumMember] + [OptionSetMetadata("StringArray", 1033)] + StringArray = 11, + + [EnumMember] + [OptionSetMetadata("Guid", 1033)] + Guid = 12, +} \ No newline at end of file diff --git a/Dataverse/Context/OptionSets/DependencyType.cs b/Dataverse/Context/OptionSets/DependencyType.cs index d53c23e..ab32996 100644 --- a/Dataverse/Context/OptionSets/DependencyType.cs +++ b/Dataverse/Context/OptionSets/DependencyType.cs @@ -1,40 +1,26 @@ -#nullable enable -#pragma warning disable CS1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ +using System.Runtime.Serialization; -namespace XrmSync.Dataverse.Context +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum dependencytype +#pragma warning restore CS8981 { - - - /// - /// The kind of dependency. - /// - [System.Runtime.Serialization.DataContractAttribute()] - public enum DependencyType - { - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("None", 0)] - None = 0, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Published", 2)] - Published = 2, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Solution Internal", 1)] - SolutionInternal = 1, - - [System.Runtime.Serialization.EnumMemberAttribute()] - [OptionSetMetadataAttribute("Unpublished", 3)] - Unpublished = 4, - } -} -#pragma warning restore CS1591 + [EnumMember] + [OptionSetMetadata("None", 1033)] + None = 0, + + [EnumMember] + [OptionSetMetadata("Solution Internal", 1033)] + SolutionInternal = 1, + + [EnumMember] + [OptionSetMetadata("Published", 1033)] + Published = 2, + + [EnumMember] + [OptionSetMetadata("Unpublished", 1033)] + Unpublished = 4, +} \ No newline at end of file diff --git a/Dataverse/Context/attributes/OptionSetMetadataAttribute.cs b/Dataverse/Context/attributes/OptionSetMetadataAttribute.cs new file mode 100644 index 0000000..7ac40c2 --- /dev/null +++ b/Dataverse/Context/attributes/OptionSetMetadataAttribute.cs @@ -0,0 +1,16 @@ +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)] +public sealed class OptionSetMetadataAttribute : Attribute +{ + public string Label { get; } + + public int Lcid { get; } + + public OptionSetMetadataAttribute(string label, int lcid) + { + Label = label; + Lcid = lcid; + } +} \ No newline at end of file diff --git a/Dataverse/Context/attributes/RelationshipMetadataAttribute.cs b/Dataverse/Context/attributes/RelationshipMetadataAttribute.cs new file mode 100644 index 0000000..76cfb95 --- /dev/null +++ b/Dataverse/Context/attributes/RelationshipMetadataAttribute.cs @@ -0,0 +1,26 @@ +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] +public sealed class RelationshipMetadataAttribute : Attribute +{ + public string RelationshipType { get; } + public string? ThisEntityAttribute { get; } + public string? RelatedEntity { get; } + public string? RelatedEntityAttribute { get; } + public string? ThisEntityRole { get; } + + public RelationshipMetadataAttribute( + string relationshipType, + string? thisEntityAttribute = null, + string? relatedEntity = null, + string? relatedEntityAttribute = null, + string? thisEntityRole = null) + { + RelationshipType = relationshipType; + ThisEntityAttribute = thisEntityAttribute; + RelatedEntity = relatedEntity; + RelatedEntityAttribute = relatedEntityAttribute; + ThisEntityRole = thisEntityRole; + } +} \ No newline at end of file diff --git a/Dataverse/Context/builderSettings.json b/Dataverse/Context/builderSettings.json deleted file mode 100644 index c273fec..0000000 --- a/Dataverse/Context/builderSettings.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "codeCustomizationService": "DLaB.ModelBuilderExtensions.CustomizeCodeDomService,DLaB.ModelBuilderExtensions", - "codeGenerationService": "DLaB.ModelBuilderExtensions.CodeGenerationService,DLaB.ModelBuilderExtensions", - "codeWriterFilterService": "DLaB.ModelBuilderExtensions.CodeWriterFilterService,DLaB.ModelBuilderExtensions", - "codeWriterMessageFilterService": "DLaB.ModelBuilderExtensions.CodeWriterMessageFilterService,DLaB.ModelBuilderExtensions", - "dLaB.ModelBuilder": { - "addDebuggerNonUserCode": true, - "addNewFilesToProject": false, - "addOptionSetMetadataAttribute": true, - "adjustCasingForEnumOptions": true, - "builderSettingsJsonRelativePath": "builderSettings.json", - "camelCaseClassNames": true, - "camelCaseMemberNames": true, - "camelCaseNamesDictionaryRelativePath": "DLaB.EarlyBoundGeneratorV2\\DLaB.Dictionary.txt", - "cleanupCrmSvcUtilLocalOptionSets": false, - "createOneFilePerMessage": true, - "createOneFilePerEntity": true, - "createOneFilePerOptionSet": true, - "deleteFilesFromOutputFolders": true, - "generateMessageAttributeNameConsts": true, - "generateAllOptionSetLabelMetadata": false, - "generateAttributeNameConsts": true, - "generateAnonymousTypeConstructor": true, - "generateConstructorsSansLogicalName": true, - "generateEntityRelationships": true, - "generateOptionSetProperties": false, - "generateOptionSetMetadataAttribute": true, - "generateTypesAsInternal": false, - "groupLocalOptionSetsByEntity": false, - "groupMessageRequestWithResponse": true, - "includeCommandLine": false, - "invalidCSharpNamePrefix": "_", - "localOptionSetFormat": "{0}_{1}", - "makeAllFieldsEditable": false, - "makeReadonlyFieldsEditable": false, - "makeReferenceTypesNullable": true, - "makeResponseMessagesEditable": true, - "modelBuilderLogLevel": "2", - "obsoleteDeprecated": true, - "obsoleteTokens": [ - "*(Deprecated)*" - ], - "optionNameOverrides": { - "0th": "0th", - "1st": "1st", - "2nd": "2nd", - "3rd": "3rd", - "4th": "4th", - "5th": "5th", - "6th": "6th", - "7th": "7th", - "8th": "8th", - "9th": "9th", - "conversationindex": "ConversationIndex", - "customcorrelation": "CustomCorrelation", - "fedex": "FedEx", - "groupme": "GroupMe", - "linkedin": "LinkedIn", - "nontransient": "NonTransient", - "notset": "NotSet", - "reminderexpired": "ReminderExpired", - "reminderinvalid": "ReminderInvalid", - "reminderset": "ReminderSet", - "smartmatching": "SmartMatching", - "trackingtoken": "TrackingToken", - "xheader": "XHeader" - }, - "outputRelativeDirectory": "Context", - "readSerializedMetadata": false, - "removeRuntimeVersionComment": true, - "serializeMetadata": false, - "suppressAutogeneratedFileHeaderComment": false, - "tokenCapitalizationOverrides": [ - "AccessTeam", - "ActiveState", - "AssignedTo", - "BusinessAs", - "CardUci", - "DefaultOnCase", - "EmailAnd", - "EmailSend", - "EmailSender", - "FeatureSet", - "FedEx", - "ForAn", - "Geronimo", - "IsMsTeams", - "IsPaiEnabled", - "IsSopIntegration", - "MsDynCe_", - "MsDynMkt_", - "MsDyUsd", - "O365Admin", - "OcSkillIdentMlModel", - "OnHold", - "OrderId", - "OwnerOnAssign", - "ParticipatesIn", - "PartiesOnEmail", - "PauseStates", - "PredictiveAddress", - "SentOn", - "SettingsAndSummary", - "SlaId", - "SlaKpi", - "SyncOptIn", - "Timeout", - "TradeShow", - "UserPuid", - "VoiceMail" - ], - "transliterationRelativePath": "DLaB.EarlyBoundGeneratorV2\\alphabets", - "useLogicalNames": false, - "useCrmSvcUtilStateEnumNamingConvention": false, - "useDisplayNameForBpfName": true, - "useTfsToCheckoutFiles": false, - "waitForAttachedDebugger": false - }, - "emitEntityETC": false, - "emitFieldsClasses": true, - "emitVirtualAttributes": true, - "entityNamesFilter": [ - "customapi", - "customapirequestparameter", - "customapiresponseproperty", - "dependency", - "dependencynode", - "pluginassembly", - "plugintype", - "publisher", - "sdkmessage", - "sdkmessagefilter", - "sdkmessageprocessingstep", - "sdkmessageprocessingstepimage", - "solution", - "solutioncomponent", - "systemuser", - "webresource" - ], - "entityTypesFolder": "Entities", - "generateActions": false, - "generateGlobalOptionSets": false, - "metadataProviderService": "DLaB.ModelBuilderExtensions.MetadataProviderService,DLaB.ModelBuilderExtensions", - "metadataQueryProviderService": "DLaB.ModelBuilderExtensions.MetadataQueryProviderService,DLaB.ModelBuilderExtensions", - "namespace": "XrmSync.Dataverse.Context", - "namingService": "DLaB.ModelBuilderExtensions.NamingService,DLaB.ModelBuilderExtensions", - "optionSetsTypesFolder": "OptionSets", - "serviceContextName": "DataverseContext", - "suppressGeneratedCodeAttribute": true, - "suppressINotifyPattern": true -} diff --git a/Dataverse/Context/optionsets/activityparty_instancetypecode.cs b/Dataverse/Context/optionsets/activityparty_instancetypecode.cs new file mode 100644 index 0000000..bf8c4fc --- /dev/null +++ b/Dataverse/Context/optionsets/activityparty_instancetypecode.cs @@ -0,0 +1,30 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum activityparty_instancetypecode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Not Recurring", 1033)] + NotRecurring = 0, + + [EnumMember] + [OptionSetMetadata("Recurring Master", 1033)] + RecurringMaster = 1, + + [EnumMember] + [OptionSetMetadata("Recurring Instance", 1033)] + RecurringInstance = 2, + + [EnumMember] + [OptionSetMetadata("Recurring Exception", 1033)] + RecurringException = 3, + + [EnumMember] + [OptionSetMetadata("Recurring Future Exception", 1033)] + RecurringFutureException = 4, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/activityparty_participationtypemask.cs b/Dataverse/Context/optionsets/activityparty_participationtypemask.cs new file mode 100644 index 0000000..5fe96b0 --- /dev/null +++ b/Dataverse/Context/optionsets/activityparty_participationtypemask.cs @@ -0,0 +1,62 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum activityparty_participationtypemask +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Sender", 1033)] + Sender = 1, + + [EnumMember] + [OptionSetMetadata("To Recipient", 1033)] + ToRecipient = 2, + + [EnumMember] + [OptionSetMetadata("CC Recipient", 1033)] + CCRecipient = 3, + + [EnumMember] + [OptionSetMetadata("BCC Recipient", 1033)] + BCCRecipient = 4, + + [EnumMember] + [OptionSetMetadata("Required attendee", 1033)] + Requiredattendee = 5, + + [EnumMember] + [OptionSetMetadata("Optional attendee", 1033)] + Optionalattendee = 6, + + [EnumMember] + [OptionSetMetadata("Organizer", 1033)] + Organizer = 7, + + [EnumMember] + [OptionSetMetadata("Regarding", 1033)] + Regarding = 8, + + [EnumMember] + [OptionSetMetadata("Owner", 1033)] + Owner = 9, + + [EnumMember] + [OptionSetMetadata("Resource", 1033)] + Resource = 10, + + [EnumMember] + [OptionSetMetadata("Customer", 1033)] + Customer = 11, + + [EnumMember] + [OptionSetMetadata("Chat Participant", 1033)] + ChatParticipant = 12, + + [EnumMember] + [OptionSetMetadata("Related", 1033)] + Related = 13, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/customapi_allowedcustomprocessingsteptype.cs b/Dataverse/Context/optionsets/customapi_allowedcustomprocessingsteptype.cs new file mode 100644 index 0000000..4e88b08 --- /dev/null +++ b/Dataverse/Context/optionsets/customapi_allowedcustomprocessingsteptype.cs @@ -0,0 +1,22 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum customapi_allowedcustomprocessingsteptype +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("None", 1033)] + None = 0, + + [EnumMember] + [OptionSetMetadata("Async Only", 1033)] + AsyncOnly = 1, + + [EnumMember] + [OptionSetMetadata("Sync and Async", 1033)] + SyncandAsync = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/customapi_bindingtype.cs b/Dataverse/Context/optionsets/customapi_bindingtype.cs new file mode 100644 index 0000000..9d50175 --- /dev/null +++ b/Dataverse/Context/optionsets/customapi_bindingtype.cs @@ -0,0 +1,22 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum customapi_bindingtype +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Global", 1033)] + Global = 0, + + [EnumMember] + [OptionSetMetadata("Entity", 1033)] + Entity = 1, + + [EnumMember] + [OptionSetMetadata("Entity Collection", 1033)] + EntityCollection = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/customapi_statecode.cs b/Dataverse/Context/optionsets/customapi_statecode.cs new file mode 100644 index 0000000..8fc8f76 --- /dev/null +++ b/Dataverse/Context/optionsets/customapi_statecode.cs @@ -0,0 +1,18 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum customapi_statecode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Active", 1033)] + Active = 0, + + [EnumMember] + [OptionSetMetadata("Inactive", 1033)] + Inactive = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/customapi_statuscode.cs b/Dataverse/Context/optionsets/customapi_statuscode.cs new file mode 100644 index 0000000..3667816 --- /dev/null +++ b/Dataverse/Context/optionsets/customapi_statuscode.cs @@ -0,0 +1,18 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum customapi_statuscode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Active", 1033)] + Active = 1, + + [EnumMember] + [OptionSetMetadata("Inactive", 1033)] + Inactive = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/customapirequestparameter_statecode.cs b/Dataverse/Context/optionsets/customapirequestparameter_statecode.cs new file mode 100644 index 0000000..b091d0b --- /dev/null +++ b/Dataverse/Context/optionsets/customapirequestparameter_statecode.cs @@ -0,0 +1,18 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum customapirequestparameter_statecode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Active", 1033)] + Active = 0, + + [EnumMember] + [OptionSetMetadata("Inactive", 1033)] + Inactive = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/customapirequestparameter_statuscode.cs b/Dataverse/Context/optionsets/customapirequestparameter_statuscode.cs new file mode 100644 index 0000000..71734c8 --- /dev/null +++ b/Dataverse/Context/optionsets/customapirequestparameter_statuscode.cs @@ -0,0 +1,18 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum customapirequestparameter_statuscode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Active", 1033)] + Active = 1, + + [EnumMember] + [OptionSetMetadata("Inactive", 1033)] + Inactive = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/customapiresponseproperty_statecode.cs b/Dataverse/Context/optionsets/customapiresponseproperty_statecode.cs new file mode 100644 index 0000000..fde6e6a --- /dev/null +++ b/Dataverse/Context/optionsets/customapiresponseproperty_statecode.cs @@ -0,0 +1,18 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum customapiresponseproperty_statecode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Active", 1033)] + Active = 0, + + [EnumMember] + [OptionSetMetadata("Inactive", 1033)] + Inactive = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/customapiresponseproperty_statuscode.cs b/Dataverse/Context/optionsets/customapiresponseproperty_statuscode.cs new file mode 100644 index 0000000..0b2a78d --- /dev/null +++ b/Dataverse/Context/optionsets/customapiresponseproperty_statuscode.cs @@ -0,0 +1,18 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum customapiresponseproperty_statuscode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Active", 1033)] + Active = 1, + + [EnumMember] + [OptionSetMetadata("Inactive", 1033)] + Inactive = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/pluginassembly_authtype.cs b/Dataverse/Context/optionsets/pluginassembly_authtype.cs new file mode 100644 index 0000000..e3c8660 --- /dev/null +++ b/Dataverse/Context/optionsets/pluginassembly_authtype.cs @@ -0,0 +1,14 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum pluginassembly_authtype +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("BasicAuth", 1033)] + BasicAuth = 0, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/pluginassembly_isolationmode.cs b/Dataverse/Context/optionsets/pluginassembly_isolationmode.cs new file mode 100644 index 0000000..326419e --- /dev/null +++ b/Dataverse/Context/optionsets/pluginassembly_isolationmode.cs @@ -0,0 +1,22 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum pluginassembly_isolationmode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("None", 1033)] + None = 1, + + [EnumMember] + [OptionSetMetadata("Sandbox", 1033)] + Sandbox = 2, + + [EnumMember] + [OptionSetMetadata("External", 1033)] + External = 3, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/pluginassembly_sourcetype.cs b/Dataverse/Context/optionsets/pluginassembly_sourcetype.cs new file mode 100644 index 0000000..2152611 --- /dev/null +++ b/Dataverse/Context/optionsets/pluginassembly_sourcetype.cs @@ -0,0 +1,30 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum pluginassembly_sourcetype +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Database", 1033)] + Database = 0, + + [EnumMember] + [OptionSetMetadata("Disk", 1033)] + Disk = 1, + + [EnumMember] + [OptionSetMetadata("Normal", 1033)] + Normal = 2, + + [EnumMember] + [OptionSetMetadata("AzureWebApp", 1033)] + AzureWebApp = 3, + + [EnumMember] + [OptionSetMetadata("File Store", 1033)] + FileStore = 4, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/publisher_address1_addresstypecode.cs b/Dataverse/Context/optionsets/publisher_address1_addresstypecode.cs new file mode 100644 index 0000000..ee11238 --- /dev/null +++ b/Dataverse/Context/optionsets/publisher_address1_addresstypecode.cs @@ -0,0 +1,14 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum publisher_address1_addresstypecode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Default Value", 1033)] + DefaultValue = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/publisher_address1_shippingmethodcode.cs b/Dataverse/Context/optionsets/publisher_address1_shippingmethodcode.cs new file mode 100644 index 0000000..2cd129f --- /dev/null +++ b/Dataverse/Context/optionsets/publisher_address1_shippingmethodcode.cs @@ -0,0 +1,14 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum publisher_address1_shippingmethodcode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Default Value", 1033)] + DefaultValue = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/publisher_address2_addresstypecode.cs b/Dataverse/Context/optionsets/publisher_address2_addresstypecode.cs new file mode 100644 index 0000000..a9f97ad --- /dev/null +++ b/Dataverse/Context/optionsets/publisher_address2_addresstypecode.cs @@ -0,0 +1,14 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum publisher_address2_addresstypecode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Default Value", 1033)] + DefaultValue = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/publisher_address2_shippingmethodcode.cs b/Dataverse/Context/optionsets/publisher_address2_shippingmethodcode.cs new file mode 100644 index 0000000..1c56c9f --- /dev/null +++ b/Dataverse/Context/optionsets/publisher_address2_shippingmethodcode.cs @@ -0,0 +1,14 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum publisher_address2_shippingmethodcode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Default Value", 1033)] + DefaultValue = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/sdkmessagefilter_primaryobjecttypecode.cs b/Dataverse/Context/optionsets/sdkmessagefilter_primaryobjecttypecode.cs new file mode 100644 index 0000000..1c427a3 --- /dev/null +++ b/Dataverse/Context/optionsets/sdkmessagefilter_primaryobjecttypecode.cs @@ -0,0 +1,11 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum sdkmessagefilter_primaryobjecttypecode +#pragma warning restore CS8981 +{ +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/sdkmessagefilter_secondaryobjecttypecode.cs b/Dataverse/Context/optionsets/sdkmessagefilter_secondaryobjecttypecode.cs new file mode 100644 index 0000000..5d0ea9c --- /dev/null +++ b/Dataverse/Context/optionsets/sdkmessagefilter_secondaryobjecttypecode.cs @@ -0,0 +1,11 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum sdkmessagefilter_secondaryobjecttypecode +#pragma warning restore CS8981 +{ +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstep_invocationsource.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstep_invocationsource.cs new file mode 100644 index 0000000..6d6d531 --- /dev/null +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstep_invocationsource.cs @@ -0,0 +1,22 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum sdkmessageprocessingstep_invocationsource +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Internal", 1033)] + @Internal = -1, + + [EnumMember] + [OptionSetMetadata("Parent", 1033)] + Parent = 0, + + [EnumMember] + [OptionSetMetadata("Child", 1033)] + Child = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstep_mode.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstep_mode.cs new file mode 100644 index 0000000..ea820f7 --- /dev/null +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstep_mode.cs @@ -0,0 +1,18 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum sdkmessageprocessingstep_mode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Synchronous", 1033)] + Synchronous = 0, + + [EnumMember] + [OptionSetMetadata("Asynchronous", 1033)] + Asynchronous = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstep_stage.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstep_stage.cs new file mode 100644 index 0000000..605f429 --- /dev/null +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstep_stage.cs @@ -0,0 +1,62 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum sdkmessageprocessingstep_stage +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Initial Pre-operation (For internal use only)", 1033)] + InitialPreoperationForinternaluseonly = 5, + + [EnumMember] + [OptionSetMetadata("Pre-validation", 1033)] + Prevalidation = 10, + + [EnumMember] + [OptionSetMetadata("Internal Pre-operation Before External Plugins (For internal use only)", 1033)] + InternalPreoperationBeforeExternalPluginsForinternaluseonly = 15, + + [EnumMember] + [OptionSetMetadata("Pre-operation", 1033)] + Preoperation = 20, + + [EnumMember] + [OptionSetMetadata("Internal Pre-operation After External Plugins (For internal use only)", 1033)] + InternalPreoperationAfterExternalPluginsForinternaluseonly = 25, + + [EnumMember] + [OptionSetMetadata("Main Operation (For internal use only)", 1033)] + MainOperationForinternaluseonly = 30, + + [EnumMember] + [OptionSetMetadata("Internal Post-operation Before External Plugins (For internal use only)", 1033)] + InternalPostoperationBeforeExternalPluginsForinternaluseonly = 35, + + [EnumMember] + [OptionSetMetadata("Post-operation", 1033)] + Postoperation = 40, + + [EnumMember] + [OptionSetMetadata("Internal Post-operation After External Plugins (For internal use only)", 1033)] + InternalPostoperationAfterExternalPluginsForinternaluseonly = 45, + + [EnumMember] + [OptionSetMetadata("Post-operation (Deprecated)", 1033)] + PostoperationDeprecated = 50, + + [EnumMember] + [OptionSetMetadata("Final Post-operation (For internal use only)", 1033)] + FinalPostoperationForinternaluseonly = 55, + + [EnumMember] + [OptionSetMetadata("Pre-Commit stage fired before transaction commit (For internal use only)", 1033)] + PreCommitstagefiredbeforetransactioncommitForinternaluseonly = 80, + + [EnumMember] + [OptionSetMetadata("Post-Commit stage fired after transaction commit (For internal use only)", 1033)] + PostCommitstagefiredaftertransactioncommitForinternaluseonly = 90, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstep_statecode.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstep_statecode.cs new file mode 100644 index 0000000..a16fc94 --- /dev/null +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstep_statecode.cs @@ -0,0 +1,18 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum sdkmessageprocessingstep_statecode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Enabled", 1033)] + Enabled = 0, + + [EnumMember] + [OptionSetMetadata("Disabled", 1033)] + Disabled = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstep_statuscode.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstep_statuscode.cs new file mode 100644 index 0000000..e15d5ac --- /dev/null +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstep_statuscode.cs @@ -0,0 +1,18 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum sdkmessageprocessingstep_statuscode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Enabled", 1033)] + Enabled = 1, + + [EnumMember] + [OptionSetMetadata("Disabled", 1033)] + Disabled = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstep_supporteddeployment.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstep_supporteddeployment.cs new file mode 100644 index 0000000..57a1d8c --- /dev/null +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstep_supporteddeployment.cs @@ -0,0 +1,22 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum sdkmessageprocessingstep_supporteddeployment +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Server Only", 1033)] + ServerOnly = 0, + + [EnumMember] + [OptionSetMetadata("Microsoft Dynamics 365 Client for Outlook Only", 1033)] + MicrosoftDynamics365ClientforOutlookOnly = 1, + + [EnumMember] + [OptionSetMetadata("Both", 1033)] + Both = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstepimage_imagetype.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstepimage_imagetype.cs new file mode 100644 index 0000000..5f882a2 --- /dev/null +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstepimage_imagetype.cs @@ -0,0 +1,22 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum sdkmessageprocessingstepimage_imagetype +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("PreImage", 1033)] + PreImage = 0, + + [EnumMember] + [OptionSetMetadata("PostImage", 1033)] + PostImage = 1, + + [EnumMember] + [OptionSetMetadata("Both", 1033)] + Both = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/solution_solutiontype.cs b/Dataverse/Context/optionsets/solution_solutiontype.cs new file mode 100644 index 0000000..b0843fe --- /dev/null +++ b/Dataverse/Context/optionsets/solution_solutiontype.cs @@ -0,0 +1,22 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum solution_solutiontype +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("None", 1033)] + None = 0, + + [EnumMember] + [OptionSetMetadata("Snapshot", 1033)] + Snapshot = 1, + + [EnumMember] + [OptionSetMetadata("Internal", 1033)] + @Internal = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/solution_sourcecontrolsyncstatus.cs b/Dataverse/Context/optionsets/solution_sourcecontrolsyncstatus.cs new file mode 100644 index 0000000..dc9812b --- /dev/null +++ b/Dataverse/Context/optionsets/solution_sourcecontrolsyncstatus.cs @@ -0,0 +1,30 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum solution_sourcecontrolsyncstatus +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Not started", 1033)] + Notstarted = 0, + + [EnumMember] + [OptionSetMetadata("Initial sync in progress", 1033)] + Initialsyncinprogress = 1, + + [EnumMember] + [OptionSetMetadata("Errors in initial sync", 1033)] + Errorsininitialsync = 2, + + [EnumMember] + [OptionSetMetadata("Pending changes to be committed", 1033)] + Pendingchangestobecommitted = 3, + + [EnumMember] + [OptionSetMetadata("Committed", 1033)] + Committed = 4, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/solutioncomponent_rootcomponentbehavior.cs b/Dataverse/Context/optionsets/solutioncomponent_rootcomponentbehavior.cs new file mode 100644 index 0000000..92869bf --- /dev/null +++ b/Dataverse/Context/optionsets/solutioncomponent_rootcomponentbehavior.cs @@ -0,0 +1,22 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum solutioncomponent_rootcomponentbehavior +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Include Subcomponents", 1033)] + IncludeSubcomponents = 0, + + [EnumMember] + [OptionSetMetadata("Do not include subcomponents", 1033)] + Donotincludesubcomponents = 1, + + [EnumMember] + [OptionSetMetadata("Include As Shell Only", 1033)] + IncludeAsShellOnly = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_accessmode.cs b/Dataverse/Context/optionsets/systemuser_accessmode.cs new file mode 100644 index 0000000..f80a591 --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_accessmode.cs @@ -0,0 +1,34 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_accessmode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Read-Write", 1033)] + ReadWrite = 0, + + [EnumMember] + [OptionSetMetadata("Administrative", 1033)] + Administrative = 1, + + [EnumMember] + [OptionSetMetadata("Read", 1033)] + Read = 2, + + [EnumMember] + [OptionSetMetadata("Support User", 1033)] + SupportUser = 3, + + [EnumMember] + [OptionSetMetadata("Non-interactive", 1033)] + Noninteractive = 4, + + [EnumMember] + [OptionSetMetadata("Delegated Admin", 1033)] + DelegatedAdmin = 5, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_address1_addresstypecode.cs b/Dataverse/Context/optionsets/systemuser_address1_addresstypecode.cs new file mode 100644 index 0000000..9b6a930 --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_address1_addresstypecode.cs @@ -0,0 +1,14 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_address1_addresstypecode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Default Value", 1033)] + DefaultValue = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_address1_shippingmethodcode.cs b/Dataverse/Context/optionsets/systemuser_address1_shippingmethodcode.cs new file mode 100644 index 0000000..9b47064 --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_address1_shippingmethodcode.cs @@ -0,0 +1,14 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_address1_shippingmethodcode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Default Value", 1033)] + DefaultValue = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_address2_addresstypecode.cs b/Dataverse/Context/optionsets/systemuser_address2_addresstypecode.cs new file mode 100644 index 0000000..17ea9ef --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_address2_addresstypecode.cs @@ -0,0 +1,14 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_address2_addresstypecode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Default Value", 1033)] + DefaultValue = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_address2_shippingmethodcode.cs b/Dataverse/Context/optionsets/systemuser_address2_shippingmethodcode.cs new file mode 100644 index 0000000..b447d7d --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_address2_shippingmethodcode.cs @@ -0,0 +1,14 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_address2_shippingmethodcode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Default Value", 1033)] + DefaultValue = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_azurestate.cs b/Dataverse/Context/optionsets/systemuser_azurestate.cs new file mode 100644 index 0000000..5a59898 --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_azurestate.cs @@ -0,0 +1,22 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_azurestate +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Exists", 1033)] + Exists = 0, + + [EnumMember] + [OptionSetMetadata("Soft deleted", 1033)] + Softdeleted = 1, + + [EnumMember] + [OptionSetMetadata("Not found or hard deleted", 1033)] + Notfoundorharddeleted = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_caltype.cs b/Dataverse/Context/optionsets/systemuser_caltype.cs new file mode 100644 index 0000000..5f54fad --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_caltype.cs @@ -0,0 +1,62 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_caltype +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Professional", 1033)] + Professional = 0, + + [EnumMember] + [OptionSetMetadata("Administrative", 1033)] + Administrative = 1, + + [EnumMember] + [OptionSetMetadata("Basic", 1033)] + Basic = 2, + + [EnumMember] + [OptionSetMetadata("Device Professional", 1033)] + DeviceProfessional = 3, + + [EnumMember] + [OptionSetMetadata("Device Basic", 1033)] + DeviceBasic = 4, + + [EnumMember] + [OptionSetMetadata("Essential", 1033)] + Essential = 5, + + [EnumMember] + [OptionSetMetadata("Device Essential", 1033)] + DeviceEssential = 6, + + [EnumMember] + [OptionSetMetadata("Enterprise", 1033)] + Enterprise = 7, + + [EnumMember] + [OptionSetMetadata("Device Enterprise", 1033)] + DeviceEnterprise = 8, + + [EnumMember] + [OptionSetMetadata("Sales", 1033)] + Sales = 9, + + [EnumMember] + [OptionSetMetadata("Service", 1033)] + Service = 10, + + [EnumMember] + [OptionSetMetadata("Field Service", 1033)] + FieldService = 11, + + [EnumMember] + [OptionSetMetadata("Project Service", 1033)] + ProjectService = 12, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_deletestate.cs b/Dataverse/Context/optionsets/systemuser_deletestate.cs new file mode 100644 index 0000000..a1896a0 --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_deletestate.cs @@ -0,0 +1,18 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_deletestate +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Not deleted", 1033)] + Notdeleted = 0, + + [EnumMember] + [OptionSetMetadata("Soft deleted", 1033)] + Softdeleted = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_emailrouteraccessapproval.cs b/Dataverse/Context/optionsets/systemuser_emailrouteraccessapproval.cs new file mode 100644 index 0000000..f394836 --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_emailrouteraccessapproval.cs @@ -0,0 +1,26 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_emailrouteraccessapproval +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Empty", 1033)] + Empty = 0, + + [EnumMember] + [OptionSetMetadata("Approved", 1033)] + Approved = 1, + + [EnumMember] + [OptionSetMetadata("Pending Approval", 1033)] + PendingApproval = 2, + + [EnumMember] + [OptionSetMetadata("Rejected", 1033)] + Rejected = 3, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_incomingemaildeliverymethod.cs b/Dataverse/Context/optionsets/systemuser_incomingemaildeliverymethod.cs new file mode 100644 index 0000000..1346ec7 --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_incomingemaildeliverymethod.cs @@ -0,0 +1,26 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_incomingemaildeliverymethod +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("None", 1033)] + None = 0, + + [EnumMember] + [OptionSetMetadata("Microsoft Dynamics 365 for Outlook", 1033)] + MicrosoftDynamics365forOutlook = 1, + + [EnumMember] + [OptionSetMetadata("Server-Side Synchronization or Email Router", 1033)] + ServerSideSynchronizationorEmailRouter = 2, + + [EnumMember] + [OptionSetMetadata("Forward Mailbox", 1033)] + ForwardMailbox = 3, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_invitestatuscode.cs b/Dataverse/Context/optionsets/systemuser_invitestatuscode.cs new file mode 100644 index 0000000..2788cf1 --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_invitestatuscode.cs @@ -0,0 +1,38 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_invitestatuscode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Invitation Not Sent", 1033)] + InvitationNotSent = 0, + + [EnumMember] + [OptionSetMetadata("Invited", 1033)] + Invited = 1, + + [EnumMember] + [OptionSetMetadata("Invitation Near Expired", 1033)] + InvitationNearExpired = 2, + + [EnumMember] + [OptionSetMetadata("Invitation Expired", 1033)] + InvitationExpired = 3, + + [EnumMember] + [OptionSetMetadata("Invitation Accepted", 1033)] + InvitationAccepted = 4, + + [EnumMember] + [OptionSetMetadata("Invitation Rejected", 1033)] + InvitationRejected = 5, + + [EnumMember] + [OptionSetMetadata("Invitation Revoked", 1033)] + InvitationRevoked = 6, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_outgoingemaildeliverymethod.cs b/Dataverse/Context/optionsets/systemuser_outgoingemaildeliverymethod.cs new file mode 100644 index 0000000..a2cdb59 --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_outgoingemaildeliverymethod.cs @@ -0,0 +1,22 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_outgoingemaildeliverymethod +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("None", 1033)] + None = 0, + + [EnumMember] + [OptionSetMetadata("Microsoft Dynamics 365 for Outlook", 1033)] + MicrosoftDynamics365forOutlook = 1, + + [EnumMember] + [OptionSetMetadata("Server-Side Synchronization or Email Router", 1033)] + ServerSideSynchronizationorEmailRouter = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_preferredaddresscode.cs b/Dataverse/Context/optionsets/systemuser_preferredaddresscode.cs new file mode 100644 index 0000000..cad1679 --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_preferredaddresscode.cs @@ -0,0 +1,18 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_preferredaddresscode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Mailing Address", 1033)] + MailingAddress = 1, + + [EnumMember] + [OptionSetMetadata("Other Address", 1033)] + OtherAddress = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_preferredemailcode.cs b/Dataverse/Context/optionsets/systemuser_preferredemailcode.cs new file mode 100644 index 0000000..b746a3c --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_preferredemailcode.cs @@ -0,0 +1,14 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_preferredemailcode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Default Value", 1033)] + DefaultValue = 1, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_preferredphonecode.cs b/Dataverse/Context/optionsets/systemuser_preferredphonecode.cs new file mode 100644 index 0000000..eff3e7d --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_preferredphonecode.cs @@ -0,0 +1,26 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_preferredphonecode +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Main Phone", 1033)] + MainPhone = 1, + + [EnumMember] + [OptionSetMetadata("Other Phone", 1033)] + OtherPhone = 2, + + [EnumMember] + [OptionSetMetadata("Home Phone", 1033)] + HomePhone = 3, + + [EnumMember] + [OptionSetMetadata("Mobile Phone", 1033)] + MobilePhone = 4, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/systemuser_systemmanagedusertype.cs b/Dataverse/Context/optionsets/systemuser_systemmanagedusertype.cs new file mode 100644 index 0000000..3d01a3d --- /dev/null +++ b/Dataverse/Context/optionsets/systemuser_systemmanagedusertype.cs @@ -0,0 +1,22 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum systemuser_systemmanagedusertype +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Entra User", 1033)] + EntraUser = 0, + + [EnumMember] + [OptionSetMetadata("C2 User", 1033)] + C2User = 1, + + [EnumMember] + [OptionSetMetadata("Impersonable Stub User", 1033)] + ImpersonableStubUser = 2, +} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/webresource_webresourcetype.cs b/Dataverse/Context/optionsets/webresource_webresourcetype.cs new file mode 100644 index 0000000..6c8900d --- /dev/null +++ b/Dataverse/Context/optionsets/webresource_webresourcetype.cs @@ -0,0 +1,58 @@ +using System.Runtime.Serialization; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[DataContract] +#pragma warning disable CS8981 +public enum webresource_webresourcetype +#pragma warning restore CS8981 +{ + [EnumMember] + [OptionSetMetadata("Webpage (HTML)", 1033)] + WebpageHTML = 1, + + [EnumMember] + [OptionSetMetadata("Style Sheet (CSS)", 1033)] + StyleSheetCSS = 2, + + [EnumMember] + [OptionSetMetadata("Script (JScript)", 1033)] + ScriptJScript = 3, + + [EnumMember] + [OptionSetMetadata("Data (XML)", 1033)] + DataXML = 4, + + [EnumMember] + [OptionSetMetadata("PNG format", 1033)] + PNGformat = 5, + + [EnumMember] + [OptionSetMetadata("JPG format", 1033)] + JPGformat = 6, + + [EnumMember] + [OptionSetMetadata("GIF format", 1033)] + GIFformat = 7, + + [EnumMember] + [OptionSetMetadata("Silverlight (XAP)", 1033)] + SilverlightXAP = 8, + + [EnumMember] + [OptionSetMetadata("Style Sheet (XSL)", 1033)] + StyleSheetXSL = 9, + + [EnumMember] + [OptionSetMetadata("ICO format", 1033)] + ICOformat = 10, + + [EnumMember] + [OptionSetMetadata("Vector format (SVG)", 1033)] + VectorformatSVG = 11, + + [EnumMember] + [OptionSetMetadata("String (RESX)", 1033)] + StringRESX = 12, +} \ No newline at end of file diff --git a/Dataverse/Context/queries/DataverseContext.cs b/Dataverse/Context/queries/DataverseContext.cs new file mode 100644 index 0000000..74b25e8 --- /dev/null +++ b/Dataverse/Context/queries/DataverseContext.cs @@ -0,0 +1,98 @@ +using Microsoft.Xrm.Sdk; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +public class DataverseContext : OrganizationServiceContext +{ + public DataverseContext(IOrganizationService service) + : base(service) + { + } + + public IQueryable ActivityPartySet + { + get { return CreateQuery(); } + } + + public IQueryable CustomAPISet + { + get { return CreateQuery(); } + } + + public IQueryable CustomAPIRequestParameterSet + { + get { return CreateQuery(); } + } + + public IQueryable CustomAPIResponsePropertySet + { + get { return CreateQuery(); } + } + + public IQueryable DependencySet + { + get { return CreateQuery(); } + } + + public IQueryable DependencyNodeSet + { + get { return CreateQuery(); } + } + + public IQueryable PluginAssemblySet + { + get { return CreateQuery(); } + } + + public IQueryable PluginTypeSet + { + get { return CreateQuery(); } + } + + public IQueryable PublisherSet + { + get { return CreateQuery(); } + } + + public IQueryable SdkMessageSet + { + get { return CreateQuery(); } + } + + public IQueryable SdkMessageFilterSet + { + get { return CreateQuery(); } + } + + public IQueryable SdkMessageProcessingStepSet + { + get { return CreateQuery(); } + } + + public IQueryable SdkMessageProcessingStepImageSet + { + get { return CreateQuery(); } + } + + public IQueryable SolutionSet + { + get { return CreateQuery(); } + } + + public IQueryable SolutionComponentSet + { + get { return CreateQuery(); } + } + + public IQueryable SystemUserSet + { + get { return CreateQuery(); } + } + + public IQueryable WebResourceSet + { + get { return CreateQuery(); } + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/ActivityParty.cs b/Dataverse/Context/tables/ActivityParty.cs new file mode 100644 index 0000000..92f58e3 --- /dev/null +++ b/Dataverse/Context/tables/ActivityParty.cs @@ -0,0 +1,351 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// Person or group associated with an activity. An activity can have multiple activity parties. +/// Display Name: Activity Party +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("activityparty")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class ActivityParty : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "activityparty"; + public const int EntityTypeCode = 135; + + public ActivityParty() : base(EntityLogicalName) { } + public ActivityParty(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("partyidname"); + + [AttributeLogicalName("activitypartyid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("activitypartyid", value); + } + } + + /// + /// Unique identifier of the activity associated with the activity party. (A "party" is any person who is associated with an activity.) + /// Display Name: Activity + /// + [AttributeLogicalName("activityid")] + [DisplayName("Activity")] + public EntityReference? ActivityId + { + get => GetAttributeValue("activityid"); + set => SetAttributeValue("activityid", value); + } + + /// + /// Display Name: Activity Party + /// + [AttributeLogicalName("activitypartyid")] + [DisplayName("Activity Party")] + public Guid ActivityPartyId + { + get => GetAttributeValue("activitypartyid"); + set => SetId("activitypartyid", value); + } + + /// + /// Email address to which an email is delivered, and which is associated with the target entity. + /// Display Name: Address + /// + [AttributeLogicalName("addressused")] + [DisplayName("Address ")] + [MaxLength(320)] + public string AddressUsed + { + get => GetAttributeValue("addressused"); + set => SetAttributeValue("addressused", value); + } + + /// + /// Email address column number from associated party. + /// Display Name: Email column number of party + /// + [AttributeLogicalName("addressusedemailcolumnnumber")] + [DisplayName("Email column number of party")] + [Range(1, 2147483647)] + public int? AddressUsedEmailColumnNumber + { + get => GetAttributeValue("addressusedemailcolumnnumber"); + set => SetAttributeValue("addressusedemailcolumnnumber", value); + } + + /// + /// Information about whether to allow sending email to the activity party. + /// Display Name: Do not allow Emails + /// + [AttributeLogicalName("donotemail")] + [DisplayName("Do not allow Emails")] + public bool? DoNotEmail + { + get => GetAttributeValue("donotemail"); + set => SetAttributeValue("donotemail", value); + } + + /// + /// Information about whether to allow sending faxes to the activity party. + /// Display Name: Do not allow Faxes + /// + [AttributeLogicalName("donotfax")] + [DisplayName("Do not allow Faxes")] + public bool? DoNotFax + { + get => GetAttributeValue("donotfax"); + set => SetAttributeValue("donotfax", value); + } + + /// + /// Information about whether to allow phone calls to the lead. + /// Display Name: Do not allow Phone Calls + /// + [AttributeLogicalName("donotphone")] + [DisplayName("Do not allow Phone Calls")] + public bool? DoNotPhone + { + get => GetAttributeValue("donotphone"); + set => SetAttributeValue("donotphone", value); + } + + /// + /// Information about whether to allow sending postal mail to the lead. + /// Display Name: Do not allow Postal Mails + /// + [AttributeLogicalName("donotpostalmail")] + [DisplayName("Do not allow Postal Mails")] + public bool? DoNotPostalMail + { + get => GetAttributeValue("donotpostalmail"); + set => SetAttributeValue("donotpostalmail", value); + } + + /// + /// Amount of effort used by the resource in a service appointment activity. + /// Display Name: Effort + /// + [AttributeLogicalName("effort")] + [DisplayName("Effort")] + public double? Effort + { + get => GetAttributeValue("effort"); + set => SetAttributeValue("effort", value); + } + + /// + /// For internal use only. + /// Display Name: Exchange Entry + /// + [AttributeLogicalName("exchangeentryid")] + [DisplayName("Exchange Entry")] + [MaxLength(1024)] + public string ExchangeEntryId + { + get => GetAttributeValue("exchangeentryid"); + set => SetAttributeValue("exchangeentryid", value); + } + + /// + /// The external id used when the party does not have an email address. + /// Display Name: External Id + /// + [AttributeLogicalName("externalid")] + [DisplayName("External Id")] + [MaxLength(200)] + public string ExternalId + { + get => GetAttributeValue("externalid"); + set => SetAttributeValue("externalid", value); + } + + /// + /// The external id type used when the party does not have an email address. + /// Display Name: External Id Type + /// + [AttributeLogicalName("externalidtype")] + [DisplayName("External Id Type")] + [MaxLength(200)] + public string ExternalIdType + { + get => GetAttributeValue("externalidtype"); + set => SetAttributeValue("externalidtype", value); + } + + /// + /// Type of instance of a recurring series. + /// Display Name: Appointment Type + /// + [AttributeLogicalName("instancetypecode")] + [DisplayName("Appointment Type")] + public activityparty_instancetypecode? InstanceTypeCode + { + get => this.GetOptionSetValue("instancetypecode"); + set => this.SetOptionSetValue("instancetypecode", value); + } + + /// + /// Information about whether the underlying entity record is deleted. + /// Display Name: Is Party Deleted + /// + [AttributeLogicalName("ispartydeleted")] + [DisplayName("Is Party Deleted")] + public bool? IsPartyDeleted + { + get => GetAttributeValue("ispartydeleted"); + set => SetAttributeValue("ispartydeleted", value); + } + + /// + /// Unique identifier of the user or team who owns the activity_party. + /// Display Name: Owner + /// + [AttributeLogicalName("ownerid")] + [DisplayName("Owner")] + public EntityReference? OwnerId + { + get => GetAttributeValue("ownerid"); + set => SetAttributeValue("ownerid", value); + } + + /// + /// Display Name: owningbusinessunit + /// + [AttributeLogicalName("owningbusinessunit")] + [DisplayName("owningbusinessunit")] + public Guid? OwningBusinessUnit + { + get => GetAttributeValue("owningbusinessunit"); + set => SetAttributeValue("owningbusinessunit", value); + } + + /// + /// Display Name: owninguser + /// + [AttributeLogicalName("owninguser")] + [DisplayName("owninguser")] + public Guid? OwningUser + { + get => GetAttributeValue("owninguser"); + set => SetAttributeValue("owninguser", value); + } + + /// + /// Role of the person in the activity, such as sender, to, cc, bcc, required, optional, organizer, regarding, or owner. + /// Display Name: Participation Type + /// + [AttributeLogicalName("participationtypemask")] + [DisplayName("Participation Type")] + public activityparty_participationtypemask? ParticipationTypeMask + { + get => this.GetOptionSetValue("participationtypemask"); + set => this.SetOptionSetValue("participationtypemask", value); + } + + /// + /// Unique identifier of the party associated with the activity. + /// Display Name: Party + /// + [AttributeLogicalName("partyid")] + [DisplayName("Party")] + public EntityReference? PartyId + { + get => GetAttributeValue("partyid"); + set => SetAttributeValue("partyid", value); + } + + /// + /// Scheduled end time of the activity. + /// Display Name: Scheduled End + /// + [AttributeLogicalName("scheduledend")] + [DisplayName("Scheduled End")] + public DateTime? ScheduledEnd + { + get => GetAttributeValue("scheduledend"); + set => SetAttributeValue("scheduledend", value); + } + + /// + /// Scheduled start time of the activity. + /// Display Name: Scheduled Start + /// + [AttributeLogicalName("scheduledstart")] + [DisplayName("Scheduled Start")] + public DateTime? ScheduledStart + { + get => GetAttributeValue("scheduledstart"); + set => SetAttributeValue("scheduledstart", value); + } + + /// + /// The name of the party to be used when the party is not resolved to an entity. + /// Display Name: Unresolved Party Name + /// + [AttributeLogicalName("unresolvedpartyname")] + [DisplayName("Unresolved Party Name")] + [MaxLength(200)] + public string UnresolvedPartyName + { + get => GetAttributeValue("unresolvedpartyname"); + set => SetAttributeValue("unresolvedpartyname", value); + } + + /// + /// Display Name: versionnumber + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("versionnumber")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + [AttributeLogicalName("partyid")] + [RelationshipSchemaName("system_user_activity_parties")] + [RelationshipMetadata("ManyToOne", "partyid", "systemuser", "systemuserid", "Referencing")] + public SystemUser system_user_activity_parties + { + get => GetRelatedEntity("system_user_activity_parties", null); + set => SetRelatedEntity("system_user_activity_parties", null, value); + } + + /// + /// Gets the logical column name for a property on the ActivityParty entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the ActivityParty with the specified columns. + /// + /// Organization service + /// Id of ActivityParty to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved ActivityParty + public static ActivityParty Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/CustomAPI.cs b/Dataverse/Context/tables/CustomAPI.cs new file mode 100644 index 0000000..a5407c3 --- /dev/null +++ b/Dataverse/Context/tables/CustomAPI.cs @@ -0,0 +1,629 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// Entity that defines a custom API +/// Display Name: Custom API +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("customapi")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class CustomAPI : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "customapi"; + public const int EntityTypeCode = 10027; + + public CustomAPI() : base(EntityLogicalName) { } + public CustomAPI(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("name"); + + [AttributeLogicalName("customapiid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("customapiid", value); + } + } + + /// + /// The type of custom processing step allowed + /// Display Name: Allowed Custom Processing Step Type + /// + [AttributeLogicalName("allowedcustomprocessingsteptype")] + [DisplayName("Allowed Custom Processing Step Type")] + public customapi_allowedcustomprocessingsteptype? AllowedCustomProcessingStepType + { + get => this.GetOptionSetValue("allowedcustomprocessingsteptype"); + set => this.SetOptionSetValue("allowedcustomprocessingsteptype", value); + } + + /// + /// The binding type of the custom API + /// Display Name: Binding Type + /// + [AttributeLogicalName("bindingtype")] + [DisplayName("Binding Type")] + public customapi_bindingtype? BindingType + { + get => this.GetOptionSetValue("bindingtype"); + set => this.SetOptionSetValue("bindingtype", value); + } + + /// + /// The logical name of the entity bound to the custom API + /// Display Name: Bound Entity Logical Name + /// + [AttributeLogicalName("boundentitylogicalname")] + [DisplayName("Bound Entity Logical Name")] + [MaxLength(100)] + public string BoundEntityLogicalName + { + get => GetAttributeValue("boundentitylogicalname"); + set => SetAttributeValue("boundentitylogicalname", value); + } + + /// + /// For internal use only. + /// Display Name: Row id unique + /// + [AttributeLogicalName("componentidunique")] + [DisplayName("Row id unique")] + public Guid? ComponentIdUnique + { + get => GetAttributeValue("componentidunique"); + set => SetAttributeValue("componentidunique", value); + } + + /// + /// For internal use only. + /// Display Name: Component State + /// + [AttributeLogicalName("componentstate")] + [DisplayName("Component State")] + public componentstate? ComponentState + { + get => this.GetOptionSetValue("componentstate"); + set => this.SetOptionSetValue("componentstate", value); + } + + /// + /// Unique identifier of the user who created the record. + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the record was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the record. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// Display Name: Custom API + /// + [AttributeLogicalName("customapiid")] + [DisplayName("Custom API")] + public Guid CustomAPIId + { + get => GetAttributeValue("customapiid"); + set => SetId("customapiid", value); + } + + /// + /// Localized description for custom API instances + /// Display Name: Description + /// + [AttributeLogicalName("description")] + [DisplayName("Description")] + [MaxLength(300)] + public string Description + { + get => GetAttributeValue("description"); + set => SetAttributeValue("description", value); + } + + /// + /// Localized display name for custom API instances + /// Display Name: Display Name + /// + [AttributeLogicalName("displayname")] + [DisplayName("Display Name")] + [MaxLength(100)] + public string DisplayName + { + get => GetAttributeValue("displayname"); + set => SetAttributeValue("displayname", value); + } + + /// + /// Name of the privilege that allows execution of the custom API + /// Display Name: Execute Privilege Name + /// + [AttributeLogicalName("executeprivilegename")] + [DisplayName("Execute Privilege Name")] + [MaxLength(100)] + public string ExecutePrivilegeName + { + get => GetAttributeValue("executeprivilegename"); + set => SetAttributeValue("executeprivilegename", value); + } + + /// + /// Unique identifier for fxexpression associated with Custom API. + /// Display Name: FxExpression + /// + [AttributeLogicalName("fxexpressionid")] + [DisplayName("FxExpression")] + public EntityReference? FxExpressionId + { + get => GetAttributeValue("fxexpressionid"); + set => SetAttributeValue("fxexpressionid", value); + } + + /// + /// Sequence number of the import that created this record. + /// Display Name: Import Sequence Number + /// + [AttributeLogicalName("importsequencenumber")] + [DisplayName("Import Sequence Number")] + [Range(-2147483648, 2147483647)] + public int? ImportSequenceNumber + { + get => GetAttributeValue("importsequencenumber"); + set => SetAttributeValue("importsequencenumber", value); + } + + /// + /// For internal use only. + /// Display Name: Is Customizable + /// + [AttributeLogicalName("iscustomizable")] + [DisplayName("Is Customizable")] + public BooleanManagedProperty IsCustomizable + { + get => GetAttributeValue("iscustomizable"); + set => SetAttributeValue("iscustomizable", value); + } + + /// + /// Indicates if the custom API is a function (GET is supported) or not (POST is supported) + /// Display Name: Is Function + /// + [AttributeLogicalName("isfunction")] + [DisplayName("Is Function")] + public bool? IsFunction + { + get => GetAttributeValue("isfunction"); + set => SetAttributeValue("isfunction", value); + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// Display Name: Is Managed + /// + [AttributeLogicalName("ismanaged")] + [DisplayName("Is Managed")] + public bool? IsManaged + { + get => GetAttributeValue("ismanaged"); + set => SetAttributeValue("ismanaged", value); + } + + /// + /// Indicates if the custom API is private (hidden from metadata and documentation) + /// Display Name: Is Private + /// + [AttributeLogicalName("isprivate")] + [DisplayName("Is Private")] + public bool? IsPrivate + { + get => GetAttributeValue("isprivate"); + set => SetAttributeValue("isprivate", value); + } + + /// + /// Unique identifier of the user who modified the record. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the record was modified. + /// Display Name: Modified On + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified On")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who modified the record. + /// Display Name: Modified By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Modified By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// The primary name of the custom API + /// Display Name: Name + /// + [AttributeLogicalName("name")] + [DisplayName("Name")] + [MaxLength(100)] + public string Name + { + get => GetAttributeValue("name"); + set => SetAttributeValue("name", value); + } + + /// + /// Date and time that the record was migrated. + /// Display Name: Record Created On + /// + [AttributeLogicalName("overriddencreatedon")] + [DisplayName("Record Created On")] + public DateTime? OverriddenCreatedOn + { + get => GetAttributeValue("overriddencreatedon"); + set => SetAttributeValue("overriddencreatedon", value); + } + + /// + /// For internal use only. + /// Display Name: Record Overwrite Time + /// + [AttributeLogicalName("overwritetime")] + [DisplayName("Record Overwrite Time")] + public DateTime? OverwriteTime + { + get => GetAttributeValue("overwritetime"); + set => SetAttributeValue("overwritetime", value); + } + + /// + /// Owner Id + /// Display Name: Owner + /// + [AttributeLogicalName("ownerid")] + [DisplayName("Owner")] + public EntityReference? OwnerId + { + get => GetAttributeValue("ownerid"); + set => SetAttributeValue("ownerid", value); + } + + /// + /// Unique identifier for the business unit that owns the record + /// Display Name: Owning Business Unit + /// + [AttributeLogicalName("owningbusinessunit")] + [DisplayName("Owning Business Unit")] + public EntityReference? OwningBusinessUnit + { + get => GetAttributeValue("owningbusinessunit"); + set => SetAttributeValue("owningbusinessunit", value); + } + + /// + /// Unique identifier for the team that owns the record. + /// Display Name: Owning Team + /// + [AttributeLogicalName("owningteam")] + [DisplayName("Owning Team")] + public EntityReference? OwningTeam + { + get => GetAttributeValue("owningteam"); + set => SetAttributeValue("owningteam", value); + } + + /// + /// Unique identifier for the user that owns the record. + /// Display Name: Owning User + /// + [AttributeLogicalName("owninguser")] + [DisplayName("Owning User")] + public EntityReference? OwningUser + { + get => GetAttributeValue("owninguser"); + set => SetAttributeValue("owninguser", value); + } + + /// + /// Display Name: Plugin Type + /// + [AttributeLogicalName("plugintypeid")] + [DisplayName("Plugin Type")] + public EntityReference? PluginTypeId + { + get => GetAttributeValue("plugintypeid"); + set => SetAttributeValue("plugintypeid", value); + } + + /// + /// Unique identifier for powerfxrule associated with Custom API. + /// Display Name: PowerFx Rule + /// + [AttributeLogicalName("powerfxruleid")] + [DisplayName("PowerFx Rule")] + public EntityReference? PowerfxRuleId + { + get => GetAttributeValue("powerfxruleid"); + set => SetAttributeValue("powerfxruleid", value); + } + + /// + /// Display Name: Sdk Message + /// + [AttributeLogicalName("sdkmessageid")] + [DisplayName("Sdk Message")] + public EntityReference? SdkMessageId + { + get => GetAttributeValue("sdkmessageid"); + set => SetAttributeValue("sdkmessageid", value); + } + + /// + /// Unique identifier of the associated solution. + /// Display Name: Solution + /// + [AttributeLogicalName("solutionid")] + [DisplayName("Solution")] + public Guid? SolutionId + { + get => GetAttributeValue("solutionid"); + set => SetAttributeValue("solutionid", value); + } + + /// + /// Status of the Custom API + /// Display Name: Status + /// + [AttributeLogicalName("statecode")] + [DisplayName("Status")] + public customapi_statecode? statecode + { + get => this.GetOptionSetValue("statecode"); + set => this.SetOptionSetValue("statecode", value); + } + + /// + /// Reason for the status of the Custom API + /// Display Name: Status Reason + /// + [AttributeLogicalName("statuscode")] + [DisplayName("Status Reason")] + public customapi_statuscode? statuscode + { + get => this.GetOptionSetValue("statuscode"); + set => this.SetOptionSetValue("statuscode", value); + } + + /// + /// For internal use only. + /// Display Name: Solution + /// + [AttributeLogicalName("supportingsolutionid")] + [DisplayName("Solution")] + public Guid? SupportingSolutionId + { + get => GetAttributeValue("supportingsolutionid"); + set => SetAttributeValue("supportingsolutionid", value); + } + + /// + /// For internal use only. + /// Display Name: Time Zone Rule Version Number + /// + [AttributeLogicalName("timezoneruleversionnumber")] + [DisplayName("Time Zone Rule Version Number")] + [Range(-1, 2147483647)] + public int? TimeZoneRuleVersionNumber + { + get => GetAttributeValue("timezoneruleversionnumber"); + set => SetAttributeValue("timezoneruleversionnumber", value); + } + + /// + /// Unique name for the custom API + /// Display Name: Unique Name + /// + [AttributeLogicalName("uniquename")] + [DisplayName("Unique Name")] + [MaxLength(128)] + public string UniqueName + { + get => GetAttributeValue("uniquename"); + set => SetAttributeValue("uniquename", value); + } + + /// + /// Time zone code that was in use when the record was created. + /// Display Name: UTC Conversion Time Zone Code + /// + [AttributeLogicalName("utcconversiontimezonecode")] + [DisplayName("UTC Conversion Time Zone Code")] + [Range(-1, 2147483647)] + public int? UTCConversionTimeZoneCode + { + get => GetAttributeValue("utcconversiontimezonecode"); + set => SetAttributeValue("utcconversiontimezonecode", value); + } + + /// + /// Version Number + /// Display Name: Version Number + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("Version Number")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + /// + /// Indicates if the custom API is enabled as a workflow action + /// Display Name: Enabled for Workflow + /// + [AttributeLogicalName("workflowsdkstepenabled")] + [DisplayName("Enabled for Workflow")] + public bool? WorkflowSdkStepEnabled + { + get => GetAttributeValue("workflowsdkstepenabled"); + set => SetAttributeValue("workflowsdkstepenabled", value); + } + + [AttributeLogicalName("createdby")] + [RelationshipSchemaName("lk_customapi_createdby")] + [RelationshipMetadata("ManyToOne", "createdby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_customapi_createdby + { + get => GetRelatedEntity("lk_customapi_createdby", null); + set => SetRelatedEntity("lk_customapi_createdby", null, value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_customapi_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_customapi_createdonbehalfby + { + get => GetRelatedEntity("lk_customapi_createdonbehalfby", null); + set => SetRelatedEntity("lk_customapi_createdonbehalfby", null, value); + } + + [AttributeLogicalName("modifiedby")] + [RelationshipSchemaName("lk_customapi_modifiedby")] + [RelationshipMetadata("ManyToOne", "modifiedby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_customapi_modifiedby + { + get => GetRelatedEntity("lk_customapi_modifiedby", null); + set => SetRelatedEntity("lk_customapi_modifiedby", null, value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_customapi_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_customapi_modifiedonbehalfby + { + get => GetRelatedEntity("lk_customapi_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_customapi_modifiedonbehalfby", null, value); + } + + [AttributeLogicalName("owninguser")] + [RelationshipSchemaName("user_customapi")] + [RelationshipMetadata("ManyToOne", "owninguser", "systemuser", "systemuserid", "Referencing")] + public SystemUser user_customapi + { + get => GetRelatedEntity("user_customapi", null); + set => SetRelatedEntity("user_customapi", null, value); + } + + [AttributeLogicalName("sdkmessageid")] + [RelationshipSchemaName("sdkmessage_customapi")] + [RelationshipMetadata("ManyToOne", "sdkmessageid", "sdkmessage", "sdkmessageid", "Referencing")] + public SdkMessage sdkmessage_customapi + { + get => GetRelatedEntity("sdkmessage_customapi", null); + set => SetRelatedEntity("sdkmessage_customapi", null, value); + } + + [AttributeLogicalName("plugintypeid")] + [RelationshipSchemaName("plugintype_customapi")] + [RelationshipMetadata("ManyToOne", "plugintypeid", "plugintype", "plugintypeid", "Referencing")] + public PluginType plugintype_customapi + { + get => GetRelatedEntity("plugintype_customapi", null); + set => SetRelatedEntity("plugintype_customapi", null, value); + } + + [RelationshipSchemaName("customapi_customapirequestparameter")] + [RelationshipMetadata("OneToMany", "customapiid", "customapirequestparameter", "customapiid", "Referenced")] + public IEnumerable customapi_customapirequestparameter + { + get => GetRelatedEntities("customapi_customapirequestparameter", null); + set => SetRelatedEntities("customapi_customapirequestparameter", null, value); + } + + [RelationshipSchemaName("customapi_customapiresponseproperty")] + [RelationshipMetadata("OneToMany", "customapiid", "customapiresponseproperty", "customapiid", "Referenced")] + public IEnumerable customapi_customapiresponseproperty + { + get => GetRelatedEntities("customapi_customapiresponseproperty", null); + set => SetRelatedEntities("customapi_customapiresponseproperty", null, value); + } + + /// + /// Gets the logical column name for a property on the CustomAPI entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the CustomAPI with the specified columns. + /// + /// Organization service + /// Id of CustomAPI to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved CustomAPI + public static CustomAPI Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/CustomAPIRequestParameter.cs b/Dataverse/Context/tables/CustomAPIRequestParameter.cs new file mode 100644 index 0000000..d2ce681 --- /dev/null +++ b/Dataverse/Context/tables/CustomAPIRequestParameter.cs @@ -0,0 +1,512 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// Entity that defines a request parameter for a custom API +/// Display Name: Custom API Request Parameter +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("customapirequestparameter")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class CustomAPIRequestParameter : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "customapirequestparameter"; + public const int EntityTypeCode = 10028; + + public CustomAPIRequestParameter() : base(EntityLogicalName) { } + public CustomAPIRequestParameter(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("name"); + + [AttributeLogicalName("customapirequestparameterid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("customapirequestparameterid", value); + } + } + + /// + /// For internal use only. + /// Display Name: Row id unique + /// + [AttributeLogicalName("componentidunique")] + [DisplayName("Row id unique")] + public Guid? ComponentIdUnique + { + get => GetAttributeValue("componentidunique"); + set => SetAttributeValue("componentidunique", value); + } + + /// + /// For internal use only. + /// Display Name: Component State + /// + [AttributeLogicalName("componentstate")] + [DisplayName("Component State")] + public componentstate? ComponentState + { + get => this.GetOptionSetValue("componentstate"); + set => this.SetOptionSetValue("componentstate", value); + } + + /// + /// Unique identifier of the user who created the record. + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the record was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the record. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// Unique identifier for the custom API that owns this custom API request parameter + /// Display Name: Custom API + /// + [AttributeLogicalName("customapiid")] + [DisplayName("Custom API")] + public EntityReference? CustomAPIId + { + get => GetAttributeValue("customapiid"); + set => SetAttributeValue("customapiid", value); + } + + /// + /// Display Name: Custom API Request Parameter + /// + [AttributeLogicalName("customapirequestparameterid")] + [DisplayName("Custom API Request Parameter")] + public Guid CustomAPIRequestParameterId + { + get => GetAttributeValue("customapirequestparameterid"); + set => SetId("customapirequestparameterid", value); + } + + /// + /// Localized description for custom API request parameter instances + /// Display Name: Description + /// + [AttributeLogicalName("description")] + [DisplayName("Description")] + [MaxLength(300)] + public string Description + { + get => GetAttributeValue("description"); + set => SetAttributeValue("description", value); + } + + /// + /// Localized display name for custom API request parameter instances + /// Display Name: Display Name + /// + [AttributeLogicalName("displayname")] + [DisplayName("Display Name")] + [MaxLength(100)] + public string DisplayName + { + get => GetAttributeValue("displayname"); + set => SetAttributeValue("displayname", value); + } + + /// + /// Sequence number of the import that created this record. + /// Display Name: Import Sequence Number + /// + [AttributeLogicalName("importsequencenumber")] + [DisplayName("Import Sequence Number")] + [Range(-2147483648, 2147483647)] + public int? ImportSequenceNumber + { + get => GetAttributeValue("importsequencenumber"); + set => SetAttributeValue("importsequencenumber", value); + } + + /// + /// For internal use only. + /// Display Name: Is Customizable + /// + [AttributeLogicalName("iscustomizable")] + [DisplayName("Is Customizable")] + public BooleanManagedProperty IsCustomizable + { + get => GetAttributeValue("iscustomizable"); + set => SetAttributeValue("iscustomizable", value); + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// Display Name: Is Managed + /// + [AttributeLogicalName("ismanaged")] + [DisplayName("Is Managed")] + public bool? IsManaged + { + get => GetAttributeValue("ismanaged"); + set => SetAttributeValue("ismanaged", value); + } + + /// + /// Indicates if the custom API request parameter is optional + /// Display Name: Is Optional + /// + [AttributeLogicalName("isoptional")] + [DisplayName("Is Optional")] + public bool? IsOptional + { + get => GetAttributeValue("isoptional"); + set => SetAttributeValue("isoptional", value); + } + + /// + /// The logical name of the entity bound to the custom API request parameter + /// Display Name: Bound Entity Logical Name + /// + [AttributeLogicalName("logicalentityname")] + [DisplayName("Bound Entity Logical Name")] + [MaxLength(100)] + public string LogicalEntityName + { + get => GetAttributeValue("logicalentityname"); + set => SetAttributeValue("logicalentityname", value); + } + + /// + /// Unique identifier of the user who modified the record. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the record was modified. + /// Display Name: Modified On + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified On")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who modified the record. + /// Display Name: Modified By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Modified By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// The primary name of the custom API request parameter + /// Display Name: Name + /// + [AttributeLogicalName("name")] + [DisplayName("Name")] + [MaxLength(100)] + public string Name + { + get => GetAttributeValue("name"); + set => SetAttributeValue("name", value); + } + + /// + /// Date and time that the record was migrated. + /// Display Name: Record Created On + /// + [AttributeLogicalName("overriddencreatedon")] + [DisplayName("Record Created On")] + public DateTime? OverriddenCreatedOn + { + get => GetAttributeValue("overriddencreatedon"); + set => SetAttributeValue("overriddencreatedon", value); + } + + /// + /// For internal use only. + /// Display Name: Record Overwrite Time + /// + [AttributeLogicalName("overwritetime")] + [DisplayName("Record Overwrite Time")] + public DateTime? OverwriteTime + { + get => GetAttributeValue("overwritetime"); + set => SetAttributeValue("overwritetime", value); + } + + /// + /// Owner Id + /// Display Name: Owner + /// + [AttributeLogicalName("ownerid")] + [DisplayName("Owner")] + public EntityReference? OwnerId + { + get => GetAttributeValue("ownerid"); + set => SetAttributeValue("ownerid", value); + } + + /// + /// Unique identifier for the business unit that owns the record + /// Display Name: Owning Business Unit + /// + [AttributeLogicalName("owningbusinessunit")] + [DisplayName("Owning Business Unit")] + public EntityReference? OwningBusinessUnit + { + get => GetAttributeValue("owningbusinessunit"); + set => SetAttributeValue("owningbusinessunit", value); + } + + /// + /// Unique identifier for the team that owns the record. + /// Display Name: Owning Team + /// + [AttributeLogicalName("owningteam")] + [DisplayName("Owning Team")] + public EntityReference? OwningTeam + { + get => GetAttributeValue("owningteam"); + set => SetAttributeValue("owningteam", value); + } + + /// + /// Unique identifier for the user that owns the record. + /// Display Name: Owning User + /// + [AttributeLogicalName("owninguser")] + [DisplayName("Owning User")] + public EntityReference? OwningUser + { + get => GetAttributeValue("owninguser"); + set => SetAttributeValue("owninguser", value); + } + + /// + /// Unique identifier of the associated solution. + /// Display Name: Solution + /// + [AttributeLogicalName("solutionid")] + [DisplayName("Solution")] + public Guid? SolutionId + { + get => GetAttributeValue("solutionid"); + set => SetAttributeValue("solutionid", value); + } + + /// + /// Status of the Custom API Request Parameter + /// Display Name: Status + /// + [AttributeLogicalName("statecode")] + [DisplayName("Status")] + public customapirequestparameter_statecode? statecode + { + get => this.GetOptionSetValue("statecode"); + set => this.SetOptionSetValue("statecode", value); + } + + /// + /// Reason for the status of the Custom API Request Parameter + /// Display Name: Status Reason + /// + [AttributeLogicalName("statuscode")] + [DisplayName("Status Reason")] + public customapirequestparameter_statuscode? statuscode + { + get => this.GetOptionSetValue("statuscode"); + set => this.SetOptionSetValue("statuscode", value); + } + + /// + /// For internal use only. + /// Display Name: Solution + /// + [AttributeLogicalName("supportingsolutionid")] + [DisplayName("Solution")] + public Guid? SupportingSolutionId + { + get => GetAttributeValue("supportingsolutionid"); + set => SetAttributeValue("supportingsolutionid", value); + } + + /// + /// For internal use only. + /// Display Name: Time Zone Rule Version Number + /// + [AttributeLogicalName("timezoneruleversionnumber")] + [DisplayName("Time Zone Rule Version Number")] + [Range(-1, 2147483647)] + public int? TimeZoneRuleVersionNumber + { + get => GetAttributeValue("timezoneruleversionnumber"); + set => SetAttributeValue("timezoneruleversionnumber", value); + } + + /// + /// The data type of the custom API request parameter + /// Display Name: Type + /// + [AttributeLogicalName("type")] + [DisplayName("Type")] + public customapifieldtype? Type + { + get => this.GetOptionSetValue("type"); + set => this.SetOptionSetValue("type", value); + } + + /// + /// Unique name for the custom API request parameter + /// Display Name: Unique Name + /// + [AttributeLogicalName("uniquename")] + [DisplayName("Unique Name")] + [MaxLength(128)] + public string UniqueName + { + get => GetAttributeValue("uniquename"); + set => SetAttributeValue("uniquename", value); + } + + /// + /// Time zone code that was in use when the record was created. + /// Display Name: UTC Conversion Time Zone Code + /// + [AttributeLogicalName("utcconversiontimezonecode")] + [DisplayName("UTC Conversion Time Zone Code")] + [Range(-1, 2147483647)] + public int? UTCConversionTimeZoneCode + { + get => GetAttributeValue("utcconversiontimezonecode"); + set => SetAttributeValue("utcconversiontimezonecode", value); + } + + /// + /// Version Number + /// Display Name: Version Number + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("Version Number")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + [AttributeLogicalName("createdby")] + [RelationshipSchemaName("lk_customapirequestparameter_createdby")] + [RelationshipMetadata("ManyToOne", "createdby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_customapirequestparameter_createdby + { + get => GetRelatedEntity("lk_customapirequestparameter_createdby", null); + set => SetRelatedEntity("lk_customapirequestparameter_createdby", null, value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_customapirequestparameter_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_customapirequestparameter_createdonbehalfby + { + get => GetRelatedEntity("lk_customapirequestparameter_createdonbehalfby", null); + set => SetRelatedEntity("lk_customapirequestparameter_createdonbehalfby", null, value); + } + + [AttributeLogicalName("modifiedby")] + [RelationshipSchemaName("lk_customapirequestparameter_modifiedby")] + [RelationshipMetadata("ManyToOne", "modifiedby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_customapirequestparameter_modifiedby + { + get => GetRelatedEntity("lk_customapirequestparameter_modifiedby", null); + set => SetRelatedEntity("lk_customapirequestparameter_modifiedby", null, value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_customapirequestparameter_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_customapirequestparameter_modifiedonbehalfby + { + get => GetRelatedEntity("lk_customapirequestparameter_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_customapirequestparameter_modifiedonbehalfby", null, value); + } + + [AttributeLogicalName("customapiid")] + [RelationshipSchemaName("customapi_customapirequestparameter")] + [RelationshipMetadata("ManyToOne", "customapiid", "customapi", "customapiid", "Referencing")] + public CustomAPI customapi_customapirequestparameter + { + get => GetRelatedEntity("customapi_customapirequestparameter", null); + set => SetRelatedEntity("customapi_customapirequestparameter", null, value); + } + + /// + /// Gets the logical column name for a property on the CustomAPIRequestParameter entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the CustomAPIRequestParameter with the specified columns. + /// + /// Organization service + /// Id of CustomAPIRequestParameter to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved CustomAPIRequestParameter + public static CustomAPIRequestParameter Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/CustomAPIResponseProperty.cs b/Dataverse/Context/tables/CustomAPIResponseProperty.cs new file mode 100644 index 0000000..e3e43aa --- /dev/null +++ b/Dataverse/Context/tables/CustomAPIResponseProperty.cs @@ -0,0 +1,500 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// Entity that defines a response property for a custom API +/// Display Name: Custom API Response Property +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("customapiresponseproperty")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class CustomAPIResponseProperty : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "customapiresponseproperty"; + public const int EntityTypeCode = 10029; + + public CustomAPIResponseProperty() : base(EntityLogicalName) { } + public CustomAPIResponseProperty(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("name"); + + [AttributeLogicalName("customapiresponsepropertyid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("customapiresponsepropertyid", value); + } + } + + /// + /// For internal use only. + /// Display Name: Row id unique + /// + [AttributeLogicalName("componentidunique")] + [DisplayName("Row id unique")] + public Guid? ComponentIdUnique + { + get => GetAttributeValue("componentidunique"); + set => SetAttributeValue("componentidunique", value); + } + + /// + /// For internal use only. + /// Display Name: Component State + /// + [AttributeLogicalName("componentstate")] + [DisplayName("Component State")] + public componentstate? ComponentState + { + get => this.GetOptionSetValue("componentstate"); + set => this.SetOptionSetValue("componentstate", value); + } + + /// + /// Unique identifier of the user who created the record. + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the record was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the record. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// Unique identifier for the custom API that owns this custom API response property + /// Display Name: Custom API + /// + [AttributeLogicalName("customapiid")] + [DisplayName("Custom API")] + public EntityReference? CustomAPIId + { + get => GetAttributeValue("customapiid"); + set => SetAttributeValue("customapiid", value); + } + + /// + /// Display Name: Custom API Response Property + /// + [AttributeLogicalName("customapiresponsepropertyid")] + [DisplayName("Custom API Response Property")] + public Guid CustomAPIResponsePropertyId + { + get => GetAttributeValue("customapiresponsepropertyid"); + set => SetId("customapiresponsepropertyid", value); + } + + /// + /// Localized description for custom API response property instances + /// Display Name: Description + /// + [AttributeLogicalName("description")] + [DisplayName("Description")] + [MaxLength(100)] + public string Description + { + get => GetAttributeValue("description"); + set => SetAttributeValue("description", value); + } + + /// + /// Localized display name for custom API response property instances + /// Display Name: Display Name + /// + [AttributeLogicalName("displayname")] + [DisplayName("Display Name")] + [MaxLength(100)] + public string DisplayName + { + get => GetAttributeValue("displayname"); + set => SetAttributeValue("displayname", value); + } + + /// + /// Sequence number of the import that created this record. + /// Display Name: Import Sequence Number + /// + [AttributeLogicalName("importsequencenumber")] + [DisplayName("Import Sequence Number")] + [Range(-2147483648, 2147483647)] + public int? ImportSequenceNumber + { + get => GetAttributeValue("importsequencenumber"); + set => SetAttributeValue("importsequencenumber", value); + } + + /// + /// For internal use only. + /// Display Name: Is Customizable + /// + [AttributeLogicalName("iscustomizable")] + [DisplayName("Is Customizable")] + public BooleanManagedProperty IsCustomizable + { + get => GetAttributeValue("iscustomizable"); + set => SetAttributeValue("iscustomizable", value); + } + + /// + /// Indicates whether the solution component is part of a managed solution. + /// Display Name: Is Managed + /// + [AttributeLogicalName("ismanaged")] + [DisplayName("Is Managed")] + public bool? IsManaged + { + get => GetAttributeValue("ismanaged"); + set => SetAttributeValue("ismanaged", value); + } + + /// + /// The logical name of the entity bound to the custom API response property + /// Display Name: Bound Entity Logical Name + /// + [AttributeLogicalName("logicalentityname")] + [DisplayName("Bound Entity Logical Name")] + [MaxLength(100)] + public string LogicalEntityName + { + get => GetAttributeValue("logicalentityname"); + set => SetAttributeValue("logicalentityname", value); + } + + /// + /// Unique identifier of the user who modified the record. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the record was modified. + /// Display Name: Modified On + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified On")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who modified the record. + /// Display Name: Modified By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Modified By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// The primary name of the custom API response property + /// Display Name: Name + /// + [AttributeLogicalName("name")] + [DisplayName("Name")] + [MaxLength(100)] + public string Name + { + get => GetAttributeValue("name"); + set => SetAttributeValue("name", value); + } + + /// + /// Date and time that the record was migrated. + /// Display Name: Record Created On + /// + [AttributeLogicalName("overriddencreatedon")] + [DisplayName("Record Created On")] + public DateTime? OverriddenCreatedOn + { + get => GetAttributeValue("overriddencreatedon"); + set => SetAttributeValue("overriddencreatedon", value); + } + + /// + /// For internal use only. + /// Display Name: Record Overwrite Time + /// + [AttributeLogicalName("overwritetime")] + [DisplayName("Record Overwrite Time")] + public DateTime? OverwriteTime + { + get => GetAttributeValue("overwritetime"); + set => SetAttributeValue("overwritetime", value); + } + + /// + /// Owner Id + /// Display Name: Owner + /// + [AttributeLogicalName("ownerid")] + [DisplayName("Owner")] + public EntityReference? OwnerId + { + get => GetAttributeValue("ownerid"); + set => SetAttributeValue("ownerid", value); + } + + /// + /// Unique identifier for the business unit that owns the record + /// Display Name: Owning Business Unit + /// + [AttributeLogicalName("owningbusinessunit")] + [DisplayName("Owning Business Unit")] + public EntityReference? OwningBusinessUnit + { + get => GetAttributeValue("owningbusinessunit"); + set => SetAttributeValue("owningbusinessunit", value); + } + + /// + /// Unique identifier for the team that owns the record. + /// Display Name: Owning Team + /// + [AttributeLogicalName("owningteam")] + [DisplayName("Owning Team")] + public EntityReference? OwningTeam + { + get => GetAttributeValue("owningteam"); + set => SetAttributeValue("owningteam", value); + } + + /// + /// Unique identifier for the user that owns the record. + /// Display Name: Owning User + /// + [AttributeLogicalName("owninguser")] + [DisplayName("Owning User")] + public EntityReference? OwningUser + { + get => GetAttributeValue("owninguser"); + set => SetAttributeValue("owninguser", value); + } + + /// + /// Unique identifier of the associated solution. + /// Display Name: Solution + /// + [AttributeLogicalName("solutionid")] + [DisplayName("Solution")] + public Guid? SolutionId + { + get => GetAttributeValue("solutionid"); + set => SetAttributeValue("solutionid", value); + } + + /// + /// Status of the Custom API Response Property + /// Display Name: Status + /// + [AttributeLogicalName("statecode")] + [DisplayName("Status")] + public customapiresponseproperty_statecode? statecode + { + get => this.GetOptionSetValue("statecode"); + set => this.SetOptionSetValue("statecode", value); + } + + /// + /// Reason for the status of the Custom API Response Property + /// Display Name: Status Reason + /// + [AttributeLogicalName("statuscode")] + [DisplayName("Status Reason")] + public customapiresponseproperty_statuscode? statuscode + { + get => this.GetOptionSetValue("statuscode"); + set => this.SetOptionSetValue("statuscode", value); + } + + /// + /// For internal use only. + /// Display Name: Solution + /// + [AttributeLogicalName("supportingsolutionid")] + [DisplayName("Solution")] + public Guid? SupportingSolutionId + { + get => GetAttributeValue("supportingsolutionid"); + set => SetAttributeValue("supportingsolutionid", value); + } + + /// + /// For internal use only. + /// Display Name: Time Zone Rule Version Number + /// + [AttributeLogicalName("timezoneruleversionnumber")] + [DisplayName("Time Zone Rule Version Number")] + [Range(-1, 2147483647)] + public int? TimeZoneRuleVersionNumber + { + get => GetAttributeValue("timezoneruleversionnumber"); + set => SetAttributeValue("timezoneruleversionnumber", value); + } + + /// + /// The data type of the custom API response property + /// Display Name: Type + /// + [AttributeLogicalName("type")] + [DisplayName("Type")] + public customapifieldtype? Type + { + get => this.GetOptionSetValue("type"); + set => this.SetOptionSetValue("type", value); + } + + /// + /// Unique name for the custom API response property + /// Display Name: Unique Name + /// + [AttributeLogicalName("uniquename")] + [DisplayName("Unique Name")] + [MaxLength(128)] + public string UniqueName + { + get => GetAttributeValue("uniquename"); + set => SetAttributeValue("uniquename", value); + } + + /// + /// Time zone code that was in use when the record was created. + /// Display Name: UTC Conversion Time Zone Code + /// + [AttributeLogicalName("utcconversiontimezonecode")] + [DisplayName("UTC Conversion Time Zone Code")] + [Range(-1, 2147483647)] + public int? UTCConversionTimeZoneCode + { + get => GetAttributeValue("utcconversiontimezonecode"); + set => SetAttributeValue("utcconversiontimezonecode", value); + } + + /// + /// Version Number + /// Display Name: Version Number + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("Version Number")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + [AttributeLogicalName("createdby")] + [RelationshipSchemaName("lk_customapiresponseproperty_createdby")] + [RelationshipMetadata("ManyToOne", "createdby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_customapiresponseproperty_createdby + { + get => GetRelatedEntity("lk_customapiresponseproperty_createdby", null); + set => SetRelatedEntity("lk_customapiresponseproperty_createdby", null, value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_customapiresponseproperty_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_customapiresponseproperty_createdonbehalfby + { + get => GetRelatedEntity("lk_customapiresponseproperty_createdonbehalfby", null); + set => SetRelatedEntity("lk_customapiresponseproperty_createdonbehalfby", null, value); + } + + [AttributeLogicalName("modifiedby")] + [RelationshipSchemaName("lk_customapiresponseproperty_modifiedby")] + [RelationshipMetadata("ManyToOne", "modifiedby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_customapiresponseproperty_modifiedby + { + get => GetRelatedEntity("lk_customapiresponseproperty_modifiedby", null); + set => SetRelatedEntity("lk_customapiresponseproperty_modifiedby", null, value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_customapiresponseproperty_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_customapiresponseproperty_modifiedonbehalfby + { + get => GetRelatedEntity("lk_customapiresponseproperty_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_customapiresponseproperty_modifiedonbehalfby", null, value); + } + + [AttributeLogicalName("customapiid")] + [RelationshipSchemaName("customapi_customapiresponseproperty")] + [RelationshipMetadata("ManyToOne", "customapiid", "customapi", "customapiid", "Referencing")] + public CustomAPI customapi_customapiresponseproperty + { + get => GetRelatedEntity("customapi_customapiresponseproperty", null); + set => SetRelatedEntity("customapi_customapiresponseproperty", null, value); + } + + /// + /// Gets the logical column name for a property on the CustomAPIResponseProperty entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the CustomAPIResponseProperty with the specified columns. + /// + /// Organization service + /// Id of CustomAPIResponseProperty to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved CustomAPIResponseProperty + public static CustomAPIResponseProperty Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/Dependency.cs b/Dataverse/Context/tables/Dependency.cs new file mode 100644 index 0000000..1fd1204 --- /dev/null +++ b/Dataverse/Context/tables/Dependency.cs @@ -0,0 +1,239 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// A component dependency in CRM. +/// Display Name: Dependency +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("dependency")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class Dependency : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "dependency"; + public const int EntityTypeCode = 7105; + + public Dependency() : base(EntityLogicalName) { } + public Dependency(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay(""); + + [AttributeLogicalName("dependencyid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("dependencyid", value); + } + } + + /// + /// Display Name: Dependency Identifier + /// + [AttributeLogicalName("dependencyid")] + [DisplayName("Dependency Identifier")] + public Guid DependencyId + { + get => GetAttributeValue("dependencyid"); + set => SetId("dependencyid", value); + } + + /// + /// The dependency type of the dependency. + /// Display Name: Dependency Type + /// + [AttributeLogicalName("dependencytype")] + [DisplayName("Dependency Type")] + public dependencytype? DependencyType + { + get => this.GetOptionSetValue("dependencytype"); + set => this.SetOptionSetValue("dependencytype", value); + } + + /// + /// Display Name: dependentcomponentbasesolutionid + /// + [AttributeLogicalName("dependentcomponentbasesolutionid")] + [DisplayName("dependentcomponentbasesolutionid")] + public Guid? DependentComponentBaseSolutionId + { + get => GetAttributeValue("dependentcomponentbasesolutionid"); + set => SetAttributeValue("dependentcomponentbasesolutionid", value); + } + + /// + /// Unique identifier of the dependent component's node. + /// Display Name: Dependent Component + /// + [AttributeLogicalName("dependentcomponentnodeid")] + [DisplayName("Dependent Component")] + public EntityReference? DependentComponentNodeId + { + get => GetAttributeValue("dependentcomponentnodeid"); + set => SetAttributeValue("dependentcomponentnodeid", value); + } + + /// + /// Display Name: dependentcomponentobjectid + /// + [AttributeLogicalName("dependentcomponentobjectid")] + [DisplayName("dependentcomponentobjectid")] + public Guid? DependentComponentObjectId + { + get => GetAttributeValue("dependentcomponentobjectid"); + set => SetAttributeValue("dependentcomponentobjectid", value); + } + + /// + /// Display Name: dependentcomponentparentid + /// + [AttributeLogicalName("dependentcomponentparentid")] + [DisplayName("dependentcomponentparentid")] + public Guid? DependentComponentParentId + { + get => GetAttributeValue("dependentcomponentparentid"); + set => SetAttributeValue("dependentcomponentparentid", value); + } + + /// + /// Display Name: dependentcomponenttype + /// + [AttributeLogicalName("dependentcomponenttype")] + [DisplayName("dependentcomponenttype")] + public componenttype? DependentComponentType + { + get => this.GetOptionSetValue("dependentcomponenttype"); + set => this.SetOptionSetValue("dependentcomponenttype", value); + } + + /// + /// Display Name: requiredcomponentbasesolutionid + /// + [AttributeLogicalName("requiredcomponentbasesolutionid")] + [DisplayName("requiredcomponentbasesolutionid")] + public Guid? RequiredComponentBaseSolutionId + { + get => GetAttributeValue("requiredcomponentbasesolutionid"); + set => SetAttributeValue("requiredcomponentbasesolutionid", value); + } + + /// + /// Display Name: requiredcomponentintroducedversion + /// + [AttributeLogicalName("requiredcomponentintroducedversion")] + [DisplayName("requiredcomponentintroducedversion")] + public double? RequiredComponentIntroducedVersion + { + get => GetAttributeValue("requiredcomponentintroducedversion"); + set => SetAttributeValue("requiredcomponentintroducedversion", value); + } + + /// + /// Unique identifier of the required component's node + /// Display Name: Required Component + /// + [AttributeLogicalName("requiredcomponentnodeid")] + [DisplayName("Required Component")] + public EntityReference? RequiredComponentNodeId + { + get => GetAttributeValue("requiredcomponentnodeid"); + set => SetAttributeValue("requiredcomponentnodeid", value); + } + + /// + /// Display Name: requiredcomponentobjectid + /// + [AttributeLogicalName("requiredcomponentobjectid")] + [DisplayName("requiredcomponentobjectid")] + public Guid? RequiredComponentObjectId + { + get => GetAttributeValue("requiredcomponentobjectid"); + set => SetAttributeValue("requiredcomponentobjectid", value); + } + + /// + /// Display Name: requiredcomponentparentid + /// + [AttributeLogicalName("requiredcomponentparentid")] + [DisplayName("requiredcomponentparentid")] + public Guid? RequiredComponentParentId + { + get => GetAttributeValue("requiredcomponentparentid"); + set => SetAttributeValue("requiredcomponentparentid", value); + } + + /// + /// Display Name: requiredcomponenttype + /// + [AttributeLogicalName("requiredcomponenttype")] + [DisplayName("requiredcomponenttype")] + public componenttype? RequiredComponentType + { + get => this.GetOptionSetValue("requiredcomponenttype"); + set => this.SetOptionSetValue("requiredcomponenttype", value); + } + + /// + /// Display Name: versionnumber + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("versionnumber")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + [AttributeLogicalName("dependentcomponentnodeid")] + [RelationshipSchemaName("dependencynode_descendent_dependency")] + [RelationshipMetadata("ManyToOne", "dependentcomponentnodeid", "dependencynode", "dependencynodeid", "Referencing")] + public DependencyNode dependencynode_descendent_dependency + { + get => GetRelatedEntity("dependencynode_descendent_dependency", null); + set => SetRelatedEntity("dependencynode_descendent_dependency", null, value); + } + + [AttributeLogicalName("requiredcomponentnodeid")] + [RelationshipSchemaName("dependencynode_ancestor_dependency")] + [RelationshipMetadata("ManyToOne", "requiredcomponentnodeid", "dependencynode", "dependencynodeid", "Referencing")] + public DependencyNode dependencynode_ancestor_dependency + { + get => GetRelatedEntity("dependencynode_ancestor_dependency", null); + set => SetRelatedEntity("dependencynode_ancestor_dependency", null, value); + } + + /// + /// Gets the logical column name for a property on the Dependency entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the Dependency with the specified columns. + /// + /// Organization service + /// Id of Dependency to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved Dependency + public static Dependency Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/DependencyNode.cs b/Dataverse/Context/tables/DependencyNode.cs new file mode 100644 index 0000000..5cc7918 --- /dev/null +++ b/Dataverse/Context/tables/DependencyNode.cs @@ -0,0 +1,204 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// The representation of a component dependency node in CRM. +/// Display Name: Dependency Node +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("dependencynode")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class DependencyNode : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "dependencynode"; + public const int EntityTypeCode = 7106; + + public DependencyNode() : base(EntityLogicalName) { } + public DependencyNode(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay(""); + + [AttributeLogicalName("dependencynodeid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("dependencynodeid", value); + } + } + + /// + /// Unique identifier of the user who created the solution + /// Display Name: Base Solution + /// + [AttributeLogicalName("basesolutionid")] + [DisplayName("Base Solution")] + public EntityReference? BaseSolutionId + { + get => GetAttributeValue("basesolutionid"); + set => SetAttributeValue("basesolutionid", value); + } + + /// + /// The type code of the component. + /// Display Name: Type Code + /// + [AttributeLogicalName("componenttype")] + [DisplayName("Type Code")] + public componenttype? ComponentType + { + get => this.GetOptionSetValue("componenttype"); + set => this.SetOptionSetValue("componenttype", value); + } + + /// + /// Display Name: Dependency Node Identifier + /// + [AttributeLogicalName("dependencynodeid")] + [DisplayName("Dependency Node Identifier")] + public Guid DependencyNodeId + { + get => GetAttributeValue("dependencynodeid"); + set => SetId("dependencynodeid", value); + } + + /// + /// Introduced version for the component + /// Display Name: Introduced Version + /// + [AttributeLogicalName("introducedversion")] + [DisplayName("Introduced Version")] + public double? IntroducedVersion + { + get => GetAttributeValue("introducedversion"); + set => SetAttributeValue("introducedversion", value); + } + + /// + /// Whether this component is shared by two solutions with the same publisher. + /// Display Name: Shared Component + /// + [AttributeLogicalName("issharedcomponent")] + [DisplayName("Shared Component")] + public bool? IsSharedComponent + { + get => GetAttributeValue("issharedcomponent"); + set => SetAttributeValue("issharedcomponent", value); + } + + /// + /// Unique identifier of the object with which the node is associated. + /// Display Name: Regarding + /// + [AttributeLogicalName("objectid")] + [DisplayName("Regarding")] + public Guid? ObjectId + { + get => GetAttributeValue("objectid"); + set => SetAttributeValue("objectid", value); + } + + /// + /// Unique identifier of the parent entity. + /// Display Name: Parent Entity + /// + [AttributeLogicalName("parentid")] + [DisplayName("Parent Entity")] + public Guid? ParentId + { + get => GetAttributeValue("parentid"); + set => SetAttributeValue("parentid", value); + } + + /// + /// Unique identifier of the top solution. + /// Display Name: Top Solution + /// + [AttributeLogicalName("topsolutionid")] + [DisplayName("Top Solution")] + public EntityReference? TopSolutionId + { + get => GetAttributeValue("topsolutionid"); + set => SetAttributeValue("topsolutionid", value); + } + + /// + /// Display Name: versionnumber + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("versionnumber")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + [AttributeLogicalName("basesolutionid")] + [RelationshipSchemaName("solution_base_dependencynode")] + [RelationshipMetadata("ManyToOne", "basesolutionid", "solution", "solutionid", "Referencing")] + public Solution solution_base_dependencynode + { + get => GetRelatedEntity("solution_base_dependencynode", null); + set => SetRelatedEntity("solution_base_dependencynode", null, value); + } + + [AttributeLogicalName("topsolutionid")] + [RelationshipSchemaName("solution_top_dependencynode")] + [RelationshipMetadata("ManyToOne", "topsolutionid", "solution", "solutionid", "Referencing")] + public Solution solution_top_dependencynode + { + get => GetRelatedEntity("solution_top_dependencynode", null); + set => SetRelatedEntity("solution_top_dependencynode", null, value); + } + + [RelationshipSchemaName("dependencynode_descendent_dependency")] + [RelationshipMetadata("OneToMany", "dependencynodeid", "dependency", "dependentcomponentnodeid", "Referenced")] + public IEnumerable dependencynode_descendent_dependency + { + get => GetRelatedEntities("dependencynode_descendent_dependency", null); + set => SetRelatedEntities("dependencynode_descendent_dependency", null, value); + } + + [RelationshipSchemaName("dependencynode_ancestor_dependency")] + [RelationshipMetadata("OneToMany", "dependencynodeid", "dependency", "requiredcomponentnodeid", "Referenced")] + public IEnumerable dependencynode_ancestor_dependency + { + get => GetRelatedEntities("dependencynode_ancestor_dependency", null); + set => SetRelatedEntities("dependencynode_ancestor_dependency", null, value); + } + + /// + /// Gets the logical column name for a property on the DependencyNode entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the DependencyNode with the specified columns. + /// + /// Organization service + /// Id of DependencyNode to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved DependencyNode + public static DependencyNode Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/ExtendedEntity.cs b/Dataverse/Context/tables/ExtendedEntity.cs new file mode 100644 index 0000000..8778347 --- /dev/null +++ b/Dataverse/Context/tables/ExtendedEntity.cs @@ -0,0 +1,147 @@ +using Microsoft.Xrm.Sdk; +using Microsoft.Xrm.Sdk.Client; + +[assembly: ProxyTypesAssembly] + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +public class ExtendedEntity : Entity +{ + public ExtendedEntity(string logicalName) + : base(logicalName) + { + } + + public ExtendedEntity(string logicalName, Guid id) + : base(logicalName, id) + { + } + + public new T? GetAttributeValue(string attributeLogicalName) + { + return base.GetAttributeValue(attributeLogicalName); + } + + protected string GetDebuggerDisplay(string primaryNameAttribute) + { + string display = GetType().Name; + + var name = this.GetAttributeValue(primaryNameAttribute); + if (!string.IsNullOrEmpty(name)) display += $" ({name})"; + if (this.Id != Guid.Empty) display += $" [{this.Id}]"; + + return display; + } + + protected void SetId(string primaryIdAttribute, Guid? id) + { + base.Id = id.GetValueOrDefault(); + SetAttributeValue(primaryIdAttribute, id); + } + + protected IEnumerable GetEntityCollection(string attributeName) + where T : Entity + { + var collection = this.GetAttributeValue(attributeName); + if (collection != null && collection.Entities != null) + { + return collection.Entities.Select(x => x.ToEntity()); + } + else + { + return Enumerable.Empty(); + } + } + + protected void SetEntityCollection(string attributeName, IEnumerable entities) + where T : Entity + { + var list = entities?.Cast().ToList(); + if (list == null || !list.Any()) + { + this.SetAttributeValue(attributeName, null); + return; + } + + this.SetAttributeValue(attributeName, new EntityCollection(list)); + } + + protected decimal? GetMoneyValue(string attributeName) + { + var money = this.GetAttributeValue(attributeName); + if (money != null) + { + return money.Value; + } + else + { + return null; + } + } + + protected void SetMoneyValue(string attributeName, decimal? value) + { + if (value.HasValue) + { + this.SetAttributeValue(attributeName, new Money(value.Value)); + } + else + { + this.SetAttributeValue(attributeName, null); + } + } + + protected IEnumerable GetOptionSetCollectionValue(string attributeName) + where T : struct, IComparable, IConvertible, IFormattable + { + var optionSetCollection = this.GetAttributeValue(attributeName); + if (optionSetCollection != null && optionSetCollection.Count != 0) + { + return optionSetCollection + .Select(osv => (T)Enum.ToObject(typeof(T), osv.Value)) + .ToArray(); + } + + return Enumerable.Empty(); + } + + protected void SetOptionSetCollectionValue(string attributeName, IEnumerable values) + { + var list = values?.Cast().Cast().ToList(); + if (list == null || !list.Any()) + { + this.SetAttributeValue(attributeName, null); + return; + } + + var arr = list + .Select(v => new OptionSetValue(v)) + .ToArray(); + this.SetAttributeValue(attributeName, new OptionSetValueCollection(arr)); + } + + protected T? GetOptionSetValue(string attributeName) + where T : struct, IComparable, IConvertible, IFormattable + { + var optionSet = this.GetAttributeValue(attributeName); + if (optionSet != null) + { + return (T)Enum.ToObject(typeof(T), optionSet.Value); + } + + return null; + } + + protected void SetOptionSetValue(string attributeName, T? value) + { + if (value != null) + { + this.SetAttributeValue(attributeName, new OptionSetValue((int)(object)value)); + } + else + { + this.SetAttributeValue(attributeName, null); + } + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/PluginAssembly.cs b/Dataverse/Context/tables/PluginAssembly.cs new file mode 100644 index 0000000..51afcaf --- /dev/null +++ b/Dataverse/Context/tables/PluginAssembly.cs @@ -0,0 +1,576 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// Assembly that contains one or more plug-in types. +/// Display Name: Plug-in Assembly +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("pluginassembly")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class PluginAssembly : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "pluginassembly"; + public const int EntityTypeCode = 4605; + + public PluginAssembly() : base(EntityLogicalName) { } + public PluginAssembly(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("name"); + + [AttributeLogicalName("pluginassemblyid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("pluginassemblyid", value); + } + } + + /// + /// Specifies mode of authentication with web sources like WebApp + /// Display Name: Specifies mode of authentication with web sources + /// + [AttributeLogicalName("authtype")] + [DisplayName("Specifies mode of authentication with web sources")] + public pluginassembly_authtype? AuthType + { + get => this.GetOptionSetValue("authtype"); + set => this.SetOptionSetValue("authtype", value); + } + + /// + /// For internal use only. + /// Display Name: Component State + /// + [AttributeLogicalName("componentstate")] + [DisplayName("Component State")] + public componentstate? ComponentState + { + get => this.GetOptionSetValue("componentstate"); + set => this.SetOptionSetValue("componentstate", value); + } + + /// + /// Bytes of the assembly, in Base64 format. + /// Display Name: content + /// + [AttributeLogicalName("content")] + [DisplayName("content")] + [MaxLength(1073741823)] + public string Content + { + get => GetAttributeValue("content"); + set => SetAttributeValue("content", value); + } + + /// + /// Unique identifier of the user who created the plug-in assembly. + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the plug-in assembly was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the pluginassembly. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// Culture code for the plug-in assembly. + /// Display Name: Culture + /// + [AttributeLogicalName("culture")] + [DisplayName("Culture")] + [MaxLength(32)] + public string Culture + { + get => GetAttributeValue("culture"); + set => SetAttributeValue("culture", value); + } + + /// + /// Customization Level. + /// Display Name: customizationlevel + /// + [AttributeLogicalName("customizationlevel")] + [DisplayName("customizationlevel")] + [Range(-255, 255)] + public int? CustomizationLevel + { + get => GetAttributeValue("customizationlevel"); + set => SetAttributeValue("customizationlevel", value); + } + + /// + /// Description of the plug-in assembly. + /// Display Name: Description + /// + [AttributeLogicalName("description")] + [DisplayName("Description")] + [MaxLength(256)] + public string Description + { + get => GetAttributeValue("description"); + set => SetAttributeValue("description", value); + } + + /// + /// Version in which the form is introduced. + /// Display Name: Introduced Version + /// + [AttributeLogicalName("introducedversion")] + [DisplayName("Introduced Version")] + [MaxLength(48)] + public string IntroducedVersion + { + get => GetAttributeValue("introducedversion"); + set => SetAttributeValue("introducedversion", value); + } + + /// + /// Information that specifies whether this component can be customized. + /// Display Name: Customizable + /// + [AttributeLogicalName("iscustomizable")] + [DisplayName("Customizable")] + public BooleanManagedProperty IsCustomizable + { + get => GetAttributeValue("iscustomizable"); + set => SetAttributeValue("iscustomizable", value); + } + + /// + /// Information that specifies whether this component should be hidden. + /// Display Name: Hidden + /// + [AttributeLogicalName("ishidden")] + [DisplayName("Hidden")] + public BooleanManagedProperty IsHidden + { + get => GetAttributeValue("ishidden"); + set => SetAttributeValue("ishidden", value); + } + + /// + /// Information that specifies whether this component is managed. + /// Display Name: State + /// + [AttributeLogicalName("ismanaged")] + [DisplayName("State")] + public bool? IsManaged + { + get => GetAttributeValue("ismanaged"); + set => SetAttributeValue("ismanaged", value); + } + + /// + /// Information about how the plugin assembly is to be isolated at execution time; None / Sandboxed. + /// Display Name: Isolation Mode + /// + [AttributeLogicalName("isolationmode")] + [DisplayName("Isolation Mode")] + public pluginassembly_isolationmode? IsolationMode + { + get => this.GetOptionSetValue("isolationmode"); + set => this.SetOptionSetValue("isolationmode", value); + } + + /// + /// Display Name: ispasswordset + /// + [AttributeLogicalName("ispasswordset")] + [DisplayName("ispasswordset")] + public bool? IsPasswordSet + { + get => GetAttributeValue("ispasswordset"); + set => SetAttributeValue("ispasswordset", value); + } + + /// + /// Major of the assembly version. + /// Display Name: major + /// + [AttributeLogicalName("major")] + [DisplayName("major")] + [Range(0, 65534)] + public int? Major + { + get => GetAttributeValue("major"); + set => SetAttributeValue("major", value); + } + + /// + /// Unique identifier for managedidentity associated with pluginassembly. + /// Display Name: ManagedIdentityId + /// + [AttributeLogicalName("managedidentityid")] + [DisplayName("ManagedIdentityId")] + public EntityReference? ManagedIdentityId + { + get => GetAttributeValue("managedidentityid"); + set => SetAttributeValue("managedidentityid", value); + } + + /// + /// Minor of the assembly version. + /// Display Name: minor + /// + [AttributeLogicalName("minor")] + [DisplayName("minor")] + [Range(0, 65534)] + public int? Minor + { + get => GetAttributeValue("minor"); + set => SetAttributeValue("minor", value); + } + + /// + /// Unique identifier of the user who last modified the plug-in assembly. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the plug-in assembly was last modified. + /// Display Name: Modified On + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified On")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who last modified the pluginassembly. + /// Display Name: Modified By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Modified By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// Name of the plug-in assembly. + /// Display Name: Name + /// + [AttributeLogicalName("name")] + [DisplayName("Name")] + [MaxLength(256)] + public string Name + { + get => GetAttributeValue("name"); + set => SetAttributeValue("name", value); + } + + /// + /// Unique identifier of the organization with which the plug-in assembly is associated. + /// Display Name: organizationid + /// + [AttributeLogicalName("organizationid")] + [DisplayName("organizationid")] + public EntityReference? OrganizationId + { + get => GetAttributeValue("organizationid"); + set => SetAttributeValue("organizationid", value); + } + + /// + /// For internal use only. + /// Display Name: Record Overwrite Time + /// + [AttributeLogicalName("overwritetime")] + [DisplayName("Record Overwrite Time")] + public DateTime? OverwriteTime + { + get => GetAttributeValue("overwritetime"); + set => SetAttributeValue("overwritetime", value); + } + + /// + /// Unique identifier for Plugin Package associated with Plug-in Assembly. + /// Display Name: Package + /// + [AttributeLogicalName("packageid")] + [DisplayName("Package")] + public EntityReference? PackageId + { + get => GetAttributeValue("packageid"); + set => SetAttributeValue("packageid", value); + } + + /// + /// User Password + /// Display Name: User Password + /// + [AttributeLogicalName("password")] + [DisplayName("User Password")] + [MaxLength(256)] + public string Password + { + get => GetAttributeValue("password"); + set => SetAttributeValue("password", value); + } + + /// + /// File name of the plug-in assembly. Used when the source type is set to 1. + /// Display Name: Path + /// + [AttributeLogicalName("path")] + [DisplayName("Path")] + [MaxLength(256)] + public string Path + { + get => GetAttributeValue("path"); + set => SetAttributeValue("path", value); + } + + /// + /// Display Name: pluginassemblyid + /// + [AttributeLogicalName("pluginassemblyid")] + [DisplayName("pluginassemblyid")] + public Guid PluginAssemblyId + { + get => GetAttributeValue("pluginassemblyid"); + set => SetId("pluginassemblyid", value); + } + + /// + /// Unique identifier of the plug-in assembly. + /// Display Name: pluginassemblyidunique + /// + [AttributeLogicalName("pluginassemblyidunique")] + [DisplayName("pluginassemblyidunique")] + public Guid? PluginAssemblyIdUnique + { + get => GetAttributeValue("pluginassemblyidunique"); + set => SetAttributeValue("pluginassemblyidunique", value); + } + + /// + /// Public key token of the assembly. This value can be obtained from the assembly by using reflection. + /// Display Name: Public Key Token + /// + [AttributeLogicalName("publickeytoken")] + [DisplayName("Public Key Token")] + [MaxLength(32)] + public string PublicKeyToken + { + get => GetAttributeValue("publickeytoken"); + set => SetAttributeValue("publickeytoken", value); + } + + /// + /// Unique identifier of the associated solution. + /// Display Name: Solution + /// + [AttributeLogicalName("solutionid")] + [DisplayName("Solution")] + public Guid? SolutionId + { + get => GetAttributeValue("solutionid"); + set => SetAttributeValue("solutionid", value); + } + + /// + /// Hash of the source of the assembly. + /// Display Name: sourcehash + /// + [AttributeLogicalName("sourcehash")] + [DisplayName("sourcehash")] + [MaxLength(256)] + public string SourceHash + { + get => GetAttributeValue("sourcehash"); + set => SetAttributeValue("sourcehash", value); + } + + /// + /// Location of the assembly, for example 0=database, 1=on-disk. + /// Display Name: Source Type + /// + [AttributeLogicalName("sourcetype")] + [DisplayName("Source Type")] + public pluginassembly_sourcetype? SourceType + { + get => this.GetOptionSetValue("sourcetype"); + set => this.SetOptionSetValue("sourcetype", value); + } + + /// + /// For internal use only. + /// Display Name: Solution + /// + [AttributeLogicalName("supportingsolutionid")] + [DisplayName("Solution")] + public Guid? SupportingSolutionId + { + get => GetAttributeValue("supportingsolutionid"); + set => SetAttributeValue("supportingsolutionid", value); + } + + /// + /// Web Url + /// Display Name: Web Url + /// + [AttributeLogicalName("url")] + [DisplayName("Web Url")] + [MaxLength(2000)] + public string Url + { + get => GetAttributeValue("url"); + set => SetAttributeValue("url", value); + } + + /// + /// User Name + /// Display Name: User Name + /// + [AttributeLogicalName("username")] + [DisplayName("User Name")] + [MaxLength(256)] + public string UserName + { + get => GetAttributeValue("username"); + set => SetAttributeValue("username", value); + } + + /// + /// Version number of the assembly. The value can be obtained from the assembly through reflection. + /// Display Name: Version + /// + [AttributeLogicalName("version")] + [DisplayName("Version")] + [MaxLength(48)] + public string Version + { + get => GetAttributeValue("version"); + set => SetAttributeValue("version", value); + } + + /// + /// Display Name: versionnumber + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("versionnumber")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_pluginassembly_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_pluginassembly_createdonbehalfby + { + get => GetRelatedEntity("lk_pluginassembly_createdonbehalfby", null); + set => SetRelatedEntity("lk_pluginassembly_createdonbehalfby", null, value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_pluginassembly_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_pluginassembly_modifiedonbehalfby + { + get => GetRelatedEntity("lk_pluginassembly_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_pluginassembly_modifiedonbehalfby", null, value); + } + + [AttributeLogicalName("modifiedby")] + [RelationshipSchemaName("modifiedby_pluginassembly")] + [RelationshipMetadata("ManyToOne", "modifiedby", "systemuser", "systemuserid", "Referencing")] + public SystemUser modifiedby_pluginassembly + { + get => GetRelatedEntity("modifiedby_pluginassembly", null); + set => SetRelatedEntity("modifiedby_pluginassembly", null, value); + } + + [AttributeLogicalName("createdby")] + [RelationshipSchemaName("createdby_pluginassembly")] + [RelationshipMetadata("ManyToOne", "createdby", "systemuser", "systemuserid", "Referencing")] + public SystemUser createdby_pluginassembly + { + get => GetRelatedEntity("createdby_pluginassembly", null); + set => SetRelatedEntity("createdby_pluginassembly", null, value); + } + + [RelationshipSchemaName("pluginassembly_plugintype")] + [RelationshipMetadata("OneToMany", "pluginassemblyid", "plugintype", "pluginassemblyid", "Referenced")] + public IEnumerable pluginassembly_plugintype + { + get => GetRelatedEntities("pluginassembly_plugintype", null); + set => SetRelatedEntities("pluginassembly_plugintype", null, value); + } + + /// + /// Gets the logical column name for a property on the PluginAssembly entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the PluginAssembly with the specified columns. + /// + /// Organization service + /// Id of PluginAssembly to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved PluginAssembly + public static PluginAssembly Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/PluginType.cs b/Dataverse/Context/tables/PluginType.cs new file mode 100644 index 0000000..d746ae1 --- /dev/null +++ b/Dataverse/Context/tables/PluginType.cs @@ -0,0 +1,516 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// Type that inherits from the IPlugin interface and is contained within a plug-in assembly. +/// Display Name: Plug-in Type +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("plugintype")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class PluginType : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "plugintype"; + public const int EntityTypeCode = 4602; + + public PluginType() : base(EntityLogicalName) { } + public PluginType(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("name"); + + [AttributeLogicalName("plugintypeid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("plugintypeid", value); + } + } + + /// + /// Full path name of the plug-in assembly. + /// Display Name: Assembly Name + /// + [AttributeLogicalName("assemblyname")] + [DisplayName("Assembly Name")] + [MaxLength(100)] + public string AssemblyName + { + get => GetAttributeValue("assemblyname"); + set => SetAttributeValue("assemblyname", value); + } + + /// + /// For internal use only. + /// Display Name: Component State + /// + [AttributeLogicalName("componentstate")] + [DisplayName("Component State")] + public componentstate? ComponentState + { + get => this.GetOptionSetValue("componentstate"); + set => this.SetOptionSetValue("componentstate", value); + } + + /// + /// Unique identifier of the user who created the plug-in type. + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the plug-in type was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the plugintype. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// Culture code for the plug-in assembly. + /// Display Name: Culture + /// + [AttributeLogicalName("culture")] + [DisplayName("Culture")] + [MaxLength(32)] + public string Culture + { + get => GetAttributeValue("culture"); + set => SetAttributeValue("culture", value); + } + + /// + /// Customization level of the plug-in type. + /// Display Name: customizationlevel + /// + [AttributeLogicalName("customizationlevel")] + [DisplayName("customizationlevel")] + [Range(-255, 255)] + public int? CustomizationLevel + { + get => GetAttributeValue("customizationlevel"); + set => SetAttributeValue("customizationlevel", value); + } + + /// + /// Serialized Custom Activity Type information, including required arguments. For more information, see SandboxCustomActivityInfo. + /// Display Name: Custom Workflow Activity Info + /// + [AttributeLogicalName("customworkflowactivityinfo")] + [DisplayName("Custom Workflow Activity Info")] + [MaxLength(1048576)] + public string CustomWorkflowActivityInfo + { + get => GetAttributeValue("customworkflowactivityinfo"); + set => SetAttributeValue("customworkflowactivityinfo", value); + } + + /// + /// Description of the plug-in type. + /// Display Name: Description + /// + [AttributeLogicalName("description")] + [DisplayName("Description")] + [MaxLength(256)] + public string Description + { + get => GetAttributeValue("description"); + set => SetAttributeValue("description", value); + } + + /// + /// User friendly name for the plug-in. + /// Display Name: Display Name + /// + [AttributeLogicalName("friendlyname")] + [DisplayName("Display Name")] + [MaxLength(256)] + public string FriendlyName + { + get => GetAttributeValue("friendlyname"); + set => SetAttributeValue("friendlyname", value); + } + + /// + /// Display Name: ismanaged + /// + [AttributeLogicalName("ismanaged")] + [DisplayName("ismanaged")] + public bool? IsManaged + { + get => GetAttributeValue("ismanaged"); + set => SetAttributeValue("ismanaged", value); + } + + /// + /// Indicates if the plug-in is a custom activity for workflows. + /// Display Name: Is Workflow Activity + /// + [AttributeLogicalName("isworkflowactivity")] + [DisplayName("Is Workflow Activity")] + public bool? IsWorkflowActivity + { + get => GetAttributeValue("isworkflowactivity"); + set => SetAttributeValue("isworkflowactivity", value); + } + + /// + /// Major of the version number of the assembly for the plug-in type. + /// Display Name: Version major + /// + [AttributeLogicalName("major")] + [DisplayName("Version major")] + [Range(0, 65534)] + public int? Major + { + get => GetAttributeValue("major"); + set => SetAttributeValue("major", value); + } + + /// + /// Minor of the version number of the assembly for the plug-in type. + /// Display Name: Version minor + /// + [AttributeLogicalName("minor")] + [DisplayName("Version minor")] + [Range(0, 65534)] + public int? Minor + { + get => GetAttributeValue("minor"); + set => SetAttributeValue("minor", value); + } + + /// + /// Unique identifier of the user who last modified the plug-in type. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the plug-in type was last modified. + /// Display Name: Modified On + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified On")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who last modified the plugintype. + /// Display Name: Modified By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Modified By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// Name of the plug-in type. + /// Display Name: Name + /// + [AttributeLogicalName("name")] + [DisplayName("Name")] + [MaxLength(256)] + public string Name + { + get => GetAttributeValue("name"); + set => SetAttributeValue("name", value); + } + + /// + /// Unique identifier of the organization with which the plug-in type is associated. + /// Display Name: organizationid + /// + [AttributeLogicalName("organizationid")] + [DisplayName("organizationid")] + public EntityReference? OrganizationId + { + get => GetAttributeValue("organizationid"); + set => SetAttributeValue("organizationid", value); + } + + /// + /// For internal use only. + /// Display Name: Record Overwrite Time + /// + [AttributeLogicalName("overwritetime")] + [DisplayName("Record Overwrite Time")] + public DateTime? OverwriteTime + { + get => GetAttributeValue("overwritetime"); + set => SetAttributeValue("overwritetime", value); + } + + /// + /// Unique identifier of the plug-in assembly that contains this plug-in type. + /// Display Name: Plugin Assembly + /// + [AttributeLogicalName("pluginassemblyid")] + [DisplayName("Plugin Assembly")] + public EntityReference? PluginAssemblyId + { + get => GetAttributeValue("pluginassemblyid"); + set => SetAttributeValue("pluginassemblyid", value); + } + + /// + /// Uniquely identifies the plug-in type associated with a plugin package when exporting a solution. + /// Display Name: Plugin Type export key + /// + [AttributeLogicalName("plugintypeexportkey")] + [DisplayName("Plugin Type export key")] + [MaxLength(256)] + public string PluginTypeExportKey + { + get => GetAttributeValue("plugintypeexportkey"); + set => SetAttributeValue("plugintypeexportkey", value); + } + + /// + /// Display Name: Plug-in Type + /// + [AttributeLogicalName("plugintypeid")] + [DisplayName("Plug-in Type")] + public Guid PluginTypeId + { + get => GetAttributeValue("plugintypeid"); + set => SetId("plugintypeid", value); + } + + /// + /// Unique identifier of the plug-in type. + /// Display Name: plugintypeidunique + /// + [AttributeLogicalName("plugintypeidunique")] + [DisplayName("plugintypeidunique")] + public Guid? PluginTypeIdUnique + { + get => GetAttributeValue("plugintypeidunique"); + set => SetAttributeValue("plugintypeidunique", value); + } + + /// + /// Public key token of the assembly for the plug-in type. + /// Display Name: Public Key Token + /// + [AttributeLogicalName("publickeytoken")] + [DisplayName("Public Key Token")] + [MaxLength(32)] + public string PublicKeyToken + { + get => GetAttributeValue("publickeytoken"); + set => SetAttributeValue("publickeytoken", value); + } + + /// + /// Unique identifier of the associated solution. + /// Display Name: Solution + /// + [AttributeLogicalName("solutionid")] + [DisplayName("Solution")] + public Guid? SolutionId + { + get => GetAttributeValue("solutionid"); + set => SetAttributeValue("solutionid", value); + } + + /// + /// For internal use only. + /// Display Name: Solution + /// + [AttributeLogicalName("supportingsolutionid")] + [DisplayName("Solution")] + public Guid? SupportingSolutionId + { + get => GetAttributeValue("supportingsolutionid"); + set => SetAttributeValue("supportingsolutionid", value); + } + + /// + /// Fully qualified type name of the plug-in type. + /// Display Name: Type Name + /// + [AttributeLogicalName("typename")] + [DisplayName("Type Name")] + [MaxLength(256)] + public string TypeName + { + get => GetAttributeValue("typename"); + set => SetAttributeValue("typename", value); + } + + /// + /// Version number of the assembly for the plug-in type. + /// Display Name: Version + /// + [AttributeLogicalName("version")] + [DisplayName("Version")] + [MaxLength(48)] + public string Version + { + get => GetAttributeValue("version"); + set => SetAttributeValue("version", value); + } + + /// + /// Display Name: versionnumber + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("versionnumber")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + /// + /// Group name of workflow custom activity. + /// Display Name: Workflow Activity Group Name + /// + [AttributeLogicalName("workflowactivitygroupname")] + [DisplayName("Workflow Activity Group Name")] + [MaxLength(256)] + public string WorkflowActivityGroupName + { + get => GetAttributeValue("workflowactivitygroupname"); + set => SetAttributeValue("workflowactivitygroupname", value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_plugintype_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_plugintype_createdonbehalfby + { + get => GetRelatedEntity("lk_plugintype_createdonbehalfby", null); + set => SetRelatedEntity("lk_plugintype_createdonbehalfby", null, value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_plugintype_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_plugintype_modifiedonbehalfby + { + get => GetRelatedEntity("lk_plugintype_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_plugintype_modifiedonbehalfby", null, value); + } + + [AttributeLogicalName("pluginassemblyid")] + [RelationshipSchemaName("pluginassembly_plugintype")] + [RelationshipMetadata("ManyToOne", "pluginassemblyid", "pluginassembly", "pluginassemblyid", "Referencing")] + public PluginAssembly pluginassembly_plugintype + { + get => GetRelatedEntity("pluginassembly_plugintype", null); + set => SetRelatedEntity("pluginassembly_plugintype", null, value); + } + + [AttributeLogicalName("createdby")] + [RelationshipSchemaName("createdby_plugintype")] + [RelationshipMetadata("ManyToOne", "createdby", "systemuser", "systemuserid", "Referencing")] + public SystemUser createdby_plugintype + { + get => GetRelatedEntity("createdby_plugintype", null); + set => SetRelatedEntity("createdby_plugintype", null, value); + } + + [AttributeLogicalName("modifiedby")] + [RelationshipSchemaName("modifiedby_plugintype")] + [RelationshipMetadata("ManyToOne", "modifiedby", "systemuser", "systemuserid", "Referencing")] + public SystemUser modifiedby_plugintype + { + get => GetRelatedEntity("modifiedby_plugintype", null); + set => SetRelatedEntity("modifiedby_plugintype", null, value); + } + + [RelationshipSchemaName("plugintype_sdkmessageprocessingstep")] + [RelationshipMetadata("OneToMany", "plugintypeid", "sdkmessageprocessingstep", "eventhandler", "Referenced")] + public IEnumerable plugintype_sdkmessageprocessingstep + { + get => GetRelatedEntities("plugintype_sdkmessageprocessingstep", null); + set => SetRelatedEntities("plugintype_sdkmessageprocessingstep", null, value); + } + + [RelationshipSchemaName("plugintype_customapi")] + [RelationshipMetadata("OneToMany", "plugintypeid", "customapi", "plugintypeid", "Referenced")] + public IEnumerable plugintype_customapi + { + get => GetRelatedEntities("plugintype_customapi", null); + set => SetRelatedEntities("plugintype_customapi", null, value); + } + + [RelationshipSchemaName("plugintypeid_sdkmessageprocessingstep")] + [RelationshipMetadata("OneToMany", "plugintypeid", "sdkmessageprocessingstep", "plugintypeid", "Referenced")] + public IEnumerable plugintypeid_sdkmessageprocessingstep + { + get => GetRelatedEntities("plugintypeid_sdkmessageprocessingstep", null); + set => SetRelatedEntities("plugintypeid_sdkmessageprocessingstep", null, value); + } + + /// + /// Gets the logical column name for a property on the PluginType entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the PluginType with the specified columns. + /// + /// Organization service + /// Id of PluginType to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved PluginType + public static PluginType Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/Publisher.cs b/Dataverse/Context/tables/Publisher.cs new file mode 100644 index 0000000..aa943b6 --- /dev/null +++ b/Dataverse/Context/tables/Publisher.cs @@ -0,0 +1,890 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// A publisher of a CRM solution. +/// Display Name: Publisher +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("publisher")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class Publisher : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "publisher"; + public const int EntityTypeCode = 7101; + + public Publisher() : base(EntityLogicalName) { } + public Publisher(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("friendlyname"); + + [AttributeLogicalName("publisherid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("publisherid", value); + } + } + + /// + /// Unique identifier for address 1. + /// Display Name: Address 1: ID + /// + [AttributeLogicalName("address1_addressid")] + [DisplayName("Address 1: ID")] + public Guid? Address1_AddressId + { + get => GetAttributeValue("address1_addressid"); + set => SetAttributeValue("address1_addressid", value); + } + + /// + /// Type of address for address 1, such as billing, shipping, or primary address. + /// Display Name: Address 1: Address Type + /// + [AttributeLogicalName("address1_addresstypecode")] + [DisplayName("Address 1: Address Type")] + public publisher_address1_addresstypecode? Address1_AddressTypeCode + { + get => this.GetOptionSetValue("address1_addresstypecode"); + set => this.SetOptionSetValue("address1_addresstypecode", value); + } + + /// + /// City name for address 1. + /// Display Name: City + /// + [AttributeLogicalName("address1_city")] + [DisplayName("City")] + [MaxLength(80)] + public string Address1_City + { + get => GetAttributeValue("address1_city"); + set => SetAttributeValue("address1_city", value); + } + + /// + /// Country/region name for address 1. + /// Display Name: Country/Region + /// + [AttributeLogicalName("address1_country")] + [DisplayName("Country/Region")] + [MaxLength(80)] + public string Address1_Country + { + get => GetAttributeValue("address1_country"); + set => SetAttributeValue("address1_country", value); + } + + /// + /// County name for address 1. + /// Display Name: Address 1: County + /// + [AttributeLogicalName("address1_county")] + [DisplayName("Address 1: County")] + [MaxLength(50)] + public string Address1_County + { + get => GetAttributeValue("address1_county"); + set => SetAttributeValue("address1_county", value); + } + + /// + /// Fax number for address 1. + /// Display Name: Address 1: Fax + /// + [AttributeLogicalName("address1_fax")] + [DisplayName("Address 1: Fax")] + [MaxLength(50)] + public string Address1_Fax + { + get => GetAttributeValue("address1_fax"); + set => SetAttributeValue("address1_fax", value); + } + + /// + /// Latitude for address 1. + /// Display Name: Address 1: Latitude + /// + [AttributeLogicalName("address1_latitude")] + [DisplayName("Address 1: Latitude")] + public double? Address1_Latitude + { + get => GetAttributeValue("address1_latitude"); + set => SetAttributeValue("address1_latitude", value); + } + + /// + /// First line for entering address 1 information. + /// Display Name: Street 1 + /// + [AttributeLogicalName("address1_line1")] + [DisplayName("Street 1")] + [MaxLength(50)] + public string Address1_Line1 + { + get => GetAttributeValue("address1_line1"); + set => SetAttributeValue("address1_line1", value); + } + + /// + /// Second line for entering address 1 information. + /// Display Name: Street 2 + /// + [AttributeLogicalName("address1_line2")] + [DisplayName("Street 2")] + [MaxLength(50)] + public string Address1_Line2 + { + get => GetAttributeValue("address1_line2"); + set => SetAttributeValue("address1_line2", value); + } + + /// + /// Third line for entering address 1 information. + /// Display Name: Street 3 + /// + [AttributeLogicalName("address1_line3")] + [DisplayName("Street 3")] + [MaxLength(50)] + public string Address1_Line3 + { + get => GetAttributeValue("address1_line3"); + set => SetAttributeValue("address1_line3", value); + } + + /// + /// Longitude for address 1. + /// Display Name: Address 1: Longitude + /// + [AttributeLogicalName("address1_longitude")] + [DisplayName("Address 1: Longitude")] + public double? Address1_Longitude + { + get => GetAttributeValue("address1_longitude"); + set => SetAttributeValue("address1_longitude", value); + } + + /// + /// Name to enter for address 1. + /// Display Name: Address 1: Name + /// + [AttributeLogicalName("address1_name")] + [DisplayName("Address 1: Name")] + [MaxLength(100)] + public string Address1_Name + { + get => GetAttributeValue("address1_name"); + set => SetAttributeValue("address1_name", value); + } + + /// + /// ZIP Code or postal code for address 1. + /// Display Name: ZIP/Postal Code + /// + [AttributeLogicalName("address1_postalcode")] + [DisplayName("ZIP/Postal Code")] + [MaxLength(20)] + public string Address1_PostalCode + { + get => GetAttributeValue("address1_postalcode"); + set => SetAttributeValue("address1_postalcode", value); + } + + /// + /// Post office box number for address 1. + /// Display Name: Address 1: Post Office Box + /// + [AttributeLogicalName("address1_postofficebox")] + [DisplayName("Address 1: Post Office Box")] + [MaxLength(20)] + public string Address1_PostOfficeBox + { + get => GetAttributeValue("address1_postofficebox"); + set => SetAttributeValue("address1_postofficebox", value); + } + + /// + /// Method of shipment for address 1. + /// Display Name: Address 1: Shipping Method + /// + [AttributeLogicalName("address1_shippingmethodcode")] + [DisplayName("Address 1: Shipping Method")] + public publisher_address1_shippingmethodcode? Address1_ShippingMethodCode + { + get => this.GetOptionSetValue("address1_shippingmethodcode"); + set => this.SetOptionSetValue("address1_shippingmethodcode", value); + } + + /// + /// State or province for address 1. + /// Display Name: State/Province + /// + [AttributeLogicalName("address1_stateorprovince")] + [DisplayName("State/Province")] + [MaxLength(50)] + public string Address1_StateOrProvince + { + get => GetAttributeValue("address1_stateorprovince"); + set => SetAttributeValue("address1_stateorprovince", value); + } + + /// + /// First telephone number associated with address 1. + /// Display Name: Phone + /// + [AttributeLogicalName("address1_telephone1")] + [DisplayName("Phone")] + [MaxLength(50)] + public string Address1_Telephone1 + { + get => GetAttributeValue("address1_telephone1"); + set => SetAttributeValue("address1_telephone1", value); + } + + /// + /// Second telephone number associated with address 1. + /// Display Name: Address 1: Telephone 2 + /// + [AttributeLogicalName("address1_telephone2")] + [DisplayName("Address 1: Telephone 2")] + [MaxLength(50)] + public string Address1_Telephone2 + { + get => GetAttributeValue("address1_telephone2"); + set => SetAttributeValue("address1_telephone2", value); + } + + /// + /// Third telephone number associated with address 1. + /// Display Name: Address 1: Telephone 3 + /// + [AttributeLogicalName("address1_telephone3")] + [DisplayName("Address 1: Telephone 3")] + [MaxLength(50)] + public string Address1_Telephone3 + { + get => GetAttributeValue("address1_telephone3"); + set => SetAttributeValue("address1_telephone3", value); + } + + /// + /// United Parcel Service (UPS) zone for address 1. + /// Display Name: Address 1: UPS Zone + /// + [AttributeLogicalName("address1_upszone")] + [DisplayName("Address 1: UPS Zone")] + [MaxLength(4)] + public string Address1_UPSZone + { + get => GetAttributeValue("address1_upszone"); + set => SetAttributeValue("address1_upszone", value); + } + + /// + /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. + /// Display Name: Address 1: UTC Offset + /// + [AttributeLogicalName("address1_utcoffset")] + [DisplayName("Address 1: UTC Offset")] + [Range(-1500, 1500)] + public int? Address1_UTCOffset + { + get => GetAttributeValue("address1_utcoffset"); + set => SetAttributeValue("address1_utcoffset", value); + } + + /// + /// Unique identifier for address 2. + /// Display Name: Address 2: ID + /// + [AttributeLogicalName("address2_addressid")] + [DisplayName("Address 2: ID")] + public Guid? Address2_AddressId + { + get => GetAttributeValue("address2_addressid"); + set => SetAttributeValue("address2_addressid", value); + } + + /// + /// Type of address for address 2. such as billing, shipping, or primary address. + /// Display Name: Address 2: Address Type + /// + [AttributeLogicalName("address2_addresstypecode")] + [DisplayName("Address 2: Address Type")] + public publisher_address2_addresstypecode? Address2_AddressTypeCode + { + get => this.GetOptionSetValue("address2_addresstypecode"); + set => this.SetOptionSetValue("address2_addresstypecode", value); + } + + /// + /// City name for address 2. + /// Display Name: Address 2: City + /// + [AttributeLogicalName("address2_city")] + [DisplayName("Address 2: City")] + [MaxLength(80)] + public string Address2_City + { + get => GetAttributeValue("address2_city"); + set => SetAttributeValue("address2_city", value); + } + + /// + /// Country/region name for address 2. + /// Display Name: Address 2: Country/Region + /// + [AttributeLogicalName("address2_country")] + [DisplayName("Address 2: Country/Region")] + [MaxLength(80)] + public string Address2_Country + { + get => GetAttributeValue("address2_country"); + set => SetAttributeValue("address2_country", value); + } + + /// + /// County name for address 2. + /// Display Name: Address 2: County + /// + [AttributeLogicalName("address2_county")] + [DisplayName("Address 2: County")] + [MaxLength(50)] + public string Address2_County + { + get => GetAttributeValue("address2_county"); + set => SetAttributeValue("address2_county", value); + } + + /// + /// Fax number for address 2. + /// Display Name: Address 2: Fax + /// + [AttributeLogicalName("address2_fax")] + [DisplayName("Address 2: Fax")] + [MaxLength(50)] + public string Address2_Fax + { + get => GetAttributeValue("address2_fax"); + set => SetAttributeValue("address2_fax", value); + } + + /// + /// Latitude for address 2. + /// Display Name: Address 2: Latitude + /// + [AttributeLogicalName("address2_latitude")] + [DisplayName("Address 2: Latitude")] + public double? Address2_Latitude + { + get => GetAttributeValue("address2_latitude"); + set => SetAttributeValue("address2_latitude", value); + } + + /// + /// First line for entering address 2 information. + /// Display Name: Address 2: Street 1 + /// + [AttributeLogicalName("address2_line1")] + [DisplayName("Address 2: Street 1")] + [MaxLength(50)] + public string Address2_Line1 + { + get => GetAttributeValue("address2_line1"); + set => SetAttributeValue("address2_line1", value); + } + + /// + /// Second line for entering address 2 information. + /// Display Name: Address 2: Street 2 + /// + [AttributeLogicalName("address2_line2")] + [DisplayName("Address 2: Street 2")] + [MaxLength(50)] + public string Address2_Line2 + { + get => GetAttributeValue("address2_line2"); + set => SetAttributeValue("address2_line2", value); + } + + /// + /// Third line for entering address 2 information. + /// Display Name: Address 2: Street 3 + /// + [AttributeLogicalName("address2_line3")] + [DisplayName("Address 2: Street 3")] + [MaxLength(50)] + public string Address2_Line3 + { + get => GetAttributeValue("address2_line3"); + set => SetAttributeValue("address2_line3", value); + } + + /// + /// Longitude for address 2. + /// Display Name: Address 2: Longitude + /// + [AttributeLogicalName("address2_longitude")] + [DisplayName("Address 2: Longitude")] + public double? Address2_Longitude + { + get => GetAttributeValue("address2_longitude"); + set => SetAttributeValue("address2_longitude", value); + } + + /// + /// Name to enter for address 2. + /// Display Name: Address 2: Name + /// + [AttributeLogicalName("address2_name")] + [DisplayName("Address 2: Name")] + [MaxLength(100)] + public string Address2_Name + { + get => GetAttributeValue("address2_name"); + set => SetAttributeValue("address2_name", value); + } + + /// + /// ZIP Code or postal code for address 2. + /// Display Name: Address 2: ZIP/Postal Code + /// + [AttributeLogicalName("address2_postalcode")] + [DisplayName("Address 2: ZIP/Postal Code")] + [MaxLength(20)] + public string Address2_PostalCode + { + get => GetAttributeValue("address2_postalcode"); + set => SetAttributeValue("address2_postalcode", value); + } + + /// + /// Post office box number for address 2. + /// Display Name: Address 2: Post Office Box + /// + [AttributeLogicalName("address2_postofficebox")] + [DisplayName("Address 2: Post Office Box")] + [MaxLength(20)] + public string Address2_PostOfficeBox + { + get => GetAttributeValue("address2_postofficebox"); + set => SetAttributeValue("address2_postofficebox", value); + } + + /// + /// Method of shipment for address 2. + /// Display Name: Address 2: Shipping Method + /// + [AttributeLogicalName("address2_shippingmethodcode")] + [DisplayName("Address 2: Shipping Method")] + public publisher_address2_shippingmethodcode? Address2_ShippingMethodCode + { + get => this.GetOptionSetValue("address2_shippingmethodcode"); + set => this.SetOptionSetValue("address2_shippingmethodcode", value); + } + + /// + /// State or province for address 2. + /// Display Name: Address 2: State/Province + /// + [AttributeLogicalName("address2_stateorprovince")] + [DisplayName("Address 2: State/Province")] + [MaxLength(50)] + public string Address2_StateOrProvince + { + get => GetAttributeValue("address2_stateorprovince"); + set => SetAttributeValue("address2_stateorprovince", value); + } + + /// + /// First telephone number associated with address 2. + /// Display Name: Address 2: Telephone 1 + /// + [AttributeLogicalName("address2_telephone1")] + [DisplayName("Address 2: Telephone 1")] + [MaxLength(50)] + public string Address2_Telephone1 + { + get => GetAttributeValue("address2_telephone1"); + set => SetAttributeValue("address2_telephone1", value); + } + + /// + /// Second telephone number associated with address 2. + /// Display Name: Address 2: Telephone 2 + /// + [AttributeLogicalName("address2_telephone2")] + [DisplayName("Address 2: Telephone 2")] + [MaxLength(50)] + public string Address2_Telephone2 + { + get => GetAttributeValue("address2_telephone2"); + set => SetAttributeValue("address2_telephone2", value); + } + + /// + /// Third telephone number associated with address 2. + /// Display Name: Address 2: Telephone 3 + /// + [AttributeLogicalName("address2_telephone3")] + [DisplayName("Address 2: Telephone 3")] + [MaxLength(50)] + public string Address2_Telephone3 + { + get => GetAttributeValue("address2_telephone3"); + set => SetAttributeValue("address2_telephone3", value); + } + + /// + /// United Parcel Service (UPS) zone for address 2. + /// Display Name: Address 2: UPS Zone + /// + [AttributeLogicalName("address2_upszone")] + [DisplayName("Address 2: UPS Zone")] + [MaxLength(4)] + public string Address2_UPSZone + { + get => GetAttributeValue("address2_upszone"); + set => SetAttributeValue("address2_upszone", value); + } + + /// + /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. + /// Display Name: Address 2: UTC Offset + /// + [AttributeLogicalName("address2_utcoffset")] + [DisplayName("Address 2: UTC Offset")] + [Range(-1500, 1500)] + public int? Address2_UTCOffset + { + get => GetAttributeValue("address2_utcoffset"); + set => SetAttributeValue("address2_utcoffset", value); + } + + /// + /// Unique identifier of the user who created the publisher. + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the publisher was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the publisher. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// Default option value prefix used for newly created options for solutions associated with this publisher. + /// Display Name: Option Value Prefix + /// + [AttributeLogicalName("customizationoptionvalueprefix")] + [DisplayName("Option Value Prefix")] + [Range(10000, 99999)] + public int? CustomizationOptionValuePrefix + { + get => GetAttributeValue("customizationoptionvalueprefix"); + set => SetAttributeValue("customizationoptionvalueprefix", value); + } + + /// + /// Prefix used for new entities, attributes, and entity relationships for solutions associated with this publisher. + /// Display Name: Prefix + /// + [AttributeLogicalName("customizationprefix")] + [DisplayName("Prefix")] + [MaxLength(8)] + public string CustomizationPrefix + { + get => GetAttributeValue("customizationprefix"); + set => SetAttributeValue("customizationprefix", value); + } + + /// + /// Description of the solution. + /// Display Name: Description + /// + [AttributeLogicalName("description")] + [DisplayName("Description")] + [MaxLength(2000)] + public string Description + { + get => GetAttributeValue("description"); + set => SetAttributeValue("description", value); + } + + /// + /// Email address for the publisher. + /// Display Name: Email + /// + [AttributeLogicalName("emailaddress")] + [DisplayName("Email")] + [MaxLength(100)] + public string EMailAddress + { + get => GetAttributeValue("emailaddress"); + set => SetAttributeValue("emailaddress", value); + } + + /// + /// For internal use only. + /// Display Name: Entity Image Id + /// + [AttributeLogicalName("entityimageid")] + [DisplayName("Entity Image Id")] + public Guid? EntityImageId + { + get => GetAttributeValue("entityimageid"); + set => SetAttributeValue("entityimageid", value); + } + + /// + /// User display name for this publisher. + /// Display Name: Display Name + /// + [AttributeLogicalName("friendlyname")] + [DisplayName("Display Name")] + [MaxLength(256)] + public string FriendlyName + { + get => GetAttributeValue("friendlyname"); + set => SetAttributeValue("friendlyname", value); + } + + /// + /// Indicates whether the publisher was created as part of a managed solution installation. + /// Display Name: Is Read-Only Publisher + /// + [AttributeLogicalName("isreadonly")] + [DisplayName("Is Read-Only Publisher")] + public bool? IsReadonly + { + get => GetAttributeValue("isreadonly"); + set => SetAttributeValue("isreadonly", value); + } + + /// + /// Unique identifier of the user who last modified the publisher. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the publisher was last modified. + /// Display Name: Modified On + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified On")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who modified the publisher. + /// Display Name: Modified By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Modified By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// Unique identifier of the organization associated with the publisher. + /// Display Name: Organization + /// + [AttributeLogicalName("organizationid")] + [DisplayName("Organization")] + public EntityReference? OrganizationId + { + get => GetAttributeValue("organizationid"); + set => SetAttributeValue("organizationid", value); + } + + /// + /// Default locale of the publisher in Microsoft Pinpoint. + /// Display Name: pinpointpublisherdefaultlocale + /// + [AttributeLogicalName("pinpointpublisherdefaultlocale")] + [DisplayName("pinpointpublisherdefaultlocale")] + [MaxLength(16)] + public string PinpointPublisherDefaultLocale + { + get => GetAttributeValue("pinpointpublisherdefaultlocale"); + set => SetAttributeValue("pinpointpublisherdefaultlocale", value); + } + + /// + /// Identifier of the publisher in Microsoft Pinpoint. + /// Display Name: pinpointpublisherid + /// + [AttributeLogicalName("pinpointpublisherid")] + [DisplayName("pinpointpublisherid")] + public long? PinpointPublisherId + { + get => GetAttributeValue("pinpointpublisherid"); + set => SetAttributeValue("pinpointpublisherid", value); + } + + /// + /// Display Name: Publisher Identifier + /// + [AttributeLogicalName("publisherid")] + [DisplayName("Publisher Identifier")] + public Guid PublisherId + { + get => GetAttributeValue("publisherid"); + set => SetId("publisherid", value); + } + + /// + /// URL for the supporting website of this publisher. + /// Display Name: Website + /// + [AttributeLogicalName("supportingwebsiteurl")] + [DisplayName("Website")] + [MaxLength(200)] + public string SupportingWebsiteUrl + { + get => GetAttributeValue("supportingwebsiteurl"); + set => SetAttributeValue("supportingwebsiteurl", value); + } + + /// + /// The unique name of this publisher. + /// Display Name: Name + /// + [AttributeLogicalName("uniquename")] + [DisplayName("Name")] + [MaxLength(256)] + public string UniqueName + { + get => GetAttributeValue("uniquename"); + set => SetAttributeValue("uniquename", value); + } + + /// + /// Display Name: versionnumber + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("versionnumber")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + [AttributeLogicalName("createdby")] + [RelationshipSchemaName("lk_publisher_createdby")] + [RelationshipMetadata("ManyToOne", "createdby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_publisher_createdby + { + get => GetRelatedEntity("lk_publisher_createdby", null); + set => SetRelatedEntity("lk_publisher_createdby", null, value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_publisherbase_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_publisherbase_modifiedonbehalfby + { + get => GetRelatedEntity("lk_publisherbase_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_publisherbase_modifiedonbehalfby", null, value); + } + + [AttributeLogicalName("modifiedby")] + [RelationshipSchemaName("lk_publisher_modifiedby")] + [RelationshipMetadata("ManyToOne", "modifiedby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_publisher_modifiedby + { + get => GetRelatedEntity("lk_publisher_modifiedby", null); + set => SetRelatedEntity("lk_publisher_modifiedby", null, value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_publisherbase_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_publisherbase_createdonbehalfby + { + get => GetRelatedEntity("lk_publisherbase_createdonbehalfby", null); + set => SetRelatedEntity("lk_publisherbase_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("publisher_solution")] + [RelationshipMetadata("OneToMany", "publisherid", "solution", "publisherid", "Referenced")] + public IEnumerable publisher_solution + { + get => GetRelatedEntities("publisher_solution", null); + set => SetRelatedEntities("publisher_solution", null, value); + } + + /// + /// Gets the logical column name for a property on the Publisher entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the Publisher with the specified columns. + /// + /// Organization service + /// Id of Publisher to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved Publisher + public static Publisher Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/SdkMessage.cs b/Dataverse/Context/tables/SdkMessage.cs new file mode 100644 index 0000000..e368bcd --- /dev/null +++ b/Dataverse/Context/tables/SdkMessage.cs @@ -0,0 +1,490 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// Message that is supported by the SDK. +/// Display Name: Sdk Message +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("sdkmessage")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class SdkMessage : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "sdkmessage"; + public const int EntityTypeCode = 4606; + + public SdkMessage() : base(EntityLogicalName) { } + public SdkMessage(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("name"); + + [AttributeLogicalName("sdkmessageid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("sdkmessageid", value); + } + } + + /// + /// Information about whether the SDK message is automatically transacted. + /// Display Name: Auto Transact + /// + [AttributeLogicalName("autotransact")] + [DisplayName("Auto Transact")] + public bool? AutoTransact + { + get => GetAttributeValue("autotransact"); + set => SetAttributeValue("autotransact", value); + } + + /// + /// Identifies where a method will be exposed. 0 - Server, 1 - Client, 2 - both. + /// Display Name: Availability + /// + [AttributeLogicalName("availability")] + [DisplayName("Availability")] + [Range(-2147483648, 2147483647)] + public int? Availability + { + get => GetAttributeValue("availability"); + set => SetAttributeValue("availability", value); + } + + /// + /// If this is a categorized method, this is the name, otherwise None. + /// Display Name: Category Name + /// + [AttributeLogicalName("categoryname")] + [DisplayName("Category Name")] + [MaxLength(25)] + public string CategoryName + { + get => GetAttributeValue("categoryname"); + set => SetAttributeValue("categoryname", value); + } + + /// + /// For internal use only. + /// Display Name: Component State + /// + [AttributeLogicalName("componentstate")] + [DisplayName("Component State")] + public componentstate? ComponentState + { + get => this.GetOptionSetValue("componentstate"); + set => this.SetOptionSetValue("componentstate", value); + } + + /// + /// Unique identifier of the user who created the SDK message. + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the SDK message was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the sdkmessage. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// Customization level of the SDK message. + /// Display Name: customizationlevel + /// + [AttributeLogicalName("customizationlevel")] + [DisplayName("customizationlevel")] + [Range(-255, 255)] + public int? CustomizationLevel + { + get => GetAttributeValue("customizationlevel"); + set => SetAttributeValue("customizationlevel", value); + } + + /// + /// Name of the privilege that allows execution of the SDK message + /// Display Name: Execute Privilege Name + /// + [AttributeLogicalName("executeprivilegename")] + [DisplayName("Execute Privilege Name")] + [MaxLength(100)] + public string ExecutePrivilegeName + { + get => GetAttributeValue("executeprivilegename"); + set => SetAttributeValue("executeprivilegename", value); + } + + /// + /// Indicates whether the SDK message should have its requests expanded per primary entity defined in its filters. + /// Display Name: Expand + /// + [AttributeLogicalName("expand")] + [DisplayName("Expand")] + public bool? Expand + { + get => GetAttributeValue("expand"); + set => SetAttributeValue("expand", value); + } + + /// + /// Version in which the component is introduced. + /// Display Name: Introduced Version + /// + [AttributeLogicalName("introducedversion")] + [DisplayName("Introduced Version")] + [MaxLength(48)] + public string IntroducedVersion + { + get => GetAttributeValue("introducedversion"); + set => SetAttributeValue("introducedversion", value); + } + + /// + /// Information about whether the SDK message is active. + /// Display Name: Is Active + /// + [AttributeLogicalName("isactive")] + [DisplayName("Is Active")] + public bool? IsActive + { + get => GetAttributeValue("isactive"); + set => SetAttributeValue("isactive", value); + } + + /// + /// Information that specifies whether this component is managed. + /// Display Name: State + /// + [AttributeLogicalName("ismanaged")] + [DisplayName("State")] + public bool? IsManaged + { + get => GetAttributeValue("ismanaged"); + set => SetAttributeValue("ismanaged", value); + } + + /// + /// Indicates whether the SDK message is private. + /// Display Name: Is Private + /// + [AttributeLogicalName("isprivate")] + [DisplayName("Is Private")] + public bool? IsPrivate + { + get => GetAttributeValue("isprivate"); + set => SetAttributeValue("isprivate", value); + } + + /// + /// Identifies whether an SDK message will be ReadOnly or Read Write. false - ReadWrite, true - ReadOnly . + /// Display Name: Intent + /// + [AttributeLogicalName("isreadonly")] + [DisplayName("Intent")] + public bool? IsReadOnly + { + get => GetAttributeValue("isreadonly"); + set => SetAttributeValue("isreadonly", value); + } + + /// + /// For internal use only. + /// Display Name: Is Valid for Execute Async + /// + [AttributeLogicalName("isvalidforexecuteasync")] + [DisplayName("Is Valid for Execute Async")] + public bool? IsValidForExecuteAsync + { + get => GetAttributeValue("isvalidforexecuteasync"); + set => SetAttributeValue("isvalidforexecuteasync", value); + } + + /// + /// Unique identifier of the user who last modified the SDK message. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the SDK message was last modified. + /// Display Name: Modified On + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified On")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessage. + /// Display Name: Modified By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Modified By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// Name of the SDK message. + /// Display Name: Name + /// + [AttributeLogicalName("name")] + [DisplayName("Name")] + [MaxLength(256)] + public string Name + { + get => GetAttributeValue("name"); + set => SetAttributeValue("name", value); + } + + /// + /// Unique identifier of the organization with which the SDK message is associated. + /// Display Name: organizationid + /// + [AttributeLogicalName("organizationid")] + [DisplayName("organizationid")] + public EntityReference? OrganizationId + { + get => GetAttributeValue("organizationid"); + set => SetAttributeValue("organizationid", value); + } + + /// + /// For internal use only. + /// Display Name: Record Overwrite Time + /// + [AttributeLogicalName("overwritetime")] + [DisplayName("Record Overwrite Time")] + public DateTime? OverwriteTime + { + get => GetAttributeValue("overwritetime"); + set => SetAttributeValue("overwritetime", value); + } + + /// + /// Display Name: sdkmessageid + /// + [AttributeLogicalName("sdkmessageid")] + [DisplayName("sdkmessageid")] + public Guid SdkMessageId + { + get => GetAttributeValue("sdkmessageid"); + set => SetId("sdkmessageid", value); + } + + /// + /// Unique identifier of the SDK message. + /// Display Name: sdkmessageidunique + /// + [AttributeLogicalName("sdkmessageidunique")] + [DisplayName("sdkmessageidunique")] + public Guid? SdkMessageIdUnique + { + get => GetAttributeValue("sdkmessageidunique"); + set => SetAttributeValue("sdkmessageidunique", value); + } + + /// + /// Unique identifier of the associated solution. + /// Display Name: Solution + /// + [AttributeLogicalName("solutionid")] + [DisplayName("Solution")] + public Guid? SolutionId + { + get => GetAttributeValue("solutionid"); + set => SetAttributeValue("solutionid", value); + } + + /// + /// For internal use only. + /// Display Name: Solution + /// + [AttributeLogicalName("supportingsolutionid")] + [DisplayName("Solution")] + public Guid? SupportingSolutionId + { + get => GetAttributeValue("supportingsolutionid"); + set => SetAttributeValue("supportingsolutionid", value); + } + + /// + /// Indicates whether the SDK message is a template. + /// Display Name: Template + /// + [AttributeLogicalName("template")] + [DisplayName("Template")] + public bool? Template + { + get => GetAttributeValue("template"); + set => SetAttributeValue("template", value); + } + + /// + /// For internal use only. + /// Display Name: Throttle Settings + /// + [AttributeLogicalName("throttlesettings")] + [DisplayName("Throttle Settings")] + [MaxLength(512)] + public string ThrottleSettings + { + get => GetAttributeValue("throttlesettings"); + set => SetAttributeValue("throttlesettings", value); + } + + /// + /// Number that identifies a specific revision of the SDK message. + /// Display Name: versionnumber + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("versionnumber")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + /// + /// Whether or not the SDK message can be called from a workflow. + /// Display Name: WorkflowSdkStepEnabled + /// + [AttributeLogicalName("workflowsdkstepenabled")] + [DisplayName("WorkflowSdkStepEnabled")] + public bool? WorkflowSdkStepEnabled + { + get => GetAttributeValue("workflowsdkstepenabled"); + set => SetAttributeValue("workflowsdkstepenabled", value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_sdkmessage_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_sdkmessage_createdonbehalfby + { + get => GetRelatedEntity("lk_sdkmessage_createdonbehalfby", null); + set => SetRelatedEntity("lk_sdkmessage_createdonbehalfby", null, value); + } + + [AttributeLogicalName("createdby")] + [RelationshipSchemaName("createdby_sdkmessage")] + [RelationshipMetadata("ManyToOne", "createdby", "systemuser", "systemuserid", "Referencing")] + public SystemUser createdby_sdkmessage + { + get => GetRelatedEntity("createdby_sdkmessage", null); + set => SetRelatedEntity("createdby_sdkmessage", null, value); + } + + [AttributeLogicalName("modifiedby")] + [RelationshipSchemaName("modifiedby_sdkmessage")] + [RelationshipMetadata("ManyToOne", "modifiedby", "systemuser", "systemuserid", "Referencing")] + public SystemUser modifiedby_sdkmessage + { + get => GetRelatedEntity("modifiedby_sdkmessage", null); + set => SetRelatedEntity("modifiedby_sdkmessage", null, value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_sdkmessage_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_sdkmessage_modifiedonbehalfby + { + get => GetRelatedEntity("lk_sdkmessage_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_sdkmessage_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("sdkmessage_customapi")] + [RelationshipMetadata("OneToMany", "sdkmessageid", "customapi", "sdkmessageid", "Referenced")] + public IEnumerable sdkmessage_customapi + { + get => GetRelatedEntities("sdkmessage_customapi", null); + set => SetRelatedEntities("sdkmessage_customapi", null, value); + } + + [RelationshipSchemaName("sdkmessageid_sdkmessageprocessingstep")] + [RelationshipMetadata("OneToMany", "sdkmessageid", "sdkmessageprocessingstep", "sdkmessageid", "Referenced")] + public IEnumerable sdkmessageid_sdkmessageprocessingstep + { + get => GetRelatedEntities("sdkmessageid_sdkmessageprocessingstep", null); + set => SetRelatedEntities("sdkmessageid_sdkmessageprocessingstep", null, value); + } + + [RelationshipSchemaName("sdkmessageid_sdkmessagefilter")] + [RelationshipMetadata("OneToMany", "sdkmessageid", "sdkmessagefilter", "sdkmessageid", "Referenced")] + public IEnumerable sdkmessageid_sdkmessagefilter + { + get => GetRelatedEntities("sdkmessageid_sdkmessagefilter", null); + set => SetRelatedEntities("sdkmessageid_sdkmessagefilter", null, value); + } + + /// + /// Gets the logical column name for a property on the SdkMessage entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the SdkMessage with the specified columns. + /// + /// Organization service + /// Id of SdkMessage to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved SdkMessage + public static SdkMessage Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/SdkMessageFilter.cs b/Dataverse/Context/tables/SdkMessageFilter.cs new file mode 100644 index 0000000..bd44a9a --- /dev/null +++ b/Dataverse/Context/tables/SdkMessageFilter.cs @@ -0,0 +1,432 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// Filter that defines which SDK messages are valid for each type of entity. +/// Display Name: Sdk Message Filter +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("sdkmessagefilter")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class SdkMessageFilter : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "sdkmessagefilter"; + public const int EntityTypeCode = 4607; + + public SdkMessageFilter() : base(EntityLogicalName) { } + public SdkMessageFilter(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("name"); + + [AttributeLogicalName("sdkmessagefilterid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("sdkmessagefilterid", value); + } + } + + /// + /// Identifies where a method will be exposed. 0 - Server, 1 - Client, 2 - both. + /// Display Name: Availability + /// + [AttributeLogicalName("availability")] + [DisplayName("Availability")] + [Range(-2147483648, 2147483647)] + public int? Availability + { + get => GetAttributeValue("availability"); + set => SetAttributeValue("availability", value); + } + + /// + /// For internal use only. + /// Display Name: Component State + /// + [AttributeLogicalName("componentstate")] + [DisplayName("Component State")] + public componentstate? ComponentState + { + get => this.GetOptionSetValue("componentstate"); + set => this.SetOptionSetValue("componentstate", value); + } + + /// + /// Unique identifier of the user who created the SDK message filter. + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the SDK message filter was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the sdkmessagefilter. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// Customization level of the SDK message filter. + /// Display Name: customizationlevel + /// + [AttributeLogicalName("customizationlevel")] + [DisplayName("customizationlevel")] + [Range(-255, 255)] + public int? CustomizationLevel + { + get => GetAttributeValue("customizationlevel"); + set => SetAttributeValue("customizationlevel", value); + } + + /// + /// Version in which the component is introduced. + /// Display Name: Introduced Version + /// + [AttributeLogicalName("introducedversion")] + [DisplayName("Introduced Version")] + [MaxLength(48)] + public string IntroducedVersion + { + get => GetAttributeValue("introducedversion"); + set => SetAttributeValue("introducedversion", value); + } + + /// + /// Indicates whether a custom SDK message processing step is allowed. + /// Display Name: Custom Processing Step Allowed + /// + [AttributeLogicalName("iscustomprocessingstepallowed")] + [DisplayName("Custom Processing Step Allowed")] + public bool? IsCustomProcessingStepAllowed + { + get => GetAttributeValue("iscustomprocessingstepallowed"); + set => SetAttributeValue("iscustomprocessingstepallowed", value); + } + + /// + /// Information that specifies whether this component is managed. + /// Display Name: State + /// + [AttributeLogicalName("ismanaged")] + [DisplayName("State")] + public bool? IsManaged + { + get => GetAttributeValue("ismanaged"); + set => SetAttributeValue("ismanaged", value); + } + + /// + /// Indicates whether the filter should be visible. + /// Display Name: isvisible + /// + [AttributeLogicalName("isvisible")] + [DisplayName("isvisible")] + public bool? IsVisible + { + get => GetAttributeValue("isvisible"); + set => SetAttributeValue("isvisible", value); + } + + /// + /// Unique identifier of the user who last modified the SDK message filter. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the SDK message filter was last modified. + /// Display Name: Modified On + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified On")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessagefilter. + /// Display Name: Modified By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Modified By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// Name of the SDK message filter. + /// Display Name: Name + /// + [AttributeLogicalName("name")] + [DisplayName("Name")] + [MaxLength(256)] + public string Name + { + get => GetAttributeValue("name"); + set => SetAttributeValue("name", value); + } + + /// + /// Unique identifier of the organization with which the SDK message filter is associated. + /// Display Name: organizationid + /// + [AttributeLogicalName("organizationid")] + [DisplayName("organizationid")] + public EntityReference? OrganizationId + { + get => GetAttributeValue("organizationid"); + set => SetAttributeValue("organizationid", value); + } + + /// + /// For internal use only. + /// Display Name: Record Overwrite Time + /// + [AttributeLogicalName("overwritetime")] + [DisplayName("Record Overwrite Time")] + public DateTime? OverwriteTime + { + get => GetAttributeValue("overwritetime"); + set => SetAttributeValue("overwritetime", value); + } + + /// + /// Type of entity with which the SDK message filter is primarily associated. + /// Display Name: Primary Object Type Code + /// + [AttributeLogicalName("primaryobjecttypecode")] + [DisplayName("Primary Object Type Code")] + public string PrimaryObjectTypeCode + { + get => GetAttributeValue("primaryobjecttypecode"); + set => SetAttributeValue("primaryobjecttypecode", value); + } + + /// + /// For internal use only. + /// Display Name: restrictionlevel + /// + [AttributeLogicalName("restrictionlevel")] + [DisplayName("restrictionlevel")] + [Range(0, 255)] + public int? RestrictionLevel + { + get => GetAttributeValue("restrictionlevel"); + set => SetAttributeValue("restrictionlevel", value); + } + + /// + /// Display Name: sdkmessagefilterid + /// + [AttributeLogicalName("sdkmessagefilterid")] + [DisplayName("sdkmessagefilterid")] + public Guid SdkMessageFilterId + { + get => GetAttributeValue("sdkmessagefilterid"); + set => SetId("sdkmessagefilterid", value); + } + + /// + /// Unique identifier of the SDK message filter. + /// Display Name: sdkmessagefilteridunique + /// + [AttributeLogicalName("sdkmessagefilteridunique")] + [DisplayName("sdkmessagefilteridunique")] + public Guid? SdkMessageFilterIdUnique + { + get => GetAttributeValue("sdkmessagefilteridunique"); + set => SetAttributeValue("sdkmessagefilteridunique", value); + } + + /// + /// Unique identifier of the related SDK message. + /// Display Name: SDK Message ID + /// + [AttributeLogicalName("sdkmessageid")] + [DisplayName("SDK Message ID")] + public EntityReference? SdkMessageId + { + get => GetAttributeValue("sdkmessageid"); + set => SetAttributeValue("sdkmessageid", value); + } + + /// + /// Type of entity with which the SDK message filter is secondarily associated. + /// Display Name: Secondary Object Type Code + /// + [AttributeLogicalName("secondaryobjecttypecode")] + [DisplayName("Secondary Object Type Code")] + public sdkmessagefilter_secondaryobjecttypecode? SecondaryObjectTypeCode + { + get => this.GetOptionSetValue("secondaryobjecttypecode"); + set => this.SetOptionSetValue("secondaryobjecttypecode", value); + } + + /// + /// Unique identifier of the associated solution. + /// Display Name: Solution + /// + [AttributeLogicalName("solutionid")] + [DisplayName("Solution")] + public Guid? SolutionId + { + get => GetAttributeValue("solutionid"); + set => SetAttributeValue("solutionid", value); + } + + /// + /// For internal use only. + /// Display Name: Solution + /// + [AttributeLogicalName("supportingsolutionid")] + [DisplayName("Solution")] + public Guid? SupportingSolutionId + { + get => GetAttributeValue("supportingsolutionid"); + set => SetAttributeValue("supportingsolutionid", value); + } + + /// + /// Display Name: versionnumber + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("versionnumber")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + /// + /// Whether or not the SDK message can be called from a workflow. + /// Display Name: WorkflowSdkStepEnabled + /// + [AttributeLogicalName("workflowsdkstepenabled")] + [DisplayName("WorkflowSdkStepEnabled")] + public bool? WorkflowSdkStepEnabled + { + get => GetAttributeValue("workflowsdkstepenabled"); + set => SetAttributeValue("workflowsdkstepenabled", value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_sdkmessagefilter_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_sdkmessagefilter_modifiedonbehalfby + { + get => GetRelatedEntity("lk_sdkmessagefilter_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_sdkmessagefilter_modifiedonbehalfby", null, value); + } + + [AttributeLogicalName("createdby")] + [RelationshipSchemaName("createdby_sdkmessagefilter")] + [RelationshipMetadata("ManyToOne", "createdby", "systemuser", "systemuserid", "Referencing")] + public SystemUser createdby_sdkmessagefilter + { + get => GetRelatedEntity("createdby_sdkmessagefilter", null); + set => SetRelatedEntity("createdby_sdkmessagefilter", null, value); + } + + [AttributeLogicalName("modifiedby")] + [RelationshipSchemaName("modifiedby_sdkmessagefilter")] + [RelationshipMetadata("ManyToOne", "modifiedby", "systemuser", "systemuserid", "Referencing")] + public SystemUser modifiedby_sdkmessagefilter + { + get => GetRelatedEntity("modifiedby_sdkmessagefilter", null); + set => SetRelatedEntity("modifiedby_sdkmessagefilter", null, value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_sdkmessagefilter_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_sdkmessagefilter_createdonbehalfby + { + get => GetRelatedEntity("lk_sdkmessagefilter_createdonbehalfby", null); + set => SetRelatedEntity("lk_sdkmessagefilter_createdonbehalfby", null, value); + } + + [AttributeLogicalName("sdkmessageid")] + [RelationshipSchemaName("sdkmessageid_sdkmessagefilter")] + [RelationshipMetadata("ManyToOne", "sdkmessageid", "sdkmessage", "sdkmessageid", "Referencing")] + public SdkMessage sdkmessageid_sdkmessagefilter + { + get => GetRelatedEntity("sdkmessageid_sdkmessagefilter", null); + set => SetRelatedEntity("sdkmessageid_sdkmessagefilter", null, value); + } + + [RelationshipSchemaName("sdkmessagefilterid_sdkmessageprocessingstep")] + [RelationshipMetadata("OneToMany", "sdkmessagefilterid", "sdkmessageprocessingstep", "sdkmessagefilterid", "Referenced")] + public IEnumerable sdkmessagefilterid_sdkmessageprocessingstep + { + get => GetRelatedEntities("sdkmessagefilterid_sdkmessageprocessingstep", null); + set => SetRelatedEntities("sdkmessagefilterid_sdkmessageprocessingstep", null, value); + } + + /// + /// Gets the logical column name for a property on the SdkMessageFilter entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the SdkMessageFilter with the specified columns. + /// + /// Organization service + /// Id of SdkMessageFilter to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved SdkMessageFilter + public static SdkMessageFilter Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/SdkMessageProcessingStep.cs b/Dataverse/Context/tables/SdkMessageProcessingStep.cs new file mode 100644 index 0000000..166cc04 --- /dev/null +++ b/Dataverse/Context/tables/SdkMessageProcessingStep.cs @@ -0,0 +1,701 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// Stage in the execution pipeline that a plug-in is to execute. +/// Display Name: Sdk Message Processing Step +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("sdkmessageprocessingstep")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class SdkMessageProcessingStep : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "sdkmessageprocessingstep"; + public const int EntityTypeCode = 4608; + + public SdkMessageProcessingStep() : base(EntityLogicalName) { } + public SdkMessageProcessingStep(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("name"); + + [AttributeLogicalName("sdkmessageprocessingstepid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("sdkmessageprocessingstepid", value); + } + } + + /// + /// Indicates whether the asynchronous system job is automatically deleted on completion. + /// Display Name: Asynchronous Automatic Delete + /// + [AttributeLogicalName("asyncautodelete")] + [DisplayName("Asynchronous Automatic Delete")] + public bool? AsyncAutoDelete + { + get => GetAttributeValue("asyncautodelete"); + set => SetAttributeValue("asyncautodelete", value); + } + + /// + /// Display Name: canbebypassed + /// + [AttributeLogicalName("canbebypassed")] + [DisplayName("canbebypassed")] + public bool? CanBeBypassed + { + get => GetAttributeValue("canbebypassed"); + set => SetAttributeValue("canbebypassed", value); + } + + /// + /// Identifies whether a SDK Message Processing Step type will be ReadOnly or Read Write. false - ReadWrite, true - ReadOnly + /// Display Name: Intent + /// + [AttributeLogicalName("canusereadonlyconnection")] + [DisplayName("Intent")] + public bool? CanUseReadOnlyConnection + { + get => GetAttributeValue("canusereadonlyconnection"); + set => SetAttributeValue("canusereadonlyconnection", value); + } + + /// + /// For internal use only. + /// Display Name: Category + /// + [AttributeLogicalName("category")] + [DisplayName("Category")] + [MaxLength(100)] + public string Category + { + get => GetAttributeValue("category"); + set => SetAttributeValue("category", value); + } + + /// + /// For internal use only. + /// Display Name: Component State + /// + [AttributeLogicalName("componentstate")] + [DisplayName("Component State")] + public componentstate? ComponentState + { + get => this.GetOptionSetValue("componentstate"); + set => this.SetOptionSetValue("componentstate", value); + } + + /// + /// Step-specific configuration for the plug-in type. Passed to the plug-in constructor at run time. + /// Display Name: Configuration + /// + [AttributeLogicalName("configuration")] + [DisplayName("Configuration")] + [MaxLength(1073741823)] + public string Configuration + { + get => GetAttributeValue("configuration"); + set => SetAttributeValue("configuration", value); + } + + /// + /// Unique identifier of the user who created the SDK message processing step. + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the SDK message processing step was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the sdkmessageprocessingstep. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// Customization level of the SDK message processing step. + /// Display Name: customizationlevel + /// + [AttributeLogicalName("customizationlevel")] + [DisplayName("customizationlevel")] + [Range(-255, 255)] + public int? CustomizationLevel + { + get => GetAttributeValue("customizationlevel"); + set => SetAttributeValue("customizationlevel", value); + } + + /// + /// Description of the SDK message processing step. + /// Display Name: Description + /// + [AttributeLogicalName("description")] + [DisplayName("Description")] + [MaxLength(256)] + public string Description + { + get => GetAttributeValue("description"); + set => SetAttributeValue("description", value); + } + + /// + /// EnablePluginProfiler + /// Display Name: EnablePluginProfiler + /// + [AttributeLogicalName("enablepluginprofiler")] + [DisplayName("EnablePluginProfiler")] + public bool? EnablePluginProfiler + { + get => GetAttributeValue("enablepluginprofiler"); + set => SetAttributeValue("enablepluginprofiler", value); + } + + /// + /// Configuration for sending pipeline events to the Event Expander service. + /// Display Name: EventExpander + /// + [AttributeLogicalName("eventexpander")] + [DisplayName("EventExpander")] + [MaxLength(1073741823)] + public string EventExpander + { + get => GetAttributeValue("eventexpander"); + set => SetAttributeValue("eventexpander", value); + } + + /// + /// Unique identifier of the associated event handler. + /// Display Name: Event Handler + /// + [AttributeLogicalName("eventhandler")] + [DisplayName("Event Handler")] + public EntityReference? EventHandler + { + get => GetAttributeValue("eventhandler"); + set => SetAttributeValue("eventhandler", value); + } + + /// + /// Comma-separated list of attributes. If at least one of these attributes is modified, the plug-in should execute. + /// Display Name: Filtering Attributes + /// + [AttributeLogicalName("filteringattributes")] + [DisplayName("Filtering Attributes")] + [MaxLength(100000)] + public string FilteringAttributes + { + get => GetAttributeValue("filteringattributes"); + set => SetAttributeValue("filteringattributes", value); + } + + /// + /// Unique identifier for fxexpression associated with SdkMessageProcessingStep. + /// Display Name: fxexpressionid + /// + [AttributeLogicalName("fxexpressionid")] + [DisplayName("fxexpressionid")] + public EntityReference? FxExpressionId + { + get => GetAttributeValue("fxexpressionid"); + set => SetAttributeValue("fxexpressionid", value); + } + + /// + /// Unique identifier of the user to impersonate context when step is executed. + /// Display Name: Impersonating User + /// + [AttributeLogicalName("impersonatinguserid")] + [DisplayName("Impersonating User")] + public EntityReference? ImpersonatingUserId + { + get => GetAttributeValue("impersonatinguserid"); + set => SetAttributeValue("impersonatinguserid", value); + } + + /// + /// Version in which the form is introduced. + /// Display Name: Introduced Version + /// + [AttributeLogicalName("introducedversion")] + [DisplayName("Introduced Version")] + [MaxLength(48)] + public string IntroducedVersion + { + get => GetAttributeValue("introducedversion"); + set => SetAttributeValue("introducedversion", value); + } + + /// + /// Identifies if a plug-in should be executed from a parent pipeline, a child pipeline, or both. + /// Display Name: Invocation Source + /// + [AttributeLogicalName("invocationsource")] + [DisplayName("Invocation Source")] + public sdkmessageprocessingstep_invocationsource? InvocationSource + { + get => this.GetOptionSetValue("invocationsource"); + set => this.SetOptionSetValue("invocationsource", value); + } + + /// + /// Information that specifies whether this component can be customized. + /// Display Name: Customizable + /// + [AttributeLogicalName("iscustomizable")] + [DisplayName("Customizable")] + public BooleanManagedProperty IsCustomizable + { + get => GetAttributeValue("iscustomizable"); + set => SetAttributeValue("iscustomizable", value); + } + + /// + /// Information that specifies whether this component should be hidden. + /// Display Name: Hidden + /// + [AttributeLogicalName("ishidden")] + [DisplayName("Hidden")] + public BooleanManagedProperty IsHidden + { + get => GetAttributeValue("ishidden"); + set => SetAttributeValue("ishidden", value); + } + + /// + /// Information that specifies whether this component is managed. + /// Display Name: State + /// + [AttributeLogicalName("ismanaged")] + [DisplayName("State")] + public bool? IsManaged + { + get => GetAttributeValue("ismanaged"); + set => SetAttributeValue("ismanaged", value); + } + + /// + /// Run-time mode of execution, for example, synchronous or asynchronous. + /// Display Name: Execution Mode + /// + [AttributeLogicalName("mode")] + [DisplayName("Execution Mode")] + public sdkmessageprocessingstep_mode? Mode + { + get => this.GetOptionSetValue("mode"); + set => this.SetOptionSetValue("mode", value); + } + + /// + /// Unique identifier of the user who last modified the SDK message processing step. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the SDK message processing step was last modified. + /// Display Name: Modified On + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified On")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessageprocessingstep. + /// Display Name: Modified By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Modified By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// Name of SdkMessage processing step. + /// Display Name: Name + /// + [AttributeLogicalName("name")] + [DisplayName("Name")] + [MaxLength(256)] + public string Name + { + get => GetAttributeValue("name"); + set => SetAttributeValue("name", value); + } + + /// + /// Unique identifier of the organization with which the SDK message processing step is associated. + /// Display Name: organizationid + /// + [AttributeLogicalName("organizationid")] + [DisplayName("organizationid")] + public EntityReference? OrganizationId + { + get => GetAttributeValue("organizationid"); + set => SetAttributeValue("organizationid", value); + } + + /// + /// For internal use only. + /// Display Name: Record Overwrite Time + /// + [AttributeLogicalName("overwritetime")] + [DisplayName("Record Overwrite Time")] + public DateTime? OverwriteTime + { + get => GetAttributeValue("overwritetime"); + set => SetAttributeValue("overwritetime", value); + } + + /// + /// Unique identifier of the plug-in type associated with the step. + /// Display Name: Plug-In Type + /// + [AttributeLogicalName("plugintypeid")] + [DisplayName("Plug-In Type")] + public EntityReference? PluginTypeId + { + get => GetAttributeValue("plugintypeid"); + set => SetAttributeValue("plugintypeid", value); + } + + /// + /// Unique identifier for powerfxrule associated with SdkMessageProcessingStep. + /// Display Name: powerfxruleid + /// + [AttributeLogicalName("powerfxruleid")] + [DisplayName("powerfxruleid")] + public EntityReference? PowerfxRuleId + { + get => GetAttributeValue("powerfxruleid"); + set => SetAttributeValue("powerfxruleid", value); + } + + /// + /// Processing order within the stage. + /// Display Name: Execution Order + /// + [AttributeLogicalName("rank")] + [DisplayName("Execution Order")] + [Range(-2147483648, 2147483647)] + public int? Rank + { + get => GetAttributeValue("rank"); + set => SetAttributeValue("rank", value); + } + + /// + /// For internal use only. Holds miscellaneous properties related to runtime integration. + /// Display Name: Runtime Integration Properties + /// + [AttributeLogicalName("runtimeintegrationproperties")] + [DisplayName("Runtime Integration Properties")] + [MaxLength(512)] + public string RuntimeIntegrationProperties + { + get => GetAttributeValue("runtimeintegrationproperties"); + set => SetAttributeValue("runtimeintegrationproperties", value); + } + + /// + /// Unique identifier of the SDK message filter. + /// Display Name: SdkMessage Filter + /// + [AttributeLogicalName("sdkmessagefilterid")] + [DisplayName("SdkMessage Filter")] + public EntityReference? SdkMessageFilterId + { + get => GetAttributeValue("sdkmessagefilterid"); + set => SetAttributeValue("sdkmessagefilterid", value); + } + + /// + /// Unique identifier of the SDK message. + /// Display Name: SDK Message + /// + [AttributeLogicalName("sdkmessageid")] + [DisplayName("SDK Message")] + public EntityReference? SdkMessageId + { + get => GetAttributeValue("sdkmessageid"); + set => SetAttributeValue("sdkmessageid", value); + } + + /// + /// Display Name: sdkmessageprocessingstepid + /// + [AttributeLogicalName("sdkmessageprocessingstepid")] + [DisplayName("sdkmessageprocessingstepid")] + public Guid SdkMessageProcessingStepId + { + get => GetAttributeValue("sdkmessageprocessingstepid"); + set => SetId("sdkmessageprocessingstepid", value); + } + + /// + /// Unique identifier of the SDK message processing step. + /// Display Name: sdkmessageprocessingstepidunique + /// + [AttributeLogicalName("sdkmessageprocessingstepidunique")] + [DisplayName("sdkmessageprocessingstepidunique")] + public Guid? SdkMessageProcessingStepIdUnique + { + get => GetAttributeValue("sdkmessageprocessingstepidunique"); + set => SetAttributeValue("sdkmessageprocessingstepidunique", value); + } + + /// + /// Unique identifier of the Sdk message processing step secure configuration. + /// Display Name: SDK Message Processing Step Secure Configuration + /// + [AttributeLogicalName("sdkmessageprocessingstepsecureconfigid")] + [DisplayName("SDK Message Processing Step Secure Configuration")] + public EntityReference? SdkMessageProcessingStepSecureConfigId + { + get => GetAttributeValue("sdkmessageprocessingstepsecureconfigid"); + set => SetAttributeValue("sdkmessageprocessingstepsecureconfigid", value); + } + + /// + /// Unique identifier of the associated solution. + /// Display Name: Solution + /// + [AttributeLogicalName("solutionid")] + [DisplayName("Solution")] + public Guid? SolutionId + { + get => GetAttributeValue("solutionid"); + set => SetAttributeValue("solutionid", value); + } + + /// + /// Stage in the execution pipeline that the SDK message processing step is in. + /// Display Name: Execution Stage + /// + [AttributeLogicalName("stage")] + [DisplayName("Execution Stage")] + public sdkmessageprocessingstep_stage? Stage + { + get => this.GetOptionSetValue("stage"); + set => this.SetOptionSetValue("stage", value); + } + + /// + /// Status of the SDK message processing step. + /// Display Name: Status + /// + [AttributeLogicalName("statecode")] + [DisplayName("Status")] + public sdkmessageprocessingstep_statecode? StateCode + { + get => this.GetOptionSetValue("statecode"); + set => this.SetOptionSetValue("statecode", value); + } + + /// + /// Reason for the status of the SDK message processing step. + /// Display Name: Status Reason + /// + [AttributeLogicalName("statuscode")] + [DisplayName("Status Reason")] + public sdkmessageprocessingstep_statuscode? StatusCode + { + get => this.GetOptionSetValue("statuscode"); + set => this.SetOptionSetValue("statuscode", value); + } + + /// + /// Deployment that the SDK message processing step should be executed on; server, client, or both. + /// Display Name: Deployment + /// + [AttributeLogicalName("supporteddeployment")] + [DisplayName("Deployment")] + public sdkmessageprocessingstep_supporteddeployment? SupportedDeployment + { + get => this.GetOptionSetValue("supporteddeployment"); + set => this.SetOptionSetValue("supporteddeployment", value); + } + + /// + /// For internal use only. + /// Display Name: Solution + /// + [AttributeLogicalName("supportingsolutionid")] + [DisplayName("Solution")] + public Guid? SupportingSolutionId + { + get => GetAttributeValue("supportingsolutionid"); + set => SetAttributeValue("supportingsolutionid", value); + } + + /// + /// Number that identifies a specific revision of the SDK message processing step. + /// Display Name: versionnumber + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("versionnumber")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + [AttributeLogicalName("impersonatinguserid")] + [RelationshipSchemaName("impersonatinguserid_sdkmessageprocessingstep")] + [RelationshipMetadata("ManyToOne", "impersonatinguserid", "systemuser", "systemuserid", "Referencing")] + public SystemUser impersonatinguserid_sdkmessageprocessingstep + { + get => GetRelatedEntity("impersonatinguserid_sdkmessageprocessingstep", null); + set => SetRelatedEntity("impersonatinguserid_sdkmessageprocessingstep", null, value); + } + + [AttributeLogicalName("sdkmessagefilterid")] + [RelationshipSchemaName("sdkmessagefilterid_sdkmessageprocessingstep")] + [RelationshipMetadata("ManyToOne", "sdkmessagefilterid", "sdkmessagefilter", "sdkmessagefilterid", "Referencing")] + public SdkMessageFilter sdkmessagefilterid_sdkmessageprocessingstep + { + get => GetRelatedEntity("sdkmessagefilterid_sdkmessageprocessingstep", null); + set => SetRelatedEntity("sdkmessagefilterid_sdkmessageprocessingstep", null, value); + } + + [AttributeLogicalName("eventhandler")] + [RelationshipSchemaName("plugintype_sdkmessageprocessingstep")] + [RelationshipMetadata("ManyToOne", "eventhandler", "plugintype", "plugintypeid", "Referencing")] + public PluginType plugintype_sdkmessageprocessingstep + { + get => GetRelatedEntity("plugintype_sdkmessageprocessingstep", null); + set => SetRelatedEntity("plugintype_sdkmessageprocessingstep", null, value); + } + + [AttributeLogicalName("plugintypeid")] + [RelationshipSchemaName("plugintypeid_sdkmessageprocessingstep")] + [RelationshipMetadata("ManyToOne", "plugintypeid", "plugintype", "plugintypeid", "Referencing")] + public PluginType plugintypeid_sdkmessageprocessingstep + { + get => GetRelatedEntity("plugintypeid_sdkmessageprocessingstep", null); + set => SetRelatedEntity("plugintypeid_sdkmessageprocessingstep", null, value); + } + + [AttributeLogicalName("createdby")] + [RelationshipSchemaName("createdby_sdkmessageprocessingstep")] + [RelationshipMetadata("ManyToOne", "createdby", "systemuser", "systemuserid", "Referencing")] + public SystemUser createdby_sdkmessageprocessingstep + { + get => GetRelatedEntity("createdby_sdkmessageprocessingstep", null); + set => SetRelatedEntity("createdby_sdkmessageprocessingstep", null, value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_sdkmessageprocessingstep_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_sdkmessageprocessingstep_modifiedonbehalfby + { + get => GetRelatedEntity("lk_sdkmessageprocessingstep_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_sdkmessageprocessingstep_modifiedonbehalfby", null, value); + } + + [AttributeLogicalName("sdkmessageid")] + [RelationshipSchemaName("sdkmessageid_sdkmessageprocessingstep")] + [RelationshipMetadata("ManyToOne", "sdkmessageid", "sdkmessage", "sdkmessageid", "Referencing")] + public SdkMessage sdkmessageid_sdkmessageprocessingstep + { + get => GetRelatedEntity("sdkmessageid_sdkmessageprocessingstep", null); + set => SetRelatedEntity("sdkmessageid_sdkmessageprocessingstep", null, value); + } + + [AttributeLogicalName("modifiedby")] + [RelationshipSchemaName("modifiedby_sdkmessageprocessingstep")] + [RelationshipMetadata("ManyToOne", "modifiedby", "systemuser", "systemuserid", "Referencing")] + public SystemUser modifiedby_sdkmessageprocessingstep + { + get => GetRelatedEntity("modifiedby_sdkmessageprocessingstep", null); + set => SetRelatedEntity("modifiedby_sdkmessageprocessingstep", null, value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_sdkmessageprocessingstep_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_sdkmessageprocessingstep_createdonbehalfby + { + get => GetRelatedEntity("lk_sdkmessageprocessingstep_createdonbehalfby", null); + set => SetRelatedEntity("lk_sdkmessageprocessingstep_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("sdkmessageprocessingstepid_sdkmessageprocessingstepimage")] + [RelationshipMetadata("OneToMany", "sdkmessageprocessingstepid", "sdkmessageprocessingstepimage", "sdkmessageprocessingstepid", "Referenced")] + public IEnumerable sdkmessageprocessingstepid_sdkmessageprocessingstepimage + { + get => GetRelatedEntities("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null); + set => SetRelatedEntities("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null, value); + } + + /// + /// Gets the logical column name for a property on the SdkMessageProcessingStep entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the SdkMessageProcessingStep with the specified columns. + /// + /// Organization service + /// Id of SdkMessageProcessingStep to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved SdkMessageProcessingStep + public static SdkMessageProcessingStep Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/SdkMessageProcessingStepImage.cs b/Dataverse/Context/tables/SdkMessageProcessingStepImage.cs new file mode 100644 index 0000000..6c84acb --- /dev/null +++ b/Dataverse/Context/tables/SdkMessageProcessingStepImage.cs @@ -0,0 +1,427 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// Copy of an entity's attributes before or after the core system operation. +/// Display Name: Sdk Message Processing Step Image +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("sdkmessageprocessingstepimage")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class SdkMessageProcessingStepImage : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "sdkmessageprocessingstepimage"; + public const int EntityTypeCode = 4615; + + public SdkMessageProcessingStepImage() : base(EntityLogicalName) { } + public SdkMessageProcessingStepImage(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("name"); + + [AttributeLogicalName("sdkmessageprocessingstepimageid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("sdkmessageprocessingstepimageid", value); + } + } + + /// + /// Comma-separated list of attributes that are to be passed into the SDK message processing step image. + /// Display Name: Attributes + /// + [AttributeLogicalName("attributes")] + [DisplayName("Attributes")] + [MaxLength(100000)] + public string Attributes1 + { + get => GetAttributeValue("attributes"); + set => SetAttributeValue("attributes", value); + } + + /// + /// For internal use only. + /// Display Name: Component State + /// + [AttributeLogicalName("componentstate")] + [DisplayName("Component State")] + public componentstate? ComponentState + { + get => this.GetOptionSetValue("componentstate"); + set => this.SetOptionSetValue("componentstate", value); + } + + /// + /// Unique identifier of the user who created the SDK message processing step image. + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the SDK message processing step image was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the sdkmessageprocessingstepimage. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// Customization level of the SDK message processing step image. + /// Display Name: customizationlevel + /// + [AttributeLogicalName("customizationlevel")] + [DisplayName("customizationlevel")] + [Range(-255, 255)] + public int? CustomizationLevel + { + get => GetAttributeValue("customizationlevel"); + set => SetAttributeValue("customizationlevel", value); + } + + /// + /// Description of the SDK message processing step image. + /// Display Name: Description + /// + [AttributeLogicalName("description")] + [DisplayName("Description")] + [MaxLength(256)] + public string Description + { + get => GetAttributeValue("description"); + set => SetAttributeValue("description", value); + } + + /// + /// Key name used to access the pre-image or post-image property bags in a step. + /// Display Name: Entity Alias + /// + [AttributeLogicalName("entityalias")] + [DisplayName("Entity Alias")] + [MaxLength(256)] + public string EntityAlias + { + get => GetAttributeValue("entityalias"); + set => SetAttributeValue("entityalias", value); + } + + /// + /// Type of image requested. + /// Display Name: Image Type + /// + [AttributeLogicalName("imagetype")] + [DisplayName("Image Type")] + public sdkmessageprocessingstepimage_imagetype? ImageType + { + get => this.GetOptionSetValue("imagetype"); + set => this.SetOptionSetValue("imagetype", value); + } + + /// + /// Version in which the form is introduced. + /// Display Name: Introduced Version + /// + [AttributeLogicalName("introducedversion")] + [DisplayName("Introduced Version")] + [MaxLength(48)] + public string IntroducedVersion + { + get => GetAttributeValue("introducedversion"); + set => SetAttributeValue("introducedversion", value); + } + + /// + /// Information that specifies whether this component can be customized. + /// Display Name: Customizable + /// + [AttributeLogicalName("iscustomizable")] + [DisplayName("Customizable")] + public BooleanManagedProperty IsCustomizable + { + get => GetAttributeValue("iscustomizable"); + set => SetAttributeValue("iscustomizable", value); + } + + /// + /// Display Name: ismanaged + /// + [AttributeLogicalName("ismanaged")] + [DisplayName("ismanaged")] + public bool? IsManaged + { + get => GetAttributeValue("ismanaged"); + set => SetAttributeValue("ismanaged", value); + } + + /// + /// Name of the property on the Request message. + /// Display Name: Message Property Name + /// + [AttributeLogicalName("messagepropertyname")] + [DisplayName("Message Property Name")] + [MaxLength(256)] + public string MessagePropertyName + { + get => GetAttributeValue("messagepropertyname"); + set => SetAttributeValue("messagepropertyname", value); + } + + /// + /// Unique identifier of the user who last modified the SDK message processing step. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the SDK message processing step was last modified. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified By")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who last modified the sdkmessageprocessingstepimage. + /// Display Name: Modified By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Modified By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// Name of SdkMessage processing step image. + /// Display Name: Name + /// + [AttributeLogicalName("name")] + [DisplayName("Name")] + [MaxLength(256)] + public string Name + { + get => GetAttributeValue("name"); + set => SetAttributeValue("name", value); + } + + /// + /// Unique identifier of the organization with which the SDK message processing step is associated. + /// Display Name: organizationid + /// + [AttributeLogicalName("organizationid")] + [DisplayName("organizationid")] + public EntityReference? OrganizationId + { + get => GetAttributeValue("organizationid"); + set => SetAttributeValue("organizationid", value); + } + + /// + /// For internal use only. + /// Display Name: Record Overwrite Time + /// + [AttributeLogicalName("overwritetime")] + [DisplayName("Record Overwrite Time")] + public DateTime? OverwriteTime + { + get => GetAttributeValue("overwritetime"); + set => SetAttributeValue("overwritetime", value); + } + + /// + /// Name of the related entity. + /// Display Name: Related Attribute Name + /// + [AttributeLogicalName("relatedattributename")] + [DisplayName("Related Attribute Name")] + [MaxLength(256)] + public string RelatedAttributeName + { + get => GetAttributeValue("relatedattributename"); + set => SetAttributeValue("relatedattributename", value); + } + + /// + /// Unique identifier of the SDK message processing step. + /// Display Name: SDK Message Processing Step + /// + [AttributeLogicalName("sdkmessageprocessingstepid")] + [DisplayName("SDK Message Processing Step")] + public EntityReference? SdkMessageProcessingStepId + { + get => GetAttributeValue("sdkmessageprocessingstepid"); + set => SetAttributeValue("sdkmessageprocessingstepid", value); + } + + /// + /// Display Name: sdkmessageprocessingstepimageid + /// + [AttributeLogicalName("sdkmessageprocessingstepimageid")] + [DisplayName("sdkmessageprocessingstepimageid")] + public Guid SdkMessageProcessingStepImageId + { + get => GetAttributeValue("sdkmessageprocessingstepimageid"); + set => SetId("sdkmessageprocessingstepimageid", value); + } + + /// + /// Unique identifier of the SDK message processing step image. + /// Display Name: sdkmessageprocessingstepimageidunique + /// + [AttributeLogicalName("sdkmessageprocessingstepimageidunique")] + [DisplayName("sdkmessageprocessingstepimageidunique")] + public Guid? SdkMessageProcessingStepImageIdUnique + { + get => GetAttributeValue("sdkmessageprocessingstepimageidunique"); + set => SetAttributeValue("sdkmessageprocessingstepimageidunique", value); + } + + /// + /// Unique identifier of the associated solution. + /// Display Name: Solution + /// + [AttributeLogicalName("solutionid")] + [DisplayName("Solution")] + public Guid? SolutionId + { + get => GetAttributeValue("solutionid"); + set => SetAttributeValue("solutionid", value); + } + + /// + /// For internal use only. + /// Display Name: Solution + /// + [AttributeLogicalName("supportingsolutionid")] + [DisplayName("Solution")] + public Guid? SupportingSolutionId + { + get => GetAttributeValue("supportingsolutionid"); + set => SetAttributeValue("supportingsolutionid", value); + } + + /// + /// Number that identifies a specific revision of the step image. + /// Display Name: versionnumber + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("versionnumber")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + [AttributeLogicalName("sdkmessageprocessingstepid")] + [RelationshipSchemaName("sdkmessageprocessingstepid_sdkmessageprocessingstepimage")] + [RelationshipMetadata("ManyToOne", "sdkmessageprocessingstepid", "sdkmessageprocessingstep", "sdkmessageprocessingstepid", "Referencing")] + public SdkMessageProcessingStep sdkmessageprocessingstepid_sdkmessageprocessingstepimage + { + get => GetRelatedEntity("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null); + set => SetRelatedEntity("sdkmessageprocessingstepid_sdkmessageprocessingstepimage", null, value); + } + + [AttributeLogicalName("modifiedby")] + [RelationshipSchemaName("modifiedby_sdkmessageprocessingstepimage")] + [RelationshipMetadata("ManyToOne", "modifiedby", "systemuser", "systemuserid", "Referencing")] + public SystemUser modifiedby_sdkmessageprocessingstepimage + { + get => GetRelatedEntity("modifiedby_sdkmessageprocessingstepimage", null); + set => SetRelatedEntity("modifiedby_sdkmessageprocessingstepimage", null, value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_sdkmessageprocessingstepimage_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_sdkmessageprocessingstepimage_createdonbehalfby + { + get => GetRelatedEntity("lk_sdkmessageprocessingstepimage_createdonbehalfby", null); + set => SetRelatedEntity("lk_sdkmessageprocessingstepimage_createdonbehalfby", null, value); + } + + [AttributeLogicalName("createdby")] + [RelationshipSchemaName("createdby_sdkmessageprocessingstepimage")] + [RelationshipMetadata("ManyToOne", "createdby", "systemuser", "systemuserid", "Referencing")] + public SystemUser createdby_sdkmessageprocessingstepimage + { + get => GetRelatedEntity("createdby_sdkmessageprocessingstepimage", null); + set => SetRelatedEntity("createdby_sdkmessageprocessingstepimage", null, value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_sdkmessageprocessingstepimage_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_sdkmessageprocessingstepimage_modifiedonbehalfby + { + get => GetRelatedEntity("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null, value); + } + + /// + /// Gets the logical column name for a property on the SdkMessageProcessingStepImage entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the SdkMessageProcessingStepImage with the specified columns. + /// + /// Organization service + /// Id of SdkMessageProcessingStepImage to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved SdkMessageProcessingStepImage + public static SdkMessageProcessingStepImage Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/Solution.cs b/Dataverse/Context/tables/Solution.cs new file mode 100644 index 0000000..c0c5e21 --- /dev/null +++ b/Dataverse/Context/tables/Solution.cs @@ -0,0 +1,566 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// A solution which contains CRM customizations. +/// Display Name: Solution +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("solution")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class Solution : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "solution"; + public const int EntityTypeCode = 7100; + + public Solution() : base(EntityLogicalName) { } + public Solution(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("friendlyname"); + + [AttributeLogicalName("solutionid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("solutionid", value); + } + } + + /// + /// A link to an optional configuration page for this solution. + /// Display Name: Configuration Page + /// + [AttributeLogicalName("configurationpageid")] + [DisplayName("Configuration Page")] + public EntityReference? ConfigurationPageId + { + get => GetAttributeValue("configurationpageid"); + set => SetAttributeValue("configurationpageid", value); + } + + /// + /// Unique identifier of the user who created the solution. + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the solution was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the solution. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// Description of the solution. + /// Display Name: Description + /// + [AttributeLogicalName("description")] + [DisplayName("Description")] + [MaxLength(2000)] + public string Description + { + get => GetAttributeValue("description"); + set => SetAttributeValue("description", value); + } + + /// + /// Indicates if solution is enabled for source control integration + /// Display Name: Enabled for Source Control Integration + /// + [AttributeLogicalName("enabledforsourcecontrolintegration")] + [DisplayName("Enabled for Source Control Integration")] + public bool? EnabledForSourceControlIntegration + { + get => GetAttributeValue("enabledforsourcecontrolintegration"); + set => SetAttributeValue("enabledforsourcecontrolintegration", value); + } + + /// + /// File Id for the blob url used for file storage. + /// Display Name: File Id + /// + [AttributeLogicalName("fileid")] + [DisplayName("File Id")] + public byte[] FileId + { + get => GetAttributeValue("fileid"); + set => SetAttributeValue("fileid", value); + } + + /// + /// User display name for the solution. + /// Display Name: Display Name + /// + [AttributeLogicalName("friendlyname")] + [DisplayName("Display Name")] + [MaxLength(256)] + public string FriendlyName + { + get => GetAttributeValue("friendlyname"); + set => SetAttributeValue("friendlyname", value); + } + + /// + /// Date and time when the solution was installed/upgraded. + /// Display Name: Installed On + /// + [AttributeLogicalName("installedon")] + [DisplayName("Installed On")] + public DateTime? InstalledOn + { + get => GetAttributeValue("installedon"); + set => SetAttributeValue("installedon", value); + } + + /// + /// Information about whether the solution is api managed. + /// Display Name: Is Api Managed Solution + /// + [AttributeLogicalName("isapimanaged")] + [DisplayName("Is Api Managed Solution")] + public bool? IsApiManaged + { + get => GetAttributeValue("isapimanaged"); + set => SetAttributeValue("isapimanaged", value); + } + + /// + /// Indicates whether the solution is internal or not. + /// Display Name: Is internal solution + /// + [AttributeLogicalName("isinternal")] + [DisplayName("Is internal solution")] + public bool? IsInternal + { + get => GetAttributeValue("isinternal"); + set => SetAttributeValue("isinternal", value); + } + + /// + /// Indicates whether the solution is managed or unmanaged. + /// Display Name: Package Type + /// + [AttributeLogicalName("ismanaged")] + [DisplayName("Package Type")] + public bool? IsManaged + { + get => GetAttributeValue("ismanaged"); + set => SetAttributeValue("ismanaged", value); + } + + /// + /// Indicates whether the solution is visible outside of the platform. + /// Display Name: Is Visible Outside Platform + /// + [AttributeLogicalName("isvisible")] + [DisplayName("Is Visible Outside Platform")] + public bool? IsVisible + { + get => GetAttributeValue("isvisible"); + set => SetAttributeValue("isvisible", value); + } + + /// + /// Unique identifier of the user who last modified the solution. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the solution was last modified. + /// Display Name: Modified On + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified On")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who modified the solution. + /// Display Name: Modified By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Modified By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// Unique identifier of the organization associated with the solution. + /// Display Name: Organization + /// + [AttributeLogicalName("organizationid")] + [DisplayName("Organization")] + public EntityReference? OrganizationId + { + get => GetAttributeValue("organizationid"); + set => SetAttributeValue("organizationid", value); + } + + /// + /// Unique identifier of the parent solution. Should only be non-null if this solution is a patch. + /// Display Name: Parent Solution + /// + [AttributeLogicalName("parentsolutionid")] + [DisplayName("Parent Solution")] + public EntityReference? ParentSolutionId + { + get => GetAttributeValue("parentsolutionid"); + set => SetAttributeValue("parentsolutionid", value); + } + + /// + /// Display Name: pinpointassetid + /// + [AttributeLogicalName("pinpointassetid")] + [DisplayName("pinpointassetid")] + [MaxLength(255)] + public string PinpointAssetId + { + get => GetAttributeValue("pinpointassetid"); + set => SetAttributeValue("pinpointassetid", value); + } + + /// + /// Identifier of the publisher of this solution in Microsoft Pinpoint. + /// Display Name: pinpointpublisherid + /// + [AttributeLogicalName("pinpointpublisherid")] + [DisplayName("pinpointpublisherid")] + public long? PinpointPublisherId + { + get => GetAttributeValue("pinpointpublisherid"); + set => SetAttributeValue("pinpointpublisherid", value); + } + + /// + /// Default locale of the solution in Microsoft Pinpoint. + /// Display Name: pinpointsolutiondefaultlocale + /// + [AttributeLogicalName("pinpointsolutiondefaultlocale")] + [DisplayName("pinpointsolutiondefaultlocale")] + [MaxLength(16)] + public string PinpointSolutionDefaultLocale + { + get => GetAttributeValue("pinpointsolutiondefaultlocale"); + set => SetAttributeValue("pinpointsolutiondefaultlocale", value); + } + + /// + /// Identifier of the solution in Microsoft Pinpoint. + /// Display Name: pinpointsolutionid + /// + [AttributeLogicalName("pinpointsolutionid")] + [DisplayName("pinpointsolutionid")] + public long? PinpointSolutionId + { + get => GetAttributeValue("pinpointsolutionid"); + set => SetAttributeValue("pinpointsolutionid", value); + } + + /// + /// Unique identifier of the publisher. + /// Display Name: Publisher + /// + [AttributeLogicalName("publisherid")] + [DisplayName("Publisher")] + public EntityReference? PublisherId + { + get => GetAttributeValue("publisherid"); + set => SetAttributeValue("publisherid", value); + } + + /// + /// Display Name: Solution Identifier + /// + [AttributeLogicalName("solutionid")] + [DisplayName("Solution Identifier")] + public Guid SolutionId + { + get => GetAttributeValue("solutionid"); + set => SetId("solutionid", value); + } + + /// + /// Solution package source organization version + /// Display Name: Solution Package Version + /// + [AttributeLogicalName("solutionpackageversion")] + [DisplayName("Solution Package Version")] + [MaxLength(256)] + public string SolutionPackageVersion + { + get => GetAttributeValue("solutionpackageversion"); + set => SetAttributeValue("solutionpackageversion", value); + } + + /// + /// Solution Type + /// Display Name: Solution Type + /// + [AttributeLogicalName("solutiontype")] + [DisplayName("Solution Type")] + public solution_solutiontype? SolutionType + { + get => this.GetOptionSetValue("solutiontype"); + set => this.SetOptionSetValue("solutiontype", value); + } + + /// + /// Indicates the current status of source control integration + /// Display Name: Source Control Sync Status + /// + [AttributeLogicalName("sourcecontrolsyncstatus")] + [DisplayName("Source Control Sync Status")] + public solution_sourcecontrolsyncstatus? SourceControlSyncStatus + { + get => this.GetOptionSetValue("sourcecontrolsyncstatus"); + set => this.SetOptionSetValue("sourcecontrolsyncstatus", value); + } + + /// + /// The template suffix of this solution + /// Display Name: Suffix + /// + [AttributeLogicalName("templatesuffix")] + [DisplayName("Suffix")] + [MaxLength(65)] + public string TemplateSuffix + { + get => GetAttributeValue("templatesuffix"); + set => SetAttributeValue("templatesuffix", value); + } + + /// + /// thumbprint of the solution signature + /// Display Name: Thumbprint + /// + [AttributeLogicalName("thumbprint")] + [DisplayName("Thumbprint")] + [MaxLength(65)] + public string Thumbprint + { + get => GetAttributeValue("thumbprint"); + set => SetAttributeValue("thumbprint", value); + } + + /// + /// The unique name of this solution + /// Display Name: Name + /// + [AttributeLogicalName("uniquename")] + [DisplayName("Name")] + [MaxLength(65)] + public string UniqueName + { + get => GetAttributeValue("uniquename"); + set => SetAttributeValue("uniquename", value); + } + + /// + /// Date and time when the solution was updated. + /// Display Name: Updated On + /// + [AttributeLogicalName("updatedon")] + [DisplayName("Updated On")] + public DateTime? UpdatedOn + { + get => GetAttributeValue("updatedon"); + set => SetAttributeValue("updatedon", value); + } + + /// + /// Contains component info for the solution upgrade operation + /// Display Name: upgradeinfo + /// + [AttributeLogicalName("upgradeinfo")] + [DisplayName("upgradeinfo")] + [MaxLength(1073741823)] + public string UpgradeInfo + { + get => GetAttributeValue("upgradeinfo"); + set => SetAttributeValue("upgradeinfo", value); + } + + /// + /// Solution version, used to identify a solution for upgrades and hotfixes. + /// Display Name: Version + /// + [AttributeLogicalName("version")] + [DisplayName("Version")] + [MaxLength(256)] + public string Version + { + get => GetAttributeValue("version"); + set => SetAttributeValue("version", value); + } + + /// + /// Display Name: versionnumber + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("versionnumber")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + [AttributeLogicalName("publisherid")] + [RelationshipSchemaName("publisher_solution")] + [RelationshipMetadata("ManyToOne", "publisherid", "publisher", "publisherid", "Referencing")] + public Publisher publisher_solution + { + get => GetRelatedEntity("publisher_solution", null); + set => SetRelatedEntity("publisher_solution", null, value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_solutionbase_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_solutionbase_createdonbehalfby + { + get => GetRelatedEntity("lk_solutionbase_createdonbehalfby", null); + set => SetRelatedEntity("lk_solutionbase_createdonbehalfby", null, value); + } + + [AttributeLogicalName("configurationpageid")] + [RelationshipSchemaName("solution_configuration_webresource")] + [RelationshipMetadata("ManyToOne", "configurationpageid", "webresource", "webresourceid", "Referencing")] + public WebResource solution_configuration_webresource + { + get => GetRelatedEntity("solution_configuration_webresource", null); + set => SetRelatedEntity("solution_configuration_webresource", null, value); + } + + [AttributeLogicalName("parentsolutionid")] + [RelationshipSchemaName("solution_parent_solution")] + [RelationshipMetadata("ManyToOne", "parentsolutionid", "solution", "solutionid", "Referencing")] + public Solution solution_parent_solution + { + get => GetRelatedEntity("solution_parent_solution", null); + set => SetRelatedEntity("solution_parent_solution", null, value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_solutionbase_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_solutionbase_modifiedonbehalfby + { + get => GetRelatedEntity("lk_solutionbase_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_solutionbase_modifiedonbehalfby", null, value); + } + + [AttributeLogicalName("createdby")] + [RelationshipSchemaName("lk_solution_createdby")] + [RelationshipMetadata("ManyToOne", "createdby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_solution_createdby + { + get => GetRelatedEntity("lk_solution_createdby", null); + set => SetRelatedEntity("lk_solution_createdby", null, value); + } + + [AttributeLogicalName("modifiedby")] + [RelationshipSchemaName("lk_solution_modifiedby")] + [RelationshipMetadata("ManyToOne", "modifiedby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_solution_modifiedby + { + get => GetRelatedEntity("lk_solution_modifiedby", null); + set => SetRelatedEntity("lk_solution_modifiedby", null, value); + } + + [RelationshipSchemaName("solution_base_dependencynode")] + [RelationshipMetadata("OneToMany", "solutionid", "dependencynode", "basesolutionid", "Referenced")] + public IEnumerable solution_base_dependencynode + { + get => GetRelatedEntities("solution_base_dependencynode", null); + set => SetRelatedEntities("solution_base_dependencynode", null, value); + } + + [RelationshipSchemaName("solution_top_dependencynode")] + [RelationshipMetadata("OneToMany", "solutionid", "dependencynode", "topsolutionid", "Referenced")] + public IEnumerable solution_top_dependencynode + { + get => GetRelatedEntities("solution_top_dependencynode", null); + set => SetRelatedEntities("solution_top_dependencynode", null, value); + } + + [RelationshipSchemaName("solution_solutioncomponent")] + [RelationshipMetadata("OneToMany", "solutionid", "solutioncomponent", "solutionid", "Referenced")] + public IEnumerable solution_solutioncomponent + { + get => GetRelatedEntities("solution_solutioncomponent", null); + set => SetRelatedEntities("solution_solutioncomponent", null, value); + } + + /// + /// Gets the logical column name for a property on the Solution entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the Solution with the specified columns. + /// + /// Organization service + /// Id of Solution to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved Solution + public static Solution Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/SolutionComponent.cs b/Dataverse/Context/tables/SolutionComponent.cs new file mode 100644 index 0000000..1fbc5c9 --- /dev/null +++ b/Dataverse/Context/tables/SolutionComponent.cs @@ -0,0 +1,266 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// A component of a CRM solution. +/// Display Name: Solution Component +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("solutioncomponent")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class SolutionComponent : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "solutioncomponent"; + public const int EntityTypeCode = 7103; + + public SolutionComponent() : base(EntityLogicalName) { } + public SolutionComponent(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay(""); + + [AttributeLogicalName("solutioncomponentid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("solutioncomponentid", value); + } + } + + /// + /// The object type code of the component. + /// Display Name: Object Type Code + /// + [AttributeLogicalName("componenttype")] + [DisplayName("Object Type Code")] + public componenttype? ComponentType + { + get => this.GetOptionSetValue("componenttype"); + set => this.SetOptionSetValue("componenttype", value); + } + + /// + /// Unique identifier of the user who created the solution + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the solution was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the solution. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// Indicates whether this component is metadata or data. + /// Display Name: Is this component metadata + /// + [AttributeLogicalName("ismetadata")] + [DisplayName("Is this component metadata")] + public bool? IsMetadata + { + get => GetAttributeValue("ismetadata"); + set => SetAttributeValue("ismetadata", value); + } + + /// + /// Unique identifier of the user who last modified the solution. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the solution was last modified. + /// Display Name: Modified On + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified On")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who modified the solution. + /// Display Name: Modified By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Modified By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// Unique identifier of the object with which the component is associated. + /// Display Name: Regarding + /// + [AttributeLogicalName("objectid")] + [DisplayName("Regarding")] + public Guid? ObjectId + { + get => GetAttributeValue("objectid"); + set => SetAttributeValue("objectid", value); + } + + /// + /// Indicates the include behavior of the root component. + /// Display Name: Root Component Behavior + /// + [AttributeLogicalName("rootcomponentbehavior")] + [DisplayName("Root Component Behavior")] + public solutioncomponent_rootcomponentbehavior? RootComponentBehavior + { + get => this.GetOptionSetValue("rootcomponentbehavior"); + set => this.SetOptionSetValue("rootcomponentbehavior", value); + } + + /// + /// The parent ID of the subcomponent, which will be a root + /// Display Name: Root Solution Component ID + /// + [AttributeLogicalName("rootsolutioncomponentid")] + [DisplayName("Root Solution Component ID")] + public Guid? RootSolutionComponentId + { + get => GetAttributeValue("rootsolutioncomponentid"); + set => SetAttributeValue("rootsolutioncomponentid", value); + } + + /// + /// Display Name: Solution Component Identifier + /// + [AttributeLogicalName("solutioncomponentid")] + [DisplayName("Solution Component Identifier")] + public Guid SolutionComponentId + { + get => GetAttributeValue("solutioncomponentid"); + set => SetId("solutioncomponentid", value); + } + + /// + /// Unique identifier of the solution. + /// Display Name: Solution + /// + [AttributeLogicalName("solutionid")] + [DisplayName("Solution")] + public EntityReference? SolutionId + { + get => GetAttributeValue("solutionid"); + set => SetAttributeValue("solutionid", value); + } + + /// + /// Display Name: versionnumber + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("versionnumber")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + [AttributeLogicalName("rootsolutioncomponentid")] + [RelationshipSchemaName("solutioncomponent_parent_solutioncomponent")] + [RelationshipMetadata("ManyToOne", "rootsolutioncomponentid", "solutioncomponent", "solutioncomponentid", "Referencing")] + public SolutionComponent solutioncomponent_parent_solutioncomponent + { + get => GetRelatedEntity("solutioncomponent_parent_solutioncomponent", null); + set => SetRelatedEntity("solutioncomponent_parent_solutioncomponent", null, value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_solutioncomponentbase_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_solutioncomponentbase_createdonbehalfby + { + get => GetRelatedEntity("lk_solutioncomponentbase_createdonbehalfby", null); + set => SetRelatedEntity("lk_solutioncomponentbase_createdonbehalfby", null, value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_solutioncomponentbase_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_solutioncomponentbase_modifiedonbehalfby + { + get => GetRelatedEntity("lk_solutioncomponentbase_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_solutioncomponentbase_modifiedonbehalfby", null, value); + } + + [AttributeLogicalName("solutionid")] + [RelationshipSchemaName("solution_solutioncomponent")] + [RelationshipMetadata("ManyToOne", "solutionid", "solution", "solutionid", "Referencing")] + public Solution solution_solutioncomponent + { + get => GetRelatedEntity("solution_solutioncomponent", null); + set => SetRelatedEntity("solution_solutioncomponent", null, value); + } + + /// + /// Gets the logical column name for a property on the SolutionComponent entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the SolutionComponent with the specified columns. + /// + /// Organization service + /// Id of SolutionComponent to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved SolutionComponent + public static SolutionComponent Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/SystemUser.cs b/Dataverse/Context/tables/SystemUser.cs new file mode 100644 index 0000000..2aeab12 --- /dev/null +++ b/Dataverse/Context/tables/SystemUser.cs @@ -0,0 +1,2188 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// Person with access to the Microsoft CRM system and who owns objects in the Microsoft CRM database. +/// Display Name: User +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("systemuser")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class SystemUser : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "systemuser"; + public const int EntityTypeCode = 8; + + public SystemUser() : base(EntityLogicalName) { } + public SystemUser(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("fullname"); + + [AttributeLogicalName("systemuserid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("systemuserid", value); + } + } + + /// + /// Type of user. + /// Display Name: Access Mode + /// + [AttributeLogicalName("accessmode")] + [DisplayName("Access Mode")] + public systemuser_accessmode? AccessMode + { + get => this.GetOptionSetValue("accessmode"); + set => this.SetOptionSetValue("accessmode", value); + } + + /// + /// Active Directory object GUID for the system user. + /// Display Name: Active Directory Guid + /// + [AttributeLogicalName("activedirectoryguid")] + [DisplayName("Active Directory Guid")] + public Guid? ActiveDirectoryGuid + { + get => GetAttributeValue("activedirectoryguid"); + set => SetAttributeValue("activedirectoryguid", value); + } + + /// + /// Unique identifier for address 1. + /// Display Name: Address 1: ID + /// + [AttributeLogicalName("address1_addressid")] + [DisplayName("Address 1: ID")] + public Guid? Address1_AddressId + { + get => GetAttributeValue("address1_addressid"); + set => SetAttributeValue("address1_addressid", value); + } + + /// + /// Type of address for address 1, such as billing, shipping, or primary address. + /// Display Name: Address 1: Address Type + /// + [AttributeLogicalName("address1_addresstypecode")] + [DisplayName("Address 1: Address Type")] + public systemuser_address1_addresstypecode? Address1_AddressTypeCode + { + get => this.GetOptionSetValue("address1_addresstypecode"); + set => this.SetOptionSetValue("address1_addresstypecode", value); + } + + /// + /// City name for address 1. + /// Display Name: City + /// + [AttributeLogicalName("address1_city")] + [DisplayName("City")] + [MaxLength(128)] + public string Address1_City + { + get => GetAttributeValue("address1_city"); + set => SetAttributeValue("address1_city", value); + } + + /// + /// Shows the complete primary address. + /// Display Name: Address + /// + [AttributeLogicalName("address1_composite")] + [DisplayName("Address")] + [MaxLength(1000)] + public string Address1_Composite + { + get => GetAttributeValue("address1_composite"); + set => SetAttributeValue("address1_composite", value); + } + + /// + /// Country/region name in address 1. + /// Display Name: Country/Region + /// + [AttributeLogicalName("address1_country")] + [DisplayName("Country/Region")] + [MaxLength(128)] + public string Address1_Country + { + get => GetAttributeValue("address1_country"); + set => SetAttributeValue("address1_country", value); + } + + /// + /// County name for address 1. + /// Display Name: Address 1: County + /// + [AttributeLogicalName("address1_county")] + [DisplayName("Address 1: County")] + [MaxLength(128)] + public string Address1_County + { + get => GetAttributeValue("address1_county"); + set => SetAttributeValue("address1_county", value); + } + + /// + /// Fax number for address 1. + /// Display Name: Address 1: Fax + /// + [AttributeLogicalName("address1_fax")] + [DisplayName("Address 1: Fax")] + [MaxLength(64)] + public string Address1_Fax + { + get => GetAttributeValue("address1_fax"); + set => SetAttributeValue("address1_fax", value); + } + + /// + /// Latitude for address 1. + /// Display Name: Address 1: Latitude + /// + [AttributeLogicalName("address1_latitude")] + [DisplayName("Address 1: Latitude")] + public double? Address1_Latitude + { + get => GetAttributeValue("address1_latitude"); + set => SetAttributeValue("address1_latitude", value); + } + + /// + /// First line for entering address 1 information. + /// Display Name: Street 1 + /// + [AttributeLogicalName("address1_line1")] + [DisplayName("Street 1")] + [MaxLength(1024)] + public string Address1_Line1 + { + get => GetAttributeValue("address1_line1"); + set => SetAttributeValue("address1_line1", value); + } + + /// + /// Second line for entering address 1 information. + /// Display Name: Street 2 + /// + [AttributeLogicalName("address1_line2")] + [DisplayName("Street 2")] + [MaxLength(1024)] + public string Address1_Line2 + { + get => GetAttributeValue("address1_line2"); + set => SetAttributeValue("address1_line2", value); + } + + /// + /// Third line for entering address 1 information. + /// Display Name: Street 3 + /// + [AttributeLogicalName("address1_line3")] + [DisplayName("Street 3")] + [MaxLength(1024)] + public string Address1_Line3 + { + get => GetAttributeValue("address1_line3"); + set => SetAttributeValue("address1_line3", value); + } + + /// + /// Longitude for address 1. + /// Display Name: Address 1: Longitude + /// + [AttributeLogicalName("address1_longitude")] + [DisplayName("Address 1: Longitude")] + public double? Address1_Longitude + { + get => GetAttributeValue("address1_longitude"); + set => SetAttributeValue("address1_longitude", value); + } + + /// + /// Name to enter for address 1. + /// Display Name: Address 1: Name + /// + [AttributeLogicalName("address1_name")] + [DisplayName("Address 1: Name")] + [MaxLength(100)] + public string Address1_Name + { + get => GetAttributeValue("address1_name"); + set => SetAttributeValue("address1_name", value); + } + + /// + /// ZIP Code or postal code for address 1. + /// Display Name: ZIP/Postal Code + /// + [AttributeLogicalName("address1_postalcode")] + [DisplayName("ZIP/Postal Code")] + [MaxLength(40)] + public string Address1_PostalCode + { + get => GetAttributeValue("address1_postalcode"); + set => SetAttributeValue("address1_postalcode", value); + } + + /// + /// Post office box number for address 1. + /// Display Name: Address 1: Post Office Box + /// + [AttributeLogicalName("address1_postofficebox")] + [DisplayName("Address 1: Post Office Box")] + [MaxLength(40)] + public string Address1_PostOfficeBox + { + get => GetAttributeValue("address1_postofficebox"); + set => SetAttributeValue("address1_postofficebox", value); + } + + /// + /// Method of shipment for address 1. + /// Display Name: Address 1: Shipping Method + /// + [AttributeLogicalName("address1_shippingmethodcode")] + [DisplayName("Address 1: Shipping Method")] + public systemuser_address1_shippingmethodcode? Address1_ShippingMethodCode + { + get => this.GetOptionSetValue("address1_shippingmethodcode"); + set => this.SetOptionSetValue("address1_shippingmethodcode", value); + } + + /// + /// State or province for address 1. + /// Display Name: State/Province + /// + [AttributeLogicalName("address1_stateorprovince")] + [DisplayName("State/Province")] + [MaxLength(128)] + public string Address1_StateOrProvince + { + get => GetAttributeValue("address1_stateorprovince"); + set => SetAttributeValue("address1_stateorprovince", value); + } + + /// + /// First telephone number associated with address 1. + /// Display Name: Main Phone + /// + [AttributeLogicalName("address1_telephone1")] + [DisplayName("Main Phone")] + [MaxLength(64)] + public string Address1_Telephone1 + { + get => GetAttributeValue("address1_telephone1"); + set => SetAttributeValue("address1_telephone1", value); + } + + /// + /// Second telephone number associated with address 1. + /// Display Name: Other Phone + /// + [AttributeLogicalName("address1_telephone2")] + [DisplayName("Other Phone")] + [MaxLength(50)] + public string Address1_Telephone2 + { + get => GetAttributeValue("address1_telephone2"); + set => SetAttributeValue("address1_telephone2", value); + } + + /// + /// Third telephone number associated with address 1. + /// Display Name: Pager + /// + [AttributeLogicalName("address1_telephone3")] + [DisplayName("Pager")] + [MaxLength(50)] + public string Address1_Telephone3 + { + get => GetAttributeValue("address1_telephone3"); + set => SetAttributeValue("address1_telephone3", value); + } + + /// + /// United Parcel Service (UPS) zone for address 1. + /// Display Name: Address 1: UPS Zone + /// + [AttributeLogicalName("address1_upszone")] + [DisplayName("Address 1: UPS Zone")] + [MaxLength(4)] + public string Address1_UPSZone + { + get => GetAttributeValue("address1_upszone"); + set => SetAttributeValue("address1_upszone", value); + } + + /// + /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. + /// Display Name: Address 1: UTC Offset + /// + [AttributeLogicalName("address1_utcoffset")] + [DisplayName("Address 1: UTC Offset")] + [Range(-1500, 1500)] + public int? Address1_UTCOffset + { + get => GetAttributeValue("address1_utcoffset"); + set => SetAttributeValue("address1_utcoffset", value); + } + + /// + /// Unique identifier for address 2. + /// Display Name: Address 2: ID + /// + [AttributeLogicalName("address2_addressid")] + [DisplayName("Address 2: ID")] + public Guid? Address2_AddressId + { + get => GetAttributeValue("address2_addressid"); + set => SetAttributeValue("address2_addressid", value); + } + + /// + /// Type of address for address 2, such as billing, shipping, or primary address. + /// Display Name: Address 2: Address Type + /// + [AttributeLogicalName("address2_addresstypecode")] + [DisplayName("Address 2: Address Type")] + public systemuser_address2_addresstypecode? Address2_AddressTypeCode + { + get => this.GetOptionSetValue("address2_addresstypecode"); + set => this.SetOptionSetValue("address2_addresstypecode", value); + } + + /// + /// City name for address 2. + /// Display Name: Other City + /// + [AttributeLogicalName("address2_city")] + [DisplayName("Other City")] + [MaxLength(128)] + public string Address2_City + { + get => GetAttributeValue("address2_city"); + set => SetAttributeValue("address2_city", value); + } + + /// + /// Shows the complete secondary address. + /// Display Name: Other Address + /// + [AttributeLogicalName("address2_composite")] + [DisplayName("Other Address")] + [MaxLength(1000)] + public string Address2_Composite + { + get => GetAttributeValue("address2_composite"); + set => SetAttributeValue("address2_composite", value); + } + + /// + /// Country/region name in address 2. + /// Display Name: Other Country/Region + /// + [AttributeLogicalName("address2_country")] + [DisplayName("Other Country/Region")] + [MaxLength(128)] + public string Address2_Country + { + get => GetAttributeValue("address2_country"); + set => SetAttributeValue("address2_country", value); + } + + /// + /// County name for address 2. + /// Display Name: Address 2: County + /// + [AttributeLogicalName("address2_county")] + [DisplayName("Address 2: County")] + [MaxLength(128)] + public string Address2_County + { + get => GetAttributeValue("address2_county"); + set => SetAttributeValue("address2_county", value); + } + + /// + /// Fax number for address 2. + /// Display Name: Address 2: Fax + /// + [AttributeLogicalName("address2_fax")] + [DisplayName("Address 2: Fax")] + [MaxLength(50)] + public string Address2_Fax + { + get => GetAttributeValue("address2_fax"); + set => SetAttributeValue("address2_fax", value); + } + + /// + /// Latitude for address 2. + /// Display Name: Address 2: Latitude + /// + [AttributeLogicalName("address2_latitude")] + [DisplayName("Address 2: Latitude")] + public double? Address2_Latitude + { + get => GetAttributeValue("address2_latitude"); + set => SetAttributeValue("address2_latitude", value); + } + + /// + /// First line for entering address 2 information. + /// Display Name: Other Street 1 + /// + [AttributeLogicalName("address2_line1")] + [DisplayName("Other Street 1")] + [MaxLength(1024)] + public string Address2_Line1 + { + get => GetAttributeValue("address2_line1"); + set => SetAttributeValue("address2_line1", value); + } + + /// + /// Second line for entering address 2 information. + /// Display Name: Other Street 2 + /// + [AttributeLogicalName("address2_line2")] + [DisplayName("Other Street 2")] + [MaxLength(1024)] + public string Address2_Line2 + { + get => GetAttributeValue("address2_line2"); + set => SetAttributeValue("address2_line2", value); + } + + /// + /// Third line for entering address 2 information. + /// Display Name: Other Street 3 + /// + [AttributeLogicalName("address2_line3")] + [DisplayName("Other Street 3")] + [MaxLength(1024)] + public string Address2_Line3 + { + get => GetAttributeValue("address2_line3"); + set => SetAttributeValue("address2_line3", value); + } + + /// + /// Longitude for address 2. + /// Display Name: Address 2: Longitude + /// + [AttributeLogicalName("address2_longitude")] + [DisplayName("Address 2: Longitude")] + public double? Address2_Longitude + { + get => GetAttributeValue("address2_longitude"); + set => SetAttributeValue("address2_longitude", value); + } + + /// + /// Name to enter for address 2. + /// Display Name: Address 2: Name + /// + [AttributeLogicalName("address2_name")] + [DisplayName("Address 2: Name")] + [MaxLength(100)] + public string Address2_Name + { + get => GetAttributeValue("address2_name"); + set => SetAttributeValue("address2_name", value); + } + + /// + /// ZIP Code or postal code for address 2. + /// Display Name: Other ZIP/Postal Code + /// + [AttributeLogicalName("address2_postalcode")] + [DisplayName("Other ZIP/Postal Code")] + [MaxLength(40)] + public string Address2_PostalCode + { + get => GetAttributeValue("address2_postalcode"); + set => SetAttributeValue("address2_postalcode", value); + } + + /// + /// Post office box number for address 2. + /// Display Name: Address 2: Post Office Box + /// + [AttributeLogicalName("address2_postofficebox")] + [DisplayName("Address 2: Post Office Box")] + [MaxLength(40)] + public string Address2_PostOfficeBox + { + get => GetAttributeValue("address2_postofficebox"); + set => SetAttributeValue("address2_postofficebox", value); + } + + /// + /// Method of shipment for address 2. + /// Display Name: Address 2: Shipping Method + /// + [AttributeLogicalName("address2_shippingmethodcode")] + [DisplayName("Address 2: Shipping Method")] + public systemuser_address2_shippingmethodcode? Address2_ShippingMethodCode + { + get => this.GetOptionSetValue("address2_shippingmethodcode"); + set => this.SetOptionSetValue("address2_shippingmethodcode", value); + } + + /// + /// State or province for address 2. + /// Display Name: Other State/Province + /// + [AttributeLogicalName("address2_stateorprovince")] + [DisplayName("Other State/Province")] + [MaxLength(128)] + public string Address2_StateOrProvince + { + get => GetAttributeValue("address2_stateorprovince"); + set => SetAttributeValue("address2_stateorprovince", value); + } + + /// + /// First telephone number associated with address 2. + /// Display Name: Address 2: Telephone 1 + /// + [AttributeLogicalName("address2_telephone1")] + [DisplayName("Address 2: Telephone 1")] + [MaxLength(50)] + public string Address2_Telephone1 + { + get => GetAttributeValue("address2_telephone1"); + set => SetAttributeValue("address2_telephone1", value); + } + + /// + /// Second telephone number associated with address 2. + /// Display Name: Address 2: Telephone 2 + /// + [AttributeLogicalName("address2_telephone2")] + [DisplayName("Address 2: Telephone 2")] + [MaxLength(50)] + public string Address2_Telephone2 + { + get => GetAttributeValue("address2_telephone2"); + set => SetAttributeValue("address2_telephone2", value); + } + + /// + /// Third telephone number associated with address 2. + /// Display Name: Address 2: Telephone 3 + /// + [AttributeLogicalName("address2_telephone3")] + [DisplayName("Address 2: Telephone 3")] + [MaxLength(50)] + public string Address2_Telephone3 + { + get => GetAttributeValue("address2_telephone3"); + set => SetAttributeValue("address2_telephone3", value); + } + + /// + /// United Parcel Service (UPS) zone for address 2. + /// Display Name: Address 2: UPS Zone + /// + [AttributeLogicalName("address2_upszone")] + [DisplayName("Address 2: UPS Zone")] + [MaxLength(4)] + public string Address2_UPSZone + { + get => GetAttributeValue("address2_upszone"); + set => SetAttributeValue("address2_upszone", value); + } + + /// + /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. + /// Display Name: Address 2: UTC Offset + /// + [AttributeLogicalName("address2_utcoffset")] + [DisplayName("Address 2: UTC Offset")] + [Range(-1500, 1500)] + public int? Address2_UTCOffset + { + get => GetAttributeValue("address2_utcoffset"); + set => SetAttributeValue("address2_utcoffset", value); + } + + /// + /// The identifier for the application. This is used to access data in another application. + /// Display Name: Application ID + /// + [AttributeLogicalName("applicationid")] + [DisplayName("Application ID")] + public Guid? ApplicationId + { + get => GetAttributeValue("applicationid"); + set => SetAttributeValue("applicationid", value); + } + + /// + /// The URI used as a unique logical identifier for the external app. This can be used to validate the application. + /// Display Name: Application ID URI + /// + [AttributeLogicalName("applicationiduri")] + [DisplayName("Application ID URI")] + [MaxLength(1024)] + public string ApplicationIdUri + { + get => GetAttributeValue("applicationiduri"); + set => SetAttributeValue("applicationiduri", value); + } + + /// + /// This is the application directory object Id. + /// Display Name: Azure AD Object ID + /// + [AttributeLogicalName("azureactivedirectoryobjectid")] + [DisplayName("Azure AD Object ID")] + public Guid? AzureActiveDirectoryObjectId + { + get => GetAttributeValue("azureactivedirectoryobjectid"); + set => SetAttributeValue("azureactivedirectoryobjectid", value); + } + + /// + /// Date and time when the user was set as soft deleted in Azure. + /// Display Name: Azure Deleted On + /// + [AttributeLogicalName("azuredeletedon")] + [DisplayName("Azure Deleted On")] + public DateTime? AzureDeletedOn + { + get => GetAttributeValue("azuredeletedon"); + set => SetAttributeValue("azuredeletedon", value); + } + + /// + /// Azure state of user + /// Display Name: Azure State + /// + [AttributeLogicalName("azurestate")] + [DisplayName("Azure State")] + public systemuser_azurestate? AzureState + { + get => this.GetOptionSetValue("azurestate"); + set => this.SetOptionSetValue("azurestate", value); + } + + /// + /// Unique identifier of the business unit with which the user is associated. + /// Display Name: Business Unit + /// + [AttributeLogicalName("businessunitid")] + [DisplayName("Business Unit")] + public EntityReference? BusinessUnitId + { + get => GetAttributeValue("businessunitid"); + set => SetAttributeValue("businessunitid", value); + } + + /// + /// Fiscal calendar associated with the user. + /// Display Name: Calendar + /// + [AttributeLogicalName("calendarid")] + [DisplayName("Calendar")] + public EntityReference? CalendarId + { + get => GetAttributeValue("calendarid"); + set => SetAttributeValue("calendarid", value); + } + + /// + /// 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 + /// Display Name: License Type + /// + [AttributeLogicalName("caltype")] + [DisplayName("License Type")] + public systemuser_caltype? CALType + { + get => this.GetOptionSetValue("caltype"); + set => this.SetOptionSetValue("caltype", value); + } + + /// + /// Unique identifier of the user who created the user. + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the user was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the systemuser. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// Indicates if default outlook filters have been populated. + /// Display Name: Default Filters Populated + /// + [AttributeLogicalName("defaultfilterspopulated")] + [DisplayName("Default Filters Populated")] + public bool? DefaultFiltersPopulated + { + get => GetAttributeValue("defaultfilterspopulated"); + set => SetAttributeValue("defaultfilterspopulated", value); + } + + /// + /// Select the mailbox associated with this user. + /// Display Name: Mailbox + /// + [AttributeLogicalName("defaultmailbox")] + [DisplayName("Mailbox")] + public EntityReference? DefaultMailbox + { + get => GetAttributeValue("defaultmailbox"); + set => SetAttributeValue("defaultmailbox", value); + } + + /// + /// Type a default folder name for the user's OneDrive For Business location. + /// Display Name: Default OneDrive for Business Folder Name + /// + [AttributeLogicalName("defaultodbfoldername")] + [DisplayName("Default OneDrive for Business Folder Name")] + [MaxLength(200)] + public string DefaultOdbFolderName + { + get => GetAttributeValue("defaultodbfoldername"); + set => SetAttributeValue("defaultodbfoldername", value); + } + + /// + /// User delete state + /// Display Name: Deleted State + /// + [AttributeLogicalName("deletedstate")] + [DisplayName("Deleted State")] + public systemuser_deletestate? DeletedState + { + get => this.GetOptionSetValue("deletedstate"); + set => this.SetOptionSetValue("deletedstate", value); + } + + /// + /// Reason for disabling the user. + /// Display Name: Disabled Reason + /// + [AttributeLogicalName("disabledreason")] + [DisplayName("Disabled Reason")] + [MaxLength(500)] + public string DisabledReason + { + get => GetAttributeValue("disabledreason"); + set => SetAttributeValue("disabledreason", value); + } + + /// + /// Whether to display the user in service views. + /// Display Name: Display in Service Views + /// + [AttributeLogicalName("displayinserviceviews")] + [DisplayName("Display in Service Views")] + public bool? DisplayInServiceViews + { + get => GetAttributeValue("displayinserviceviews"); + set => SetAttributeValue("displayinserviceviews", value); + } + + /// + /// Active Directory domain of which the user is a member. + /// Display Name: User Name + /// + [AttributeLogicalName("domainname")] + [DisplayName("User Name")] + [MaxLength(1024)] + public string DomainName + { + get => GetAttributeValue("domainname"); + set => SetAttributeValue("domainname", value); + } + + /// + /// Shows the status of the primary email address. + /// Display Name: Primary Email Status + /// + [AttributeLogicalName("emailrouteraccessapproval")] + [DisplayName("Primary Email Status")] + public systemuser_emailrouteraccessapproval? EmailRouterAccessApproval + { + get => this.GetOptionSetValue("emailrouteraccessapproval"); + set => this.SetOptionSetValue("emailrouteraccessapproval", value); + } + + /// + /// Employee identifier for the user. + /// Display Name: Employee + /// + [AttributeLogicalName("employeeid")] + [DisplayName("Employee")] + [MaxLength(100)] + public string EmployeeId + { + get => GetAttributeValue("employeeid"); + set => SetAttributeValue("employeeid", value); + } + + /// + /// For internal use only. + /// Display Name: Entity Image Id + /// + [AttributeLogicalName("entityimageid")] + [DisplayName("Entity Image Id")] + public Guid? EntityImageId + { + get => GetAttributeValue("entityimageid"); + set => SetAttributeValue("entityimageid", value); + } + + /// + /// Exchange rate for the currency associated with the systemuser with respect to the base currency. + /// Display Name: Exchange Rate + /// + [AttributeLogicalName("exchangerate")] + [DisplayName("Exchange Rate")] + public decimal? ExchangeRate + { + get => GetAttributeValue("exchangerate"); + set => SetAttributeValue("exchangerate", value); + } + + /// + /// First name of the user. + /// Display Name: First Name + /// + [AttributeLogicalName("firstname")] + [DisplayName("First Name")] + [MaxLength(256)] + public string FirstName + { + get => GetAttributeValue("firstname"); + set => SetAttributeValue("firstname", value); + } + + /// + /// Full name of the user. + /// Display Name: Full Name + /// + [AttributeLogicalName("fullname")] + [DisplayName("Full Name")] + [MaxLength(200)] + public string FullName + { + get => GetAttributeValue("fullname"); + set => SetAttributeValue("fullname", value); + } + + /// + /// Government identifier for the user. + /// Display Name: Government + /// + [AttributeLogicalName("governmentid")] + [DisplayName("Government")] + [MaxLength(100)] + public string GovernmentId + { + get => GetAttributeValue("governmentid"); + set => SetAttributeValue("governmentid", value); + } + + /// + /// Home phone number for the user. + /// Display Name: Home Phone + /// + [AttributeLogicalName("homephone")] + [DisplayName("Home Phone")] + [MaxLength(50)] + public string HomePhone + { + get => GetAttributeValue("homephone"); + set => SetAttributeValue("homephone", value); + } + + /// + /// For internal use only. + /// Display Name: Unique user identity id + /// + [AttributeLogicalName("identityid")] + [DisplayName("Unique user identity id")] + [Range(-2147483648, 2147483647)] + public int? IdentityId + { + get => GetAttributeValue("identityid"); + set => SetAttributeValue("identityid", value); + } + + /// + /// Unique identifier of the data import or data migration that created this record. + /// Display Name: Import Sequence Number + /// + [AttributeLogicalName("importsequencenumber")] + [DisplayName("Import Sequence Number")] + [Range(-2147483648, 2147483647)] + public int? ImportSequenceNumber + { + get => GetAttributeValue("importsequencenumber"); + set => SetAttributeValue("importsequencenumber", value); + } + + /// + /// Incoming email delivery method for the user. + /// Display Name: Incoming Email Delivery Method + /// + [AttributeLogicalName("incomingemaildeliverymethod")] + [DisplayName("Incoming Email Delivery Method")] + public systemuser_incomingemaildeliverymethod? IncomingEmailDeliveryMethod + { + get => this.GetOptionSetValue("incomingemaildeliverymethod"); + set => this.SetOptionSetValue("incomingemaildeliverymethod", value); + } + + /// + /// Internal email address for the user. + /// Display Name: Primary Email + /// + [AttributeLogicalName("internalemailaddress")] + [DisplayName("Primary Email")] + [MaxLength(100)] + public string InternalEMailAddress + { + get => GetAttributeValue("internalemailaddress"); + set => SetAttributeValue("internalemailaddress", value); + } + + /// + /// User invitation status. + /// Display Name: Invitation Status + /// + [AttributeLogicalName("invitestatuscode")] + [DisplayName("Invitation Status")] + public systemuser_invitestatuscode? InviteStatusCode + { + get => this.GetOptionSetValue("invitestatuscode"); + set => this.SetOptionSetValue("invitestatuscode", value); + } + + /// + /// Information about whether the user is an AD user. + /// Display Name: Is Active Directory User + /// + [AttributeLogicalName("isactivedirectoryuser")] + [DisplayName("Is Active Directory User")] + public bool? IsActiveDirectoryUser + { + get => GetAttributeValue("isactivedirectoryuser"); + set => SetAttributeValue("isactivedirectoryuser", value); + } + + /// + /// Bypasses the selected user from IP firewall restriction + /// Display Name: To bypass IP firewall restriction on the user + /// + [AttributeLogicalName("isallowedbyipfirewall")] + [DisplayName("To bypass IP firewall restriction on the user")] + public bool? IsAllowedByIpFirewall + { + get => GetAttributeValue("isallowedbyipfirewall"); + set => SetAttributeValue("isallowedbyipfirewall", value); + } + + /// + /// Information about whether the user is enabled. + /// Display Name: Status + /// + [AttributeLogicalName("isdisabled")] + [DisplayName("Status")] + public bool? IsDisabled + { + get => GetAttributeValue("isdisabled"); + set => SetAttributeValue("isdisabled", value); + } + + /// + /// Shows the status of approval of the email address by O365 Admin. + /// Display Name: Email Address O365 Admin Approval Status + /// + [AttributeLogicalName("isemailaddressapprovedbyo365admin")] + [DisplayName("Email Address O365 Admin Approval Status")] + public bool? IsEmailAddressApprovedByO365Admin + { + get => GetAttributeValue("isemailaddressapprovedbyo365admin"); + set => SetAttributeValue("isemailaddressapprovedbyo365admin", value); + } + + /// + /// Check if user is an integration user. + /// Display Name: Integration user mode + /// + [AttributeLogicalName("isintegrationuser")] + [DisplayName("Integration user mode")] + public bool? IsIntegrationUser + { + get => GetAttributeValue("isintegrationuser"); + set => SetAttributeValue("isintegrationuser", value); + } + + /// + /// Information about whether the user is licensed. + /// Display Name: User Licensed + /// + [AttributeLogicalName("islicensed")] + [DisplayName("User Licensed")] + public bool? IsLicensed + { + get => GetAttributeValue("islicensed"); + set => SetAttributeValue("islicensed", value); + } + + /// + /// Information about whether the user is synced with the directory. + /// Display Name: User Synced + /// + [AttributeLogicalName("issyncwithdirectory")] + [DisplayName("User Synced")] + public bool? IsSyncWithDirectory + { + get => GetAttributeValue("issyncwithdirectory"); + set => SetAttributeValue("issyncwithdirectory", value); + } + + /// + /// Job title of the user. + /// Display Name: Job Title + /// + [AttributeLogicalName("jobtitle")] + [DisplayName("Job Title")] + [MaxLength(100)] + public string JobTitle + { + get => GetAttributeValue("jobtitle"); + set => SetAttributeValue("jobtitle", value); + } + + /// + /// Last name of the user. + /// Display Name: Last Name + /// + [AttributeLogicalName("lastname")] + [DisplayName("Last Name")] + [MaxLength(256)] + public string LastName + { + get => GetAttributeValue("lastname"); + set => SetAttributeValue("lastname", value); + } + + /// + /// Time stamp of the latest update for the user + /// Display Name: Latest User Update Time + /// + [AttributeLogicalName("latestupdatetime")] + [DisplayName("Latest User Update Time")] + public DateTime? LatestUpdateTime + { + get => GetAttributeValue("latestupdatetime"); + set => SetAttributeValue("latestupdatetime", value); + } + + /// + /// Middle name of the user. + /// Display Name: Middle Name + /// + [AttributeLogicalName("middlename")] + [DisplayName("Middle Name")] + [MaxLength(50)] + public string MiddleName + { + get => GetAttributeValue("middlename"); + set => SetAttributeValue("middlename", value); + } + + /// + /// Mobile alert email address for the user. + /// Display Name: Mobile Alert Email + /// + [AttributeLogicalName("mobilealertemail")] + [DisplayName("Mobile Alert Email")] + [MaxLength(100)] + public string MobileAlertEMail + { + get => GetAttributeValue("mobilealertemail"); + set => SetAttributeValue("mobilealertemail", value); + } + + /// + /// Items contained with a particular SystemUser. + /// Display Name: Mobile Offline Profile + /// + [AttributeLogicalName("mobileofflineprofileid")] + [DisplayName("Mobile Offline Profile")] + public EntityReference? MobileOfflineProfileId + { + get => GetAttributeValue("mobileofflineprofileid"); + set => SetAttributeValue("mobileofflineprofileid", value); + } + + /// + /// Mobile phone number for the user. + /// Display Name: Mobile Phone + /// + [AttributeLogicalName("mobilephone")] + [DisplayName("Mobile Phone")] + [MaxLength(64)] + public string MobilePhone + { + get => GetAttributeValue("mobilephone"); + set => SetAttributeValue("mobilephone", value); + } + + /// + /// Unique identifier of the user who last modified the user. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the user was last modified. + /// Display Name: Modified On + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified On")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who last modified the systemuser. + /// Display Name: Modified By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Modified By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// Nickname of the user. + /// Display Name: Nickname + /// + [AttributeLogicalName("nickname")] + [DisplayName("Nickname")] + [MaxLength(50)] + public string NickName + { + get => GetAttributeValue("nickname"); + set => SetAttributeValue("nickname", value); + } + + /// + /// Unique identifier of the organization associated with the user. + /// Display Name: Organization + /// + [AttributeLogicalName("organizationid")] + [DisplayName("Organization ")] + public Guid? OrganizationId + { + get => GetAttributeValue("organizationid"); + set => SetAttributeValue("organizationid", value); + } + + /// + /// Outgoing email delivery method for the user. + /// Display Name: Outgoing Email Delivery Method + /// + [AttributeLogicalName("outgoingemaildeliverymethod")] + [DisplayName("Outgoing Email Delivery Method")] + public systemuser_outgoingemaildeliverymethod? OutgoingEmailDeliveryMethod + { + get => this.GetOptionSetValue("outgoingemaildeliverymethod"); + set => this.SetOptionSetValue("outgoingemaildeliverymethod", value); + } + + /// + /// Date and time that the record was migrated. + /// Display Name: Record Created On + /// + [AttributeLogicalName("overriddencreatedon")] + [DisplayName("Record Created On")] + public DateTime? OverriddenCreatedOn + { + get => GetAttributeValue("overriddencreatedon"); + set => SetAttributeValue("overriddencreatedon", value); + } + + /// + /// Unique identifier of the manager of the user. + /// Display Name: Manager + /// + [AttributeLogicalName("parentsystemuserid")] + [DisplayName("Manager")] + public EntityReference? ParentSystemUserId + { + get => GetAttributeValue("parentsystemuserid"); + set => SetAttributeValue("parentsystemuserid", value); + } + + /// + /// For internal use only. + /// Display Name: Passport Hi + /// + [AttributeLogicalName("passporthi")] + [DisplayName("Passport Hi")] + [Range(0, 1000000000)] + public int? PassportHi + { + get => GetAttributeValue("passporthi"); + set => SetAttributeValue("passporthi", value); + } + + /// + /// For internal use only. + /// Display Name: Passport Lo + /// + [AttributeLogicalName("passportlo")] + [DisplayName("Passport Lo")] + [Range(0, 1000000000)] + public int? PassportLo + { + get => GetAttributeValue("passportlo"); + set => SetAttributeValue("passportlo", value); + } + + /// + /// Personal email address of the user. + /// Display Name: Email 2 + /// + [AttributeLogicalName("personalemailaddress")] + [DisplayName("Email 2")] + [MaxLength(100)] + public string PersonalEMailAddress + { + get => GetAttributeValue("personalemailaddress"); + set => SetAttributeValue("personalemailaddress", value); + } + + /// + /// URL for the Website on which a photo of the user is located. + /// Display Name: Photo URL + /// + [AttributeLogicalName("photourl")] + [DisplayName("Photo URL")] + [MaxLength(200)] + public string PhotoUrl + { + get => GetAttributeValue("photourl"); + set => SetAttributeValue("photourl", value); + } + + /// + /// User's position in hierarchical security model. + /// Display Name: Position + /// + [AttributeLogicalName("positionid")] + [DisplayName("Position")] + public EntityReference? PositionId + { + get => GetAttributeValue("positionid"); + set => SetAttributeValue("positionid", value); + } + + /// + /// Preferred address for the user. + /// Display Name: Preferred Address + /// + [AttributeLogicalName("preferredaddresscode")] + [DisplayName("Preferred Address")] + public systemuser_preferredaddresscode? PreferredAddressCode + { + get => this.GetOptionSetValue("preferredaddresscode"); + set => this.SetOptionSetValue("preferredaddresscode", value); + } + + /// + /// Preferred email address for the user. + /// Display Name: Preferred Email + /// + [AttributeLogicalName("preferredemailcode")] + [DisplayName("Preferred Email")] + public systemuser_preferredemailcode? PreferredEmailCode + { + get => this.GetOptionSetValue("preferredemailcode"); + set => this.SetOptionSetValue("preferredemailcode", value); + } + + /// + /// Preferred phone number for the user. + /// Display Name: Preferred Phone + /// + [AttributeLogicalName("preferredphonecode")] + [DisplayName("Preferred Phone")] + public systemuser_preferredphonecode? PreferredPhoneCode + { + get => this.GetOptionSetValue("preferredphonecode"); + set => this.SetOptionSetValue("preferredphonecode", value); + } + + /// + /// Shows the ID of the process. + /// Display Name: Process + /// + [AttributeLogicalName("processid")] + [DisplayName("Process")] + public Guid? ProcessId + { + get => GetAttributeValue("processid"); + set => SetAttributeValue("processid", value); + } + + /// + /// Unique identifier of the default queue for the user. + /// Display Name: Default Queue + /// + [AttributeLogicalName("queueid")] + [DisplayName("Default Queue")] + public EntityReference? QueueId + { + get => GetAttributeValue("queueid"); + set => SetAttributeValue("queueid", value); + } + + /// + /// Salutation for correspondence with the user. + /// Display Name: Salutation + /// + [AttributeLogicalName("salutation")] + [DisplayName("Salutation")] + [MaxLength(20)] + public string Salutation + { + get => GetAttributeValue("salutation"); + set => SetAttributeValue("salutation", value); + } + + /// + /// Check if user is a setup user. + /// Display Name: Restricted Access Mode + /// + [AttributeLogicalName("setupuser")] + [DisplayName("Restricted Access Mode")] + public bool? SetupUser + { + get => GetAttributeValue("setupuser"); + set => SetAttributeValue("setupuser", value); + } + + /// + /// SharePoint Work Email Address + /// Display Name: SharePoint Email Address + /// + [AttributeLogicalName("sharepointemailaddress")] + [DisplayName("SharePoint Email Address")] + [MaxLength(1024)] + public string SharePointEmailAddress + { + get => GetAttributeValue("sharepointemailaddress"); + set => SetAttributeValue("sharepointemailaddress", value); + } + + /// + /// Skill set of the user. + /// Display Name: Skills + /// + [AttributeLogicalName("skills")] + [DisplayName("Skills")] + [MaxLength(100)] + public string Skills + { + get => GetAttributeValue("skills"); + set => SetAttributeValue("skills", value); + } + + /// + /// Shows the ID of the stage. + /// Display Name: (Deprecated) Process Stage + /// + [AttributeLogicalName("stageid")] + [DisplayName("(Deprecated) Process Stage")] + public Guid? StageId + { + get => GetAttributeValue("stageid"); + set => SetAttributeValue("stageid", value); + } + + /// + /// The type of user + /// Display Name: System Managed User Type + /// + [AttributeLogicalName("systemmanagedusertype")] + [DisplayName("System Managed User Type")] + public systemuser_systemmanagedusertype? SystemManagedUserType + { + get => this.GetOptionSetValue("systemmanagedusertype"); + set => this.SetOptionSetValue("systemmanagedusertype", value); + } + + /// + /// Display Name: User + /// + [AttributeLogicalName("systemuserid")] + [DisplayName("User")] + public Guid SystemUserId + { + get => GetAttributeValue("systemuserid"); + set => SetId("systemuserid", value); + } + + /// + /// Unique identifier of the territory to which the user is assigned. + /// Display Name: Territory + /// + [AttributeLogicalName("territoryid")] + [DisplayName("Territory")] + public EntityReference? TerritoryId + { + get => GetAttributeValue("territoryid"); + set => SetAttributeValue("territoryid", value); + } + + /// + /// For internal use only. + /// Display Name: Time Zone Rule Version Number + /// + [AttributeLogicalName("timezoneruleversionnumber")] + [DisplayName("Time Zone Rule Version Number")] + [Range(-1, 2147483647)] + public int? TimeZoneRuleVersionNumber + { + get => GetAttributeValue("timezoneruleversionnumber"); + set => SetAttributeValue("timezoneruleversionnumber", value); + } + + /// + /// Title of the user. + /// Display Name: Title + /// + [AttributeLogicalName("title")] + [DisplayName("Title")] + [MaxLength(128)] + public string Title + { + get => GetAttributeValue("title"); + set => SetAttributeValue("title", value); + } + + /// + /// Unique identifier of the currency associated with the systemuser. + /// Display Name: Currency + /// + [AttributeLogicalName("transactioncurrencyid")] + [DisplayName("Currency")] + public EntityReference? TransactionCurrencyId + { + get => GetAttributeValue("transactioncurrencyid"); + set => SetAttributeValue("transactioncurrencyid", value); + } + + /// + /// For internal use only. + /// Display Name: (Deprecated) Traversed Path + /// + [AttributeLogicalName("traversedpath")] + [DisplayName("(Deprecated) Traversed Path")] + [MaxLength(1250)] + public string TraversedPath + { + get => GetAttributeValue("traversedpath"); + set => SetAttributeValue("traversedpath", value); + } + + /// + /// Shows the type of user license. + /// Display Name: User License Type + /// + [AttributeLogicalName("userlicensetype")] + [DisplayName("User License Type")] + [Range(-2147483648, 2147483647)] + public int? UserLicenseType + { + get => GetAttributeValue("userlicensetype"); + set => SetAttributeValue("userlicensetype", value); + } + + /// + /// User PUID User Identifiable Information + /// Display Name: User PUID + /// + [AttributeLogicalName("userpuid")] + [DisplayName("User PUID")] + [MaxLength(100)] + public string UserPuid + { + get => GetAttributeValue("userpuid"); + set => SetAttributeValue("userpuid", value); + } + + /// + /// Time zone code that was in use when the record was created. + /// Display Name: UTC Conversion Time Zone Code + /// + [AttributeLogicalName("utcconversiontimezonecode")] + [DisplayName("UTC Conversion Time Zone Code")] + [Range(-1, 2147483647)] + public int? UTCConversionTimeZoneCode + { + get => GetAttributeValue("utcconversiontimezonecode"); + set => SetAttributeValue("utcconversiontimezonecode", value); + } + + /// + /// Version number of the user. + /// Display Name: Version number + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("Version number")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + /// + /// Windows Live ID + /// Display Name: Windows Live ID + /// + [AttributeLogicalName("windowsliveid")] + [DisplayName("Windows Live ID")] + [MaxLength(1024)] + public string WindowsLiveID + { + get => GetAttributeValue("windowsliveid"); + set => SetAttributeValue("windowsliveid", value); + } + + /// + /// User's Yammer login email address + /// Display Name: Yammer Email + /// + [AttributeLogicalName("yammeremailaddress")] + [DisplayName("Yammer Email")] + [MaxLength(200)] + public string YammerEmailAddress + { + get => GetAttributeValue("yammeremailaddress"); + set => SetAttributeValue("yammeremailaddress", value); + } + + /// + /// User's Yammer ID + /// Display Name: Yammer User ID + /// + [AttributeLogicalName("yammeruserid")] + [DisplayName("Yammer User ID")] + [MaxLength(128)] + public string YammerUserId + { + get => GetAttributeValue("yammeruserid"); + set => SetAttributeValue("yammeruserid", value); + } + + /// + /// Pronunciation of the first name of the user, written in phonetic hiragana or katakana characters. + /// Display Name: Yomi First Name + /// + [AttributeLogicalName("yomifirstname")] + [DisplayName("Yomi First Name")] + [MaxLength(64)] + public string YomiFirstName + { + get => GetAttributeValue("yomifirstname"); + set => SetAttributeValue("yomifirstname", value); + } + + /// + /// Pronunciation of the full name of the user, written in phonetic hiragana or katakana characters. + /// Display Name: Yomi Full Name + /// + [AttributeLogicalName("yomifullname")] + [DisplayName("Yomi Full Name")] + [MaxLength(200)] + public string YomiFullName + { + get => GetAttributeValue("yomifullname"); + set => SetAttributeValue("yomifullname", value); + } + + /// + /// Pronunciation of the last name of the user, written in phonetic hiragana or katakana characters. + /// Display Name: Yomi Last Name + /// + [AttributeLogicalName("yomilastname")] + [DisplayName("Yomi Last Name")] + [MaxLength(64)] + public string YomiLastName + { + get => GetAttributeValue("yomilastname"); + set => SetAttributeValue("yomilastname", value); + } + + /// + /// Pronunciation of the middle name of the user, written in phonetic hiragana or katakana characters. + /// Display Name: Yomi Middle Name + /// + [AttributeLogicalName("yomimiddlename")] + [DisplayName("Yomi Middle Name")] + [MaxLength(50)] + public string YomiMiddleName + { + get => GetAttributeValue("yomimiddlename"); + set => SetAttributeValue("yomimiddlename", value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_systemuser_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_systemuser_createdonbehalfby + { + get => GetRelatedEntity("lk_systemuser_createdonbehalfby", null); + set => SetRelatedEntity("lk_systemuser_createdonbehalfby", null, value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_systemuser_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_systemuser_modifiedonbehalfby + { + get => GetRelatedEntity("lk_systemuser_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_systemuser_modifiedonbehalfby", null, value); + } + + [AttributeLogicalName("modifiedby")] + [RelationshipSchemaName("lk_systemuserbase_modifiedby")] + [RelationshipMetadata("ManyToOne", "modifiedby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_systemuserbase_modifiedby + { + get => GetRelatedEntity("lk_systemuserbase_modifiedby", null); + set => SetRelatedEntity("lk_systemuserbase_modifiedby", null, value); + } + + [AttributeLogicalName("createdby")] + [RelationshipSchemaName("lk_systemuserbase_createdby")] + [RelationshipMetadata("ManyToOne", "createdby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_systemuserbase_createdby + { + get => GetRelatedEntity("lk_systemuserbase_createdby", null); + set => SetRelatedEntity("lk_systemuserbase_createdby", null, value); + } + + [AttributeLogicalName("parentsystemuserid")] + [RelationshipSchemaName("user_parent_user")] + [RelationshipMetadata("ManyToOne", "parentsystemuserid", "systemuser", "systemuserid", "Referencing")] + public SystemUser user_parent_user + { + get => GetRelatedEntity("user_parent_user", null); + set => SetRelatedEntity("user_parent_user", null, value); + } + + [RelationshipSchemaName("lk_publisher_createdby")] + [RelationshipMetadata("OneToMany", "systemuserid", "publisher", "createdby", "Referenced")] + public IEnumerable lk_publisher_createdby + { + get => GetRelatedEntities("lk_publisher_createdby", null); + set => SetRelatedEntities("lk_publisher_createdby", null, value); + } + + [RelationshipSchemaName("webresource_modifiedby")] + [RelationshipMetadata("OneToMany", "systemuserid", "webresource", "modifiedby", "Referenced")] + public IEnumerable webresource_modifiedby + { + get => GetRelatedEntities("webresource_modifiedby", null); + set => SetRelatedEntities("webresource_modifiedby", null, value); + } + + [RelationshipSchemaName("lk_pluginassembly_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "pluginassembly", "createdonbehalfby", "Referenced")] + public IEnumerable lk_pluginassembly_createdonbehalfby + { + get => GetRelatedEntities("lk_pluginassembly_createdonbehalfby", null); + set => SetRelatedEntities("lk_pluginassembly_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("modifiedby_sdkmessageprocessingstepimage")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessageprocessingstepimage", "modifiedby", "Referenced")] + public IEnumerable modifiedby_sdkmessageprocessingstepimage + { + get => GetRelatedEntities("modifiedby_sdkmessageprocessingstepimage", null); + set => SetRelatedEntities("modifiedby_sdkmessageprocessingstepimage", null, value); + } + + [RelationshipSchemaName("lk_plugintype_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "plugintype", "createdonbehalfby", "Referenced")] + public IEnumerable lk_plugintype_createdonbehalfby + { + get => GetRelatedEntities("lk_plugintype_createdonbehalfby", null); + set => SetRelatedEntities("lk_plugintype_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_sdkmessagefilter_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessagefilter", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_sdkmessagefilter_modifiedonbehalfby + { + get => GetRelatedEntities("lk_sdkmessagefilter_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_sdkmessagefilter_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("impersonatinguserid_sdkmessageprocessingstep")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessageprocessingstep", "impersonatinguserid", "Referenced")] + public IEnumerable impersonatinguserid_sdkmessageprocessingstep + { + get => GetRelatedEntities("impersonatinguserid_sdkmessageprocessingstep", null); + set => SetRelatedEntities("impersonatinguserid_sdkmessageprocessingstep", null, value); + } + + [RelationshipSchemaName("lk_pluginassembly_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "pluginassembly", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_pluginassembly_modifiedonbehalfby + { + get => GetRelatedEntities("lk_pluginassembly_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_pluginassembly_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_solutionbase_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "solution", "createdonbehalfby", "Referenced")] + public IEnumerable lk_solutionbase_createdonbehalfby + { + get => GetRelatedEntities("lk_solutionbase_createdonbehalfby", null); + set => SetRelatedEntities("lk_solutionbase_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_customapi_createdby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "createdby", "Referenced")] + public IEnumerable lk_customapi_createdby + { + get => GetRelatedEntities("lk_customapi_createdby", null); + set => SetRelatedEntities("lk_customapi_createdby", null, value); + } + + [RelationshipSchemaName("lk_customapi_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "createdonbehalfby", "Referenced")] + public IEnumerable lk_customapi_createdonbehalfby + { + get => GetRelatedEntities("lk_customapi_createdonbehalfby", null); + set => SetRelatedEntities("lk_customapi_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_customapi_modifiedby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "modifiedby", "Referenced")] + public IEnumerable lk_customapi_modifiedby + { + get => GetRelatedEntities("lk_customapi_modifiedby", null); + set => SetRelatedEntities("lk_customapi_modifiedby", null, value); + } + + [RelationshipSchemaName("lk_customapi_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_customapi_modifiedonbehalfby + { + get => GetRelatedEntities("lk_customapi_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_customapi_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("user_customapi")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "owninguser", "Referenced")] + public IEnumerable user_customapi + { + get => GetRelatedEntities("user_customapi", null); + set => SetRelatedEntities("user_customapi", null, value); + } + + [RelationshipSchemaName("lk_customapirequestparameter_createdby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapirequestparameter", "createdby", "Referenced")] + public IEnumerable lk_customapirequestparameter_createdby + { + get => GetRelatedEntities("lk_customapirequestparameter_createdby", null); + set => SetRelatedEntities("lk_customapirequestparameter_createdby", null, value); + } + + [RelationshipSchemaName("lk_customapirequestparameter_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapirequestparameter", "createdonbehalfby", "Referenced")] + public IEnumerable lk_customapirequestparameter_createdonbehalfby + { + get => GetRelatedEntities("lk_customapirequestparameter_createdonbehalfby", null); + set => SetRelatedEntities("lk_customapirequestparameter_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_customapirequestparameter_modifiedby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapirequestparameter", "modifiedby", "Referenced")] + public IEnumerable lk_customapirequestparameter_modifiedby + { + get => GetRelatedEntities("lk_customapirequestparameter_modifiedby", null); + set => SetRelatedEntities("lk_customapirequestparameter_modifiedby", null, value); + } + + [RelationshipSchemaName("lk_customapirequestparameter_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapirequestparameter", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_customapirequestparameter_modifiedonbehalfby + { + get => GetRelatedEntities("lk_customapirequestparameter_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_customapirequestparameter_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_customapiresponseproperty_createdby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapiresponseproperty", "createdby", "Referenced")] + public IEnumerable lk_customapiresponseproperty_createdby + { + get => GetRelatedEntities("lk_customapiresponseproperty_createdby", null); + set => SetRelatedEntities("lk_customapiresponseproperty_createdby", null, value); + } + + [RelationshipSchemaName("lk_customapiresponseproperty_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapiresponseproperty", "createdonbehalfby", "Referenced")] + public IEnumerable lk_customapiresponseproperty_createdonbehalfby + { + get => GetRelatedEntities("lk_customapiresponseproperty_createdonbehalfby", null); + set => SetRelatedEntities("lk_customapiresponseproperty_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_customapiresponseproperty_modifiedby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapiresponseproperty", "modifiedby", "Referenced")] + public IEnumerable lk_customapiresponseproperty_modifiedby + { + get => GetRelatedEntities("lk_customapiresponseproperty_modifiedby", null); + set => SetRelatedEntities("lk_customapiresponseproperty_modifiedby", null, value); + } + + [RelationshipSchemaName("lk_customapiresponseproperty_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapiresponseproperty", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_customapiresponseproperty_modifiedonbehalfby + { + get => GetRelatedEntities("lk_customapiresponseproperty_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_customapiresponseproperty_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_sdkmessage_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessage", "createdonbehalfby", "Referenced")] + public IEnumerable lk_sdkmessage_createdonbehalfby + { + get => GetRelatedEntities("lk_sdkmessage_createdonbehalfby", null); + set => SetRelatedEntities("lk_sdkmessage_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("createdby_sdkmessagefilter")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessagefilter", "createdby", "Referenced")] + public IEnumerable createdby_sdkmessagefilter + { + get => GetRelatedEntities("createdby_sdkmessagefilter", null); + set => SetRelatedEntities("createdby_sdkmessagefilter", null, value); + } + + [RelationshipSchemaName("lk_sdkmessageprocessingstepimage_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessageprocessingstepimage", "createdonbehalfby", "Referenced")] + public IEnumerable lk_sdkmessageprocessingstepimage_createdonbehalfby + { + get => GetRelatedEntities("lk_sdkmessageprocessingstepimage_createdonbehalfby", null); + set => SetRelatedEntities("lk_sdkmessageprocessingstepimage_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_plugintype_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "plugintype", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_plugintype_modifiedonbehalfby + { + get => GetRelatedEntities("lk_plugintype_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_plugintype_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("createdby_sdkmessageprocessingstep")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessageprocessingstep", "createdby", "Referenced")] + public IEnumerable createdby_sdkmessageprocessingstep + { + get => GetRelatedEntities("createdby_sdkmessageprocessingstep", null); + set => SetRelatedEntities("createdby_sdkmessageprocessingstep", null, value); + } + + [RelationshipSchemaName("lk_publisherbase_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "publisher", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_publisherbase_modifiedonbehalfby + { + get => GetRelatedEntities("lk_publisherbase_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_publisherbase_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_publisher_modifiedby")] + [RelationshipMetadata("OneToMany", "systemuserid", "publisher", "modifiedby", "Referenced")] + public IEnumerable lk_publisher_modifiedby + { + get => GetRelatedEntities("lk_publisher_modifiedby", null); + set => SetRelatedEntities("lk_publisher_modifiedby", null, value); + } + + [RelationshipSchemaName("modifiedby_pluginassembly")] + [RelationshipMetadata("OneToMany", "systemuserid", "pluginassembly", "modifiedby", "Referenced")] + public IEnumerable modifiedby_pluginassembly + { + get => GetRelatedEntities("modifiedby_pluginassembly", null); + set => SetRelatedEntities("modifiedby_pluginassembly", null, value); + } + + [RelationshipSchemaName("lk_sdkmessageprocessingstep_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessageprocessingstep", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_sdkmessageprocessingstep_modifiedonbehalfby + { + get => GetRelatedEntities("lk_sdkmessageprocessingstep_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_sdkmessageprocessingstep_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("webresource_createdby")] + [RelationshipMetadata("OneToMany", "systemuserid", "webresource", "createdby", "Referenced")] + public IEnumerable webresource_createdby + { + get => GetRelatedEntities("webresource_createdby", null); + set => SetRelatedEntities("webresource_createdby", null, value); + } + + [RelationshipSchemaName("modifiedby_sdkmessageprocessingstep")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessageprocessingstep", "modifiedby", "Referenced")] + public IEnumerable modifiedby_sdkmessageprocessingstep + { + get => GetRelatedEntities("modifiedby_sdkmessageprocessingstep", null); + set => SetRelatedEntities("modifiedby_sdkmessageprocessingstep", null, value); + } + + [RelationshipSchemaName("modifiedby_sdkmessagefilter")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessagefilter", "modifiedby", "Referenced")] + public IEnumerable modifiedby_sdkmessagefilter + { + get => GetRelatedEntities("modifiedby_sdkmessagefilter", null); + set => SetRelatedEntities("modifiedby_sdkmessagefilter", null, value); + } + + [RelationshipSchemaName("lk_publisherbase_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "publisher", "createdonbehalfby", "Referenced")] + public IEnumerable lk_publisherbase_createdonbehalfby + { + get => GetRelatedEntities("lk_publisherbase_createdonbehalfby", null); + set => SetRelatedEntities("lk_publisherbase_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("createdby_sdkmessageprocessingstepimage")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessageprocessingstepimage", "createdby", "Referenced")] + public IEnumerable createdby_sdkmessageprocessingstepimage + { + get => GetRelatedEntities("createdby_sdkmessageprocessingstepimage", null); + set => SetRelatedEntities("createdby_sdkmessageprocessingstepimage", null, value); + } + + [RelationshipSchemaName("lk_webresourcebase_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "webresource", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_webresourcebase_modifiedonbehalfby + { + get => GetRelatedEntities("lk_webresourcebase_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_webresourcebase_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_sdkmessagefilter_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessagefilter", "createdonbehalfby", "Referenced")] + public IEnumerable lk_sdkmessagefilter_createdonbehalfby + { + get => GetRelatedEntities("lk_sdkmessagefilter_createdonbehalfby", null); + set => SetRelatedEntities("lk_sdkmessagefilter_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("createdby_plugintype")] + [RelationshipMetadata("OneToMany", "systemuserid", "plugintype", "createdby", "Referenced")] + public IEnumerable createdby_plugintype + { + get => GetRelatedEntities("createdby_plugintype", null); + set => SetRelatedEntities("createdby_plugintype", null, value); + } + + [RelationshipSchemaName("lk_solutionbase_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "solution", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_solutionbase_modifiedonbehalfby + { + get => GetRelatedEntities("lk_solutionbase_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_solutionbase_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("createdby_sdkmessage")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessage", "createdby", "Referenced")] + public IEnumerable createdby_sdkmessage + { + get => GetRelatedEntities("createdby_sdkmessage", null); + set => SetRelatedEntities("createdby_sdkmessage", null, value); + } + + [RelationshipSchemaName("lk_webresourcebase_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "webresource", "createdonbehalfby", "Referenced")] + public IEnumerable lk_webresourcebase_createdonbehalfby + { + get => GetRelatedEntities("lk_webresourcebase_createdonbehalfby", null); + set => SetRelatedEntities("lk_webresourcebase_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_solutioncomponentbase_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "solutioncomponent", "createdonbehalfby", "Referenced")] + public IEnumerable lk_solutioncomponentbase_createdonbehalfby + { + get => GetRelatedEntities("lk_solutioncomponentbase_createdonbehalfby", null); + set => SetRelatedEntities("lk_solutioncomponentbase_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("modifiedby_plugintype")] + [RelationshipMetadata("OneToMany", "systemuserid", "plugintype", "modifiedby", "Referenced")] + public IEnumerable modifiedby_plugintype + { + get => GetRelatedEntities("modifiedby_plugintype", null); + set => SetRelatedEntities("modifiedby_plugintype", null, value); + } + + [RelationshipSchemaName("modifiedby_sdkmessage")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessage", "modifiedby", "Referenced")] + public IEnumerable modifiedby_sdkmessage + { + get => GetRelatedEntities("modifiedby_sdkmessage", null); + set => SetRelatedEntities("modifiedby_sdkmessage", null, value); + } + + [RelationshipSchemaName("lk_sdkmessageprocessingstep_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessageprocessingstep", "createdonbehalfby", "Referenced")] + public IEnumerable lk_sdkmessageprocessingstep_createdonbehalfby + { + get => GetRelatedEntities("lk_sdkmessageprocessingstep_createdonbehalfby", null); + set => SetRelatedEntities("lk_sdkmessageprocessingstep_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_sdkmessageprocessingstepimage_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessageprocessingstepimage", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_sdkmessageprocessingstepimage_modifiedonbehalfby + { + get => GetRelatedEntities("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_sdkmessageprocessingstepimage_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_solutioncomponentbase_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "solutioncomponent", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_solutioncomponentbase_modifiedonbehalfby + { + get => GetRelatedEntities("lk_solutioncomponentbase_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_solutioncomponentbase_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_solution_createdby")] + [RelationshipMetadata("OneToMany", "systemuserid", "solution", "createdby", "Referenced")] + public IEnumerable lk_solution_createdby + { + get => GetRelatedEntities("lk_solution_createdby", null); + set => SetRelatedEntities("lk_solution_createdby", null, value); + } + + [RelationshipSchemaName("createdby_pluginassembly")] + [RelationshipMetadata("OneToMany", "systemuserid", "pluginassembly", "createdby", "Referenced")] + public IEnumerable createdby_pluginassembly + { + get => GetRelatedEntities("createdby_pluginassembly", null); + set => SetRelatedEntities("createdby_pluginassembly", null, value); + } + + [RelationshipSchemaName("system_user_activity_parties")] + [RelationshipMetadata("OneToMany", "systemuserid", "activityparty", "partyid", "Referenced")] + public IEnumerable system_user_activity_parties + { + get => GetRelatedEntities("system_user_activity_parties", null); + set => SetRelatedEntities("system_user_activity_parties", null, value); + } + + [RelationshipSchemaName("lk_solution_modifiedby")] + [RelationshipMetadata("OneToMany", "systemuserid", "solution", "modifiedby", "Referenced")] + public IEnumerable lk_solution_modifiedby + { + get => GetRelatedEntities("lk_solution_modifiedby", null); + set => SetRelatedEntities("lk_solution_modifiedby", null, value); + } + + [RelationshipSchemaName("lk_sdkmessage_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessage", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_sdkmessage_modifiedonbehalfby + { + get => GetRelatedEntities("lk_sdkmessage_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_sdkmessage_modifiedonbehalfby", null, value); + } + + /// + /// Gets the logical column name for a property on the SystemUser entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the SystemUser with the specified columns. + /// + /// Organization service + /// Id of SystemUser to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved SystemUser + public static SystemUser Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/TableAttributeHelpers.cs b/Dataverse/Context/tables/TableAttributeHelpers.cs new file mode 100644 index 0000000..4c92c18 --- /dev/null +++ b/Dataverse/Context/tables/TableAttributeHelpers.cs @@ -0,0 +1,105 @@ +using System.Linq.Expressions; +using Microsoft.Xrm.Sdk; +using Microsoft.Xrm.Sdk.Query; + +namespace XrmSync.Dataverse.Context; + +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +public static class TableAttributeHelpers +{ + /// + /// Gets the logical column name for a property on the entity, using the AttributeLogicalNameAttribute if present. + /// + /// Type of Entity + /// Entity to get the column from + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> lambda) + where T : Entity + { + if (lambda == null) throw new ArgumentNullException(nameof(lambda)); + + MemberExpression? body = lambda.Body as MemberExpression; + + if (body == null) + { + UnaryExpression ubody = (UnaryExpression)lambda.Body; + body = ubody.Operand as MemberExpression; + } + + var attribute = body.Member.GetCustomAttributes(false) + .Where(x => x is AttributeLogicalNameAttribute) + .FirstOrDefault() as AttributeLogicalNameAttribute; + + if (attribute == null) + { + return body.Member.Name; + } + return attribute.LogicalName; + } + + /// + /// Checks if all specified attributes are present on the entity. + /// + /// Type of Entity + /// Entity to check if contains attribute + /// Expression that specify attributes to check + /// Bool for whether all attributes are on the entity + /// If Entity is null + public static bool ContainsAttributes(this T entity, params Expression>[] attrGetters) + where T : Microsoft.Xrm.Sdk.Entity + { + if (attrGetters == null) + { + return true; + } + return attrGetters.Select(a => GetColumnName(a).ToLower()).All(a => entity.Contains(a)); + } + + /// + /// Removes all specified attributes from the entity. Returns true if any attribute was removed. + /// + /// Type of Entity + /// Entity to remove attributes from + /// Expression that specify attributes to remove + /// Return true if any attributes were removed + /// If entity is null + public static bool RemoveAttributes(this T entity, params Expression>[] attrGetters) + where T : Microsoft.Xrm.Sdk.Entity + { + if (attrGetters == null) + { + return false; + } + return attrGetters.Select(a => GetColumnName(a).ToLower()).Any(a => entity.Attributes.Remove(a)); + } + + /// + /// Retrieves an entity of type T with the specified attributes. + /// + /// Type of Entity to retrieve + /// Organization service + /// Id of entity to retrieve + /// Expressions that specify attributes to retrieve + /// The retrieved entity + public static T Retrieve(this IOrganizationService service, Guid id, params Expression>[] attrs) + where T : Entity, new() + { + if (service == null) throw new ArgumentNullException(nameof(service)); + + var entity = new T(); + var entityLogicalName = entity.LogicalName; + + if (attrs == null || attrs.Length == 0) + { + return service.Retrieve(entityLogicalName, id, new ColumnSet(true)).ToEntity(); + } + + var columnNames = attrs.Select(attr => GetColumnName(attr)).ToArray(); + var columnSet = new ColumnSet(columnNames); + + return service.Retrieve(entityLogicalName, id, columnSet).ToEntity(); + } +} \ No newline at end of file diff --git a/Dataverse/Context/tables/WebResource.cs b/Dataverse/Context/tables/WebResource.cs new file mode 100644 index 0000000..407ae02 --- /dev/null +++ b/Dataverse/Context/tables/WebResource.cs @@ -0,0 +1,498 @@ +using Microsoft.Xrm.Sdk; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Diagnostics; +using System.Linq.Expressions; +using System.Runtime.Serialization; +using Microsoft.Xrm.Sdk.Client; + +namespace XrmSync.Dataverse.Context; + +/// +/// Data equivalent to files used in Web development. Web resources provide client-side components that are used to provide custom user interface elements. +/// Display Name: Web Resource +/// +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[EntityLogicalName("webresource")] +[DebuggerDisplay("{DebuggerDisplay,nq}")] +[DataContract] +#pragma warning disable CS8981 // Allows: Only lowercase characters +public partial class WebResource : ExtendedEntity +#pragma warning restore CS8981 +{ + public const string EntityLogicalName = "webresource"; + public const int EntityTypeCode = 9333; + + public WebResource() : base(EntityLogicalName) { } + public WebResource(Guid id) : base(EntityLogicalName, id) { } + + private string DebuggerDisplay => GetDebuggerDisplay("name"); + + [AttributeLogicalName("webresourceid")] + public override Guid Id { + get { + return base.Id; + } + set { + SetId("webresourceid", value); + } + } + + /// + /// Information that specifies whether this component can be deleted. + /// Display Name: Can Be Deleted + /// + [AttributeLogicalName("canbedeleted")] + [DisplayName("Can Be Deleted")] + public BooleanManagedProperty CanBeDeleted + { + get => GetAttributeValue("canbedeleted"); + set => SetAttributeValue("canbedeleted", value); + } + + /// + /// For internal use only. + /// Display Name: Component State + /// + [AttributeLogicalName("componentstate")] + [DisplayName("Component State")] + public componentstate? ComponentState + { + get => this.GetOptionSetValue("componentstate"); + set => this.SetOptionSetValue("componentstate", value); + } + + /// + /// Bytes of the web resource, in Base64 format. + /// Display Name: content + /// + [AttributeLogicalName("content")] + [DisplayName("content")] + [MaxLength(1073741823)] + public string Content + { + get => GetAttributeValue("content"); + set => SetAttributeValue("content", value); + } + + /// + /// Reference to the content file on Azure. + /// Display Name: ContentFileRef + /// + [AttributeLogicalName("contentfileref")] + [DisplayName("ContentFileRef")] + public byte[] ContentFileRef + { + get => GetAttributeValue("contentfileref"); + set => SetAttributeValue("contentfileref", value); + } + + /// + /// Json representation of the content of the resource. + /// Display Name: contentjson + /// + [AttributeLogicalName("contentjson")] + [DisplayName("contentjson")] + [MaxLength(1073741823)] + public string ContentJson + { + get => GetAttributeValue("contentjson"); + set => SetAttributeValue("contentjson", value); + } + + /// + /// Reference to the Json content file on Azure. + /// Display Name: ContentJsonFileRef + /// + [AttributeLogicalName("contentjsonfileref")] + [DisplayName("ContentJsonFileRef")] + public byte[] ContentJsonFileRef + { + get => GetAttributeValue("contentjsonfileref"); + set => SetAttributeValue("contentjsonfileref", value); + } + + /// + /// Unique identifier of the user who created the web resource. + /// Display Name: Created By + /// + [AttributeLogicalName("createdby")] + [DisplayName("Created By")] + public EntityReference? CreatedBy + { + get => GetAttributeValue("createdby"); + set => SetAttributeValue("createdby", value); + } + + /// + /// Date and time when the web resource was created. + /// Display Name: Created On + /// + [AttributeLogicalName("createdon")] + [DisplayName("Created On")] + public DateTime? CreatedOn + { + get => GetAttributeValue("createdon"); + set => SetAttributeValue("createdon", value); + } + + /// + /// Unique identifier of the delegate user who created the web resource. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("createdonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? CreatedOnBehalfBy + { + get => GetAttributeValue("createdonbehalfby"); + set => SetAttributeValue("createdonbehalfby", value); + } + + /// + /// For internal use only. + /// Display Name: DependencyXML + /// + [AttributeLogicalName("dependencyxml")] + [DisplayName("DependencyXML")] + [MaxLength(5000)] + public string DependencyXml + { + get => GetAttributeValue("dependencyxml"); + set => SetAttributeValue("dependencyxml", value); + } + + /// + /// Description of the web resource. + /// Display Name: Description + /// + [AttributeLogicalName("description")] + [DisplayName("Description")] + [MaxLength(2000)] + public string Description + { + get => GetAttributeValue("description"); + set => SetAttributeValue("description", value); + } + + /// + /// Display name of the web resource. + /// Display Name: Display Name + /// + [AttributeLogicalName("displayname")] + [DisplayName("Display Name")] + [MaxLength(200)] + public string DisplayName + { + get => GetAttributeValue("displayname"); + set => SetAttributeValue("displayname", value); + } + + /// + /// Version in which the form is introduced. + /// Display Name: Introduced Version + /// + [AttributeLogicalName("introducedversion")] + [DisplayName("Introduced Version")] + [MaxLength(48)] + public string IntroducedVersion + { + get => GetAttributeValue("introducedversion"); + set => SetAttributeValue("introducedversion", value); + } + + /// + /// Information that specifies whether this web resource is available for mobile client in offline mode. + /// Display Name: Is Available For Mobile Offline + /// + [AttributeLogicalName("isavailableformobileoffline")] + [DisplayName("Is Available For Mobile Offline")] + public bool? IsAvailableForMobileOffline + { + get => GetAttributeValue("isavailableformobileoffline"); + set => SetAttributeValue("isavailableformobileoffline", value); + } + + /// + /// Information that specifies whether this component can be customized. + /// Display Name: Customizable + /// + [AttributeLogicalName("iscustomizable")] + [DisplayName("Customizable")] + public BooleanManagedProperty IsCustomizable + { + get => GetAttributeValue("iscustomizable"); + set => SetAttributeValue("iscustomizable", value); + } + + /// + /// Information that specifies whether this web resource is enabled for mobile client. + /// Display Name: Is Enabled For Mobile Client + /// + [AttributeLogicalName("isenabledformobileclient")] + [DisplayName("Is Enabled For Mobile Client")] + public bool? IsEnabledForMobileClient + { + get => GetAttributeValue("isenabledformobileclient"); + set => SetAttributeValue("isenabledformobileclient", value); + } + + /// + /// Information that specifies whether this component should be hidden. + /// Display Name: Hidden + /// + [AttributeLogicalName("ishidden")] + [DisplayName("Hidden")] + public BooleanManagedProperty IsHidden + { + get => GetAttributeValue("ishidden"); + set => SetAttributeValue("ishidden", value); + } + + /// + /// Display Name: ismanaged + /// + [AttributeLogicalName("ismanaged")] + [DisplayName("ismanaged")] + public bool? IsManaged + { + get => GetAttributeValue("ismanaged"); + set => SetAttributeValue("ismanaged", value); + } + + /// + /// Language of the web resource. + /// Display Name: Language + /// + [AttributeLogicalName("languagecode")] + [DisplayName("Language")] + [Range(0, 2147483647)] + public int? LanguageCode + { + get => GetAttributeValue("languagecode"); + set => SetAttributeValue("languagecode", value); + } + + /// + /// Unique identifier of the user who last modified the web resource. + /// Display Name: Modified By + /// + [AttributeLogicalName("modifiedby")] + [DisplayName("Modified By")] + public EntityReference? ModifiedBy + { + get => GetAttributeValue("modifiedby"); + set => SetAttributeValue("modifiedby", value); + } + + /// + /// Date and time when the web resource was last modified. + /// Display Name: Modified On + /// + [AttributeLogicalName("modifiedon")] + [DisplayName("Modified On")] + public DateTime? ModifiedOn + { + get => GetAttributeValue("modifiedon"); + set => SetAttributeValue("modifiedon", value); + } + + /// + /// Unique identifier of the delegate user who modified the web resource. + /// Display Name: Created By (Delegate) + /// + [AttributeLogicalName("modifiedonbehalfby")] + [DisplayName("Created By (Delegate)")] + public EntityReference? ModifiedOnBehalfBy + { + get => GetAttributeValue("modifiedonbehalfby"); + set => SetAttributeValue("modifiedonbehalfby", value); + } + + /// + /// Name of the web resource. + /// Display Name: Name + /// + [AttributeLogicalName("name")] + [DisplayName("Name")] + [MaxLength(256)] + public string Name + { + get => GetAttributeValue("name"); + set => SetAttributeValue("name", value); + } + + /// + /// Unique identifier of the organization associated with the web resource. + /// Display Name: Organization + /// + [AttributeLogicalName("organizationid")] + [DisplayName("Organization")] + public EntityReference? OrganizationId + { + get => GetAttributeValue("organizationid"); + set => SetAttributeValue("organizationid", value); + } + + /// + /// For internal use only. + /// Display Name: Record Overwrite Time + /// + [AttributeLogicalName("overwritetime")] + [DisplayName("Record Overwrite Time")] + public DateTime? OverwriteTime + { + get => GetAttributeValue("overwritetime"); + set => SetAttributeValue("overwritetime", value); + } + + /// + /// Silverlight runtime version number required by a silverlight web resource. + /// Display Name: Silverlight Version + /// + [AttributeLogicalName("silverlightversion")] + [DisplayName("Silverlight Version")] + [MaxLength(20)] + public string SilverlightVersion + { + get => GetAttributeValue("silverlightversion"); + set => SetAttributeValue("silverlightversion", value); + } + + /// + /// Unique identifier of the associated solution. + /// Display Name: Solution + /// + [AttributeLogicalName("solutionid")] + [DisplayName("Solution")] + public Guid? SolutionId + { + get => GetAttributeValue("solutionid"); + set => SetAttributeValue("solutionid", value); + } + + /// + /// For internal use only. + /// Display Name: Solution + /// + [AttributeLogicalName("supportingsolutionid")] + [DisplayName("Solution")] + public Guid? SupportingSolutionId + { + get => GetAttributeValue("supportingsolutionid"); + set => SetAttributeValue("supportingsolutionid", value); + } + + /// + /// Display Name: versionnumber + /// + [AttributeLogicalName("versionnumber")] + [DisplayName("versionnumber")] + public long? VersionNumber + { + get => GetAttributeValue("versionnumber"); + set => SetAttributeValue("versionnumber", value); + } + + /// + /// Display Name: Web Resource Identifier + /// + [AttributeLogicalName("webresourceid")] + [DisplayName("Web Resource Identifier")] + public Guid WebResourceId + { + get => GetAttributeValue("webresourceid"); + set => SetId("webresourceid", value); + } + + /// + /// For internal use only. + /// Display Name: webresourceidunique + /// + [AttributeLogicalName("webresourceidunique")] + [DisplayName("webresourceidunique")] + public Guid? WebResourceIdUnique + { + get => GetAttributeValue("webresourceidunique"); + set => SetAttributeValue("webresourceidunique", value); + } + + /// + /// Drop-down list for selecting the type of the web resource. + /// Display Name: Type + /// + [AttributeLogicalName("webresourcetype")] + [DisplayName("Type")] + public webresource_webresourcetype? WebResourceType + { + get => this.GetOptionSetValue("webresourcetype"); + set => this.SetOptionSetValue("webresourcetype", value); + } + + [AttributeLogicalName("modifiedby")] + [RelationshipSchemaName("webresource_modifiedby")] + [RelationshipMetadata("ManyToOne", "modifiedby", "systemuser", "systemuserid", "Referencing")] + public SystemUser webresource_modifiedby + { + get => GetRelatedEntity("webresource_modifiedby", null); + set => SetRelatedEntity("webresource_modifiedby", null, value); + } + + [AttributeLogicalName("createdby")] + [RelationshipSchemaName("webresource_createdby")] + [RelationshipMetadata("ManyToOne", "createdby", "systemuser", "systemuserid", "Referencing")] + public SystemUser webresource_createdby + { + get => GetRelatedEntity("webresource_createdby", null); + set => SetRelatedEntity("webresource_createdby", null, value); + } + + [AttributeLogicalName("modifiedonbehalfby")] + [RelationshipSchemaName("lk_webresourcebase_modifiedonbehalfby")] + [RelationshipMetadata("ManyToOne", "modifiedonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_webresourcebase_modifiedonbehalfby + { + get => GetRelatedEntity("lk_webresourcebase_modifiedonbehalfby", null); + set => SetRelatedEntity("lk_webresourcebase_modifiedonbehalfby", null, value); + } + + [AttributeLogicalName("createdonbehalfby")] + [RelationshipSchemaName("lk_webresourcebase_createdonbehalfby")] + [RelationshipMetadata("ManyToOne", "createdonbehalfby", "systemuser", "systemuserid", "Referencing")] + public SystemUser lk_webresourcebase_createdonbehalfby + { + get => GetRelatedEntity("lk_webresourcebase_createdonbehalfby", null); + set => SetRelatedEntity("lk_webresourcebase_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("solution_configuration_webresource")] + [RelationshipMetadata("OneToMany", "webresourceid", "solution", "configurationpageid", "Referenced")] + public IEnumerable solution_configuration_webresource + { + get => GetRelatedEntities("solution_configuration_webresource", null); + set => SetRelatedEntities("solution_configuration_webresource", null, value); + } + + /// + /// Gets the logical column name for a property on the WebResource entity, using the AttributeLogicalNameAttribute if present. + /// + /// Expression to pick the column + /// Name of column + /// If no expression is provided + /// If the expression is not x => x.column + public static string GetColumnName(Expression> column) + { + return TableAttributeHelpers.GetColumnName(column); + } + + /// + /// Retrieves the WebResource with the specified columns. + /// + /// Organization service + /// Id of WebResource to retrieve + /// Expressions that specify columns to retrieve + /// The retrieved WebResource + public static WebResource Retrieve(IOrganizationService service, Guid id, params Expression>[] columns) + { + return service.Retrieve(id, columns); + } +} \ No newline at end of file diff --git a/Dataverse/CustomApiReader.cs b/Dataverse/CustomApiReader.cs index 620c6ac..1f29f87 100644 --- a/Dataverse/CustomApiReader.cs +++ b/Dataverse/CustomApiReader.cs @@ -12,7 +12,7 @@ public List GetCustomApis(Guid solutionId) // Get CustomAPIs that are part of the solution List data = [.. from api in reader.CustomApis - join sc in reader.SolutionComponents on api.CustomApiId equals sc.ObjectId + join sc in reader.SolutionComponents on api.CustomAPIId equals sc.ObjectId where sc.SolutionId != null && sc.SolutionId.Id == solutionId select new CustomApiDefinition(api.Name ?? string.Empty) { @@ -22,9 +22,9 @@ join sc in reader.SolutionComponents on api.CustomApiId equals sc.ObjectId Description = api.Description ?? string.Empty, IsFunction = api.IsFunction ?? false, EnabledForWorkflow = api.WorkflowSdkStepEnabled ?? false, - BindingType = (BindingType)(api.BindingType ?? CustomApi_BindingType.Global), + BindingType = (BindingType)(api.BindingType ?? customapi_bindingtype.Global), BoundEntityLogicalName = api.BoundEntityLogicalName ?? string.Empty, - AllowedCustomProcessingStepType = (AllowedCustomProcessingStepType)(api.AllowedCustomProcessingStepType ?? CustomApi_AllowedCustomProcessingStepType.None), + AllowedCustomProcessingStepType = (AllowedCustomProcessingStepType)(api.AllowedCustomProcessingStepType ?? customapi_allowedcustomprocessingsteptype.None), OwnerId = api.OwnerId != null ? api.OwnerId.Id : Guid.Empty, IsCustomizable = api.IsCustomizable != null ? api.IsCustomizable.Value : false, IsPrivate = api.IsPrivate ?? false, @@ -47,8 +47,8 @@ [.. data.Select(d => d.PluginType.Id).Distinct()], pt => pt.Name ).ToDictionary(pt => pt.Id, pt => pt.Name ?? string.Empty); - var reqs = reader.RetrieveByColumn( - r => r.CustomApiId, + var reqs = reader.RetrieveByColumn( + r => r.CustomAPIId, [.. data.Select(d => d.Id).Distinct()], r => r.Name, r => r.DisplayName, @@ -57,8 +57,8 @@ [.. data.Select(d => d.Id).Distinct()], r => r.Type, r => r.IsOptional, r => r.IsCustomizable, - r => r.CustomApiId - ).ToLookup(r => r.CustomApiId?.Id ?? Guid.Empty, r => new RequestParameter(r.Name ?? string.Empty) { + r => r.CustomAPIId + ).ToLookup(r => r.CustomAPIId?.Id ?? Guid.Empty, r => new RequestParameter(r.Name ?? string.Empty) { Id = r.Id, DisplayName = r.DisplayName ?? string.Empty, UniqueName = r.UniqueName ?? string.Empty, @@ -68,8 +68,8 @@ [.. data.Select(d => d.Id).Distinct()], IsCustomizable = r.IsCustomizable?.Value ?? false }); - var resps = reader.RetrieveByColumn( - r => r.CustomApiId, + var resps = reader.RetrieveByColumn( + r => r.CustomAPIId, [.. data.Select(d => d.Id).Distinct()], r => r.Name, r => r.DisplayName, @@ -77,8 +77,8 @@ [.. data.Select(d => d.Id).Distinct()], r => r.LogicalEntityName, r => r.Type, r => r.IsCustomizable, - r => r.CustomApiId - ).ToLookup(r => r.CustomApiId?.Id ?? Guid.Empty, r => new ResponseProperty(r.Name ?? string.Empty) { + r => r.CustomAPIId + ).ToLookup(r => r.CustomAPIId?.Id ?? Guid.Empty, r => new ResponseProperty(r.Name ?? string.Empty) { Id = r.Id, DisplayName = r.DisplayName ?? string.Empty, UniqueName = r.UniqueName ?? string.Empty, diff --git a/Dataverse/CustomApiWriter.cs b/Dataverse/CustomApiWriter.cs index f9549d4..854fd6f 100644 --- a/Dataverse/CustomApiWriter.cs +++ b/Dataverse/CustomApiWriter.cs @@ -1,4 +1,3 @@ -using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Microsoft.Xrm.Sdk; using XrmSync.Dataverse.Context; @@ -21,7 +20,7 @@ public ICollection CreateCustomApis(ICollection CreateCustomApis(ICollection> Creat foreach (var (param, customApi) in requestParameters) { - var entity = new CustomApiRequestParameter + var entity = new CustomAPIRequestParameter { - CustomApiId = new EntityReference(CustomApi.EntityLogicalName, customApi.Id), + CustomAPIId = new EntityReference(CustomAPI.EntityLogicalName, customApi.Id), Name = param.Name, UniqueName = param.UniqueName, DisplayName = param.DisplayName, IsCustomizable = new BooleanManagedProperty(param.IsCustomizable), IsOptional = param.IsOptional, LogicalEntityName = param.LogicalEntityName, - Type = (CustomApiFieldType)param.Type + Type = (customapifieldtype)param.Type }; param.Id = writer.Create(entity, Parameters); @@ -79,15 +78,15 @@ public ICollection> Creat foreach (var (prop, customApi) in responseProperties) { - var entity = new CustomApiResponseProperty + var entity = new CustomAPIResponseProperty { Name = prop.Name, UniqueName = prop.UniqueName, - CustomApiId = new EntityReference(CustomApi.EntityLogicalName, customApi.Id), + CustomAPIId = new EntityReference(CustomAPI.EntityLogicalName, customApi.Id), DisplayName = prop.DisplayName, IsCustomizable = new BooleanManagedProperty(prop.IsCustomizable), LogicalEntityName = prop.LogicalEntityName, - Type = (CustomApiFieldType)prop.Type + Type = (customapifieldtype)prop.Type }; prop.Id = writer.Create(entity, Parameters); @@ -100,16 +99,16 @@ public void UpdateCustomApis(ICollection customApis, string { var updateRequests = customApis.Select(api => { - var definition = new CustomApi + var definition = new CustomAPI { Id = api.Id, DisplayName = api.DisplayName, Description = GetDescription(api, description), IsFunction = api.IsFunction, WorkflowSdkStepEnabled = api.EnabledForWorkflow, - BindingType = (CustomApi_BindingType)api.BindingType, + BindingType = (customapi_bindingtype)api.BindingType, BoundEntityLogicalName = api.BoundEntityLogicalName, - AllowedCustomProcessingStepType = (CustomApi_AllowedCustomProcessingStepType)api.AllowedCustomProcessingStepType, + AllowedCustomProcessingStepType = (customapi_allowedcustomprocessingsteptype)api.AllowedCustomProcessingStepType, PluginTypeId = new EntityReference(Context.PluginType.EntityLogicalName, api.PluginType.Id), IsCustomizable = new BooleanManagedProperty(api.IsCustomizable), IsPrivate = api.IsPrivate, @@ -132,14 +131,14 @@ public void UpdateCustomApis(ICollection customApis, string public void UpdateRequestParameters(ICollection requestParameters) { - var updateRequests = requestParameters.Select(param => new CustomApiRequestParameter() + var updateRequests = requestParameters.Select(param => new CustomAPIRequestParameter() { Id = param.Id, DisplayName = param.DisplayName, IsCustomizable = new BooleanManagedProperty(param.IsCustomizable), IsOptional = param.IsOptional, LogicalEntityName = param.LogicalEntityName, - Type = (CustomApiFieldType?)param.Type + Type = (customapifieldtype?)param.Type }).ToList(); if (updateRequests.Count > 0) @@ -148,13 +147,13 @@ public void UpdateRequestParameters(ICollection requestParamet public void UpdateResponseProperties(ICollection responseProperties) { - var updateRequests = responseProperties.Select(prop => new CustomApiResponseProperty() + var updateRequests = responseProperties.Select(prop => new CustomAPIResponseProperty() { Id = prop.Id, DisplayName = prop.DisplayName, IsCustomizable = new BooleanManagedProperty(prop.IsCustomizable), LogicalEntityName = prop.LogicalEntityName, - Type = (CustomApiFieldType?)prop.Type + Type = (customapifieldtype?)prop.Type }).ToList(); if (updateRequests.Count > 0) @@ -163,17 +162,17 @@ public void UpdateResponseProperties(ICollection responsePrope public void DeleteCustomApiDefinitions(IEnumerable customApis) { - writer.DeleteMultiple(customApis.ToDeleteRequests(CustomApi.EntityLogicalName)); + writer.DeleteMultiple(customApis.ToDeleteRequests(CustomAPI.EntityLogicalName)); } public void DeleteCustomApiRequestParameters(IEnumerable requestParameters) { - writer.DeleteMultiple(requestParameters.ToDeleteRequests(CustomApiRequestParameter.EntityLogicalName)); + writer.DeleteMultiple(requestParameters.ToDeleteRequests(CustomAPIRequestParameter.EntityLogicalName)); } public void DeleteCustomApiResponseProperties(IEnumerable responseProperties) { - writer.DeleteMultiple(responseProperties.ToDeleteRequests(CustomApiResponseProperty.EntityLogicalName)); + writer.DeleteMultiple(responseProperties.ToDeleteRequests(CustomAPIResponseProperty.EntityLogicalName)); } private static string GetDescription(CustomApiDefinition api, string description) diff --git a/Dataverse/DataverseReader.cs b/Dataverse/DataverseReader.cs index c243d34..4bacb1f 100644 --- a/Dataverse/DataverseReader.cs +++ b/Dataverse/DataverseReader.cs @@ -24,11 +24,11 @@ internal sealed class DataverseReader(ServiceClient serviceClient) : IDataverseR public IQueryable PluginAssemblies => DataverseContext.PluginAssemblySet; - public IQueryable CustomApis => DataverseContext.CustomApiSet; + public IQueryable CustomApis => DataverseContext.CustomAPISet; - public IQueryable CustomApiRequestParameters => DataverseContext.CustomApiRequestParameterSet; + public IQueryable CustomApiRequestParameters => DataverseContext.CustomAPIRequestParameterSet; - public IQueryable CustomApiResponseProperties => DataverseContext.CustomApiResponsePropertySet; + public IQueryable CustomApiResponseProperties => DataverseContext.CustomAPIResponsePropertySet; public IQueryable PluginTypes => DataverseContext.PluginTypeSet; diff --git a/Dataverse/Interfaces/IDataverseReader.cs b/Dataverse/Interfaces/IDataverseReader.cs index 0425331..c2cb6c8 100644 --- a/Dataverse/Interfaces/IDataverseReader.cs +++ b/Dataverse/Interfaces/IDataverseReader.cs @@ -12,9 +12,9 @@ public interface IDataverseReader IQueryable SolutionComponents { get; } IQueryable Publishers { get; } IQueryable PluginAssemblies { get; } - IQueryable CustomApis { get; } - IQueryable CustomApiRequestParameters { get; } - IQueryable CustomApiResponseProperties { get; } + IQueryable CustomApis { get; } + IQueryable CustomApiRequestParameters { get; } + IQueryable CustomApiResponseProperties { get; } IQueryable PluginTypes { get; } IQueryable SdkMessages { get; } IQueryable SdkMessageFilters { get; } diff --git a/Dataverse/MessageReader.cs b/Dataverse/MessageReader.cs index 9f98518..84cd360 100644 --- a/Dataverse/MessageReader.cs +++ b/Dataverse/MessageReader.cs @@ -53,7 +53,7 @@ public Dictionary GetMessageFilters(IEnumerable mf.PrimaryObjectTypeCode ?? string.Empty, + mf => mf.PrimaryObjectTypeCode?.ToString() ?? string.Empty, mf => mf.Id ) )).ToDictionary( diff --git a/Dataverse/PluginAssemblyWriter.cs b/Dataverse/PluginAssemblyWriter.cs index 47a5a21..c2b768d 100644 --- a/Dataverse/PluginAssemblyWriter.cs +++ b/Dataverse/PluginAssemblyWriter.cs @@ -19,7 +19,7 @@ public Guid CreatePluginAssembly(string pluginName, string dllPath, string sourc Name = pluginName, Content = GetBase64StringFromFile(dllPath), SourceHash = sourceHash, - IsolationMode = PluginAssembly_IsolationMode.Sandbox, + IsolationMode = pluginassembly_isolationmode.Sandbox, Version = assemblyVersion, Description = description }; @@ -35,7 +35,7 @@ public void UpdatePluginAssembly(Guid assemblyId, string pluginName, string dllP Name = pluginName, Content = GetBase64StringFromFile(dllPath), SourceHash = sourceHash, - IsolationMode = PluginAssembly_IsolationMode.Sandbox, + IsolationMode = pluginassembly_isolationmode.Sandbox, Version = assemblyVersion, Description = description }; diff --git a/Dataverse/PluginWriter.cs b/Dataverse/PluginWriter.cs index c084992..f60af46 100644 --- a/Dataverse/PluginWriter.cs +++ b/Dataverse/PluginWriter.cs @@ -37,10 +37,10 @@ public void UpdatePluginSteps(IEnumerable pluginSteps, string description) .Select(x => new SdkMessageProcessingStep() { Id = x.Id, - Stage = (SdkMessageProcessingStep_Stage)x.ExecutionStage, + Stage = (sdkmessageprocessingstep_stage)x.ExecutionStage, FilteringAttributes = x.FilteredAttributes, - SupportedDeployment = (SdkMessageProcessingStep_SupportedDeployment)x.Deployment, - Mode = (SdkMessageProcessingStep_Mode)x.ExecutionMode, + SupportedDeployment = (sdkmessageprocessingstep_supporteddeployment)x.Deployment, + Mode = (sdkmessageprocessingstep_mode)x.ExecutionMode, Rank = x.ExecutionOrder, Description = description, ImpersonatingUserId = x.UserContext == Guid.Empty ? null : new EntityReference(SystemUser.EntityLogicalName, x.UserContext), @@ -66,7 +66,7 @@ public void UpdatePluginImages(IEnumerable> pluginI Id = image.Id, Name = image.Name, EntityAlias = image.EntityAlias, - ImageType = (SdkMessageProcessingStepImage_ImageType)image.ImageType, + ImageType = (sdkmessageprocessingstepimage_imagetype)image.ImageType, Attributes1 = image.Attributes, SdkMessageProcessingStepId = new EntityReference(SdkMessageProcessingStep.EntityLogicalName, step.Id), }; @@ -123,13 +123,13 @@ public ICollection> CreatePluginSteps(IC Name = step.Name, AsyncAutoDelete = step.AsyncAutoDelete, Rank = step.ExecutionOrder, - Mode = (SdkMessageProcessingStep_Mode)step.ExecutionMode, + Mode = (sdkmessageprocessingstep_mode)step.ExecutionMode, #pragma warning disable CS0612 // Type or member is obsolete PluginTypeId = new EntityReference(PluginType.EntityLogicalName, plugin.Id), #pragma warning restore CS0612 // Type or member is obsolete - Stage = (SdkMessageProcessingStep_Stage)step.ExecutionStage, + Stage = (sdkmessageprocessingstep_stage)step.ExecutionStage, FilteringAttributes = step.FilteredAttributes, - SupportedDeployment = (SdkMessageProcessingStep_SupportedDeployment)step.Deployment, + SupportedDeployment = (sdkmessageprocessingstep_supporteddeployment)step.Deployment, Description = description, ImpersonatingUserId = impersonatingUserReference, SdkMessageId = new EntityReference(SdkMessage.EntityLogicalName, messageId), @@ -152,9 +152,9 @@ public ICollection> CreatePluginImages(ICollection< { Name = image.Name, EntityAlias = image.EntityAlias, - ImageType = (SdkMessageProcessingStepImage_ImageType)image.ImageType, + ImageType = (sdkmessageprocessingstepimage_imagetype)image.ImageType, Attributes1 = image.Attributes, - MessagePropertyName = MessageReader.GetMessagePropertyName(step.EventOperation), + MessagePropertyName = MessageReader.GetMessagePropertyName(step.EventOperation) ?? string.Empty, SdkMessageProcessingStepId = new EntityReference(SdkMessageProcessingStep.EntityLogicalName, step.Id) }; diff --git a/Dataverse/WebresourceWriter.cs b/Dataverse/WebresourceWriter.cs index c298791..bd74873 100644 --- a/Dataverse/WebresourceWriter.cs +++ b/Dataverse/WebresourceWriter.cs @@ -23,7 +23,7 @@ public void Create(IEnumerable webresources) Name = wr.Name, Content = wr.Content, DisplayName = wr.DisplayName, - WebResourceType = (WebResource_WebResourceType)wr.Type + WebResourceType = (webresource_webresourcetype)wr.Type }, Parameters); } } diff --git a/Dataverse/XrmPluginSync.EarlyBoundGenerate.xml b/Dataverse/XrmPluginSync.EarlyBoundGenerate.xml deleted file mode 100644 index 3acbf66..0000000 --- a/Dataverse/XrmPluginSync.EarlyBoundGenerate.xml +++ /dev/null @@ -1,165 +0,0 @@ - - - true - DLaB.ModelBuilderExtensions.CustomizeCodeDomService,DLaB.ModelBuilderExtensions - DLaB.ModelBuilderExtensions.CodeGenerationService,DLaB.ModelBuilderExtensions - DLaB.ModelBuilderExtensions.CodeWriterFilterService,DLaB.ModelBuilderExtensions - DLaB.ModelBuilderExtensions.CodeWriterMessageFilterService,DLaB.ModelBuilderExtensions - false - true - Entities - - - analyze - - true - false - true - true - - builderSettings.json - true - - true - DLaB.EarlyBoundGeneratorV2\DLaB.Dictionary.txt - false - true - true - true - true - - customapi| -customapirequestparameter| -customapiresponseproperty| -dependency| -dependencynode| -pluginassembly| -plugintype| -publisher| -sdkmessage| -sdkmessagefilter| -sdkmessageprocessingstep| -sdkmessageprocessingstepimage| -solution| -solutioncomponent| -systemuser| -webresource - - - - - true - false - true - true - true - true - true - false - false - true - false - false - true - _ - false - false - true - {0}_{1} - true - 2 - true - *(Deprecated)* - - - 0th:0th| -1st:1st| -2nd:2nd| -3rd:3rd| -4th:4th| -5th:5th| -6th:6th| -7th:7th| -8th:8th| -9th:9th| -conversationindex:ConversationIndex| -customcorrelation:CustomCorrelation| -fedex:FedEx| -groupme:GroupMe| -linkedin:LinkedIn| -nontransient:NonTransient| -notset:NotSet| -reminderexpired:ReminderExpired| -reminderinvalid:ReminderInvalid| -reminderset:ReminderSet| -smartmatching:SmartMatching| -trackingtoken:TrackingToken| -xheader:XHeader - Context - - - false - true - true - false - false - AccessTeam| -ActiveState| -AssignedTo| -BusinessAs| -CardUci| -DefaultOnCase| -EmailAnd| -EmailSend| -EmailSender| -FeatureSet| -FedEx| -ForAn| -Geronimo| -IsMsTeams| -IsPaiEnabled| -IsSopIntegration| -MsDynCe_| -MsDynMkt_| -MsDyUsd| -O365Admin| -OcSkillIdentMlModel| -OnHold| -OrderId| -OwnerOnAssign| -ParticipatesIn| -PartiesOnEmail| -PauseStates| -PredictiveAddress| -SentOn| -SettingsAndSummary| -SlaId| -SlaKpi| -SyncOptIn| -Timeout| -TradeShow| -UserPuid| -VoiceMail - DLaB.EarlyBoundGeneratorV2\alphabets - false - true - false - false - false - false - - false - false - Messages - DLaB.ModelBuilderExtensions.MetadataProviderService,DLaB.ModelBuilderExtensions - DLaB.ModelBuilderExtensions.MetadataQueryProviderService,DLaB.ModelBuilderExtensions - DLaB.ModelBuilderExtensions.NamingService,DLaB.ModelBuilderExtensions - OptionSets - XrmSync.Dataverse.Context - DataverseContext - true - 2.2025.8.26 - true - 2.2025.8.26 - \ No newline at end of file diff --git a/Dataverse/appsettings.json b/Dataverse/appsettings.json new file mode 100644 index 0000000..840eded --- /dev/null +++ b/Dataverse/appsettings.json @@ -0,0 +1,26 @@ +{ + "DATAVERSE_URL": "https://org6004706f.crm4.dynamics.com", + "XrmContext": { + "OutputDirectory": "./Context", + "ServiceContextName": "DataverseContext", + "NamespaceSetting": "XrmSync.Dataverse.Context", + "Entities": [ + "customapi", + "customapirequestparameter", + "customapiresponseproperty", + "dependency", + "dependencynode", + "pluginassembly", + "plugintype", + "publisher", + "sdkmessage", + "sdkmessagefilter", + "sdkmessageprocessingstep", + "sdkmessageprocessingstepimage", + "solution", + "solutioncomponent", + "systemuser", + "webresource" + ] + } +} diff --git a/Model/Webresource/WebresourceType.cs b/Model/Webresource/WebresourceType.cs index 23a455d..0ece123 100644 --- a/Model/Webresource/WebresourceType.cs +++ b/Model/Webresource/WebresourceType.cs @@ -2,16 +2,16 @@ public enum WebresourceType { - WebpageHtml = 1, - StyleSheetCss = 2, - ScriptJscript = 3, - DataXml = 4, - PngFormat = 5, - JpgFormat = 6, - GifFormat = 7, - SilverlightXap = 8, - StyleSheetXsl = 9, - IcoFormat = 10, - VectorFormatSvg = 11, - StringResx = 12, + HTML = 1, + CSS = 2, + JavaScript = 3, + XML = 4, + PNG = 5, + JPG = 6, + GIF = 7, + SilverlightXAP = 8, + XSL = 9, + ICO = 10, + SVG = 11, + RSX = 12, } diff --git a/Tests/Webresources/WebresourceReaderTests.cs b/Tests/Webresources/WebresourceReaderTests.cs index 0a3d705..56032b5 100644 --- a/Tests/Webresources/WebresourceReaderTests.cs +++ b/Tests/Webresources/WebresourceReaderTests.cs @@ -17,7 +17,7 @@ public WebresourceReaderTests() } private static WebResource CreateWebResource(Guid id, string name, string displayName, - WebResource_WebResourceType type, string content, bool isManaged = false) + webresource_webresourcetype type, string content, bool isManaged = false) { var wr = new WebResource { Id = id }; wr["name"] = name; @@ -47,9 +47,9 @@ public void GetWebresources_ReturnsWebresourcesForSolution() var webresources = new List { CreateWebResource(webresourceId1, "test_solution/test1.js", "Test 1", - WebResource_WebResourceType.ScriptJscript, "Y29uc29sZS5sb2coJ3Rlc3QxJyk7"), + webresource_webresourcetype.ScriptJScript, "Y29uc29sZS5sb2coJ3Rlc3QxJyk7"), CreateWebResource(webresourceId2, "test_solution/test2.js", "Test 2", - WebResource_WebResourceType.ScriptJscript, "Y29uc29sZS5sb2coJ3Rlc3QyJyk7") + webresource_webresourcetype.ScriptJScript, "Y29uc29sZS5sb2coJ3Rlc3QyJyk7") }.AsQueryable(); var solutionComponents = new List @@ -82,9 +82,9 @@ public void GetWebresources_ExcludesManagedWebresources() var webresources = new List { CreateWebResource(unmanagedId, "test_solution/unmanaged.js", "Unmanaged", - WebResource_WebResourceType.ScriptJscript, "dW5tYW5hZ2Vk", false), + webresource_webresourcetype.ScriptJScript, "dW5tYW5hZ2Vk", false), CreateWebResource(managedId, "test_solution/managed.js", "Managed", - WebResource_WebResourceType.ScriptJscript, "bWFuYWdlZA==", true) + webresource_webresourcetype.ScriptJScript, "bWFuYWdlZA==", true) }.AsQueryable(); var solutionComponents = new List @@ -114,7 +114,7 @@ public void GetWebresources_MapsWebresourceTypeCorrectly() var webresources = new List { CreateWebResource(webresourceId, "test.css", "Test CSS", - WebResource_WebResourceType.StyleSheetCss, "Ym9keXt9") + webresource_webresourcetype.StyleSheetCSS, "Ym9keXt9") }.AsQueryable(); var solutionComponents = new List @@ -130,7 +130,7 @@ public void GetWebresources_MapsWebresourceTypeCorrectly() // Assert Assert.Single(result); - Assert.Equal(WebresourceType.StyleSheetCss, result[0].Type); + Assert.Equal(WebresourceType.CSS, result[0].Type); } [Fact] @@ -161,11 +161,11 @@ public void GetWebresources_OrdersByName() var webresources = new List { CreateWebResource(id1, "z_last.js", "Last", - WebResource_WebResourceType.ScriptJscript, "bGFzdA=="), + webresource_webresourcetype.ScriptJScript, "bGFzdA=="), CreateWebResource(id2, "a_first.js", "First", - WebResource_WebResourceType.ScriptJscript, "Zmlyc3Q="), + webresource_webresourcetype.ScriptJScript, "Zmlyc3Q="), CreateWebResource(id3, "m_middle.js", "Middle", - WebResource_WebResourceType.ScriptJscript, "bWlkZGxl") + webresource_webresourcetype.ScriptJScript, "bWlkZGxl") }.AsQueryable(); var solutionComponents = new List diff --git a/Tests/Webresources/WebresourceSyncServiceTests.cs b/Tests/Webresources/WebresourceSyncServiceTests.cs index 0170ae6..a5914d3 100644 --- a/Tests/Webresources/WebresourceSyncServiceTests.cs +++ b/Tests/Webresources/WebresourceSyncServiceTests.cs @@ -49,7 +49,7 @@ public async Task Sync_CreatesNewWebresources_WhenOnlyExistLocally() var localWebresources = new List { - new("test_TestSolution/test.js", "Test Script", WebresourceType.ScriptJscript, "Y29uc29sZS5sb2coJ3Rlc3QnKTs=") + new("test_TestSolution/test.js", "Test Script", WebresourceType.JavaScript, "Y29uc29sZS5sb2coJ3Rlc3QnKTs=") }; _localReader.ReadWebResourceFolder(_options.FolderPath, $"{solutionPrefix}_{_options.SolutionName}") .Returns(localWebresources); @@ -79,7 +79,7 @@ public async Task Sync_DeletesWebresources_WhenOnlyExistRemotely() var remoteWebresources = new List { - new("test_TestSolution/old.js", "Old Script", WebresourceType.ScriptJscript, "b2xkQ29kZQ==") { Id = Guid.NewGuid() } + new("test_TestSolution/old.js", "Old Script", WebresourceType.JavaScript, "b2xkQ29kZQ==") { Id = Guid.NewGuid() } }; _webresourceReader.GetWebresources(solutionId).Returns(remoteWebresources); @@ -104,14 +104,14 @@ public async Task Sync_UpdatesWebresources_WhenContentDiffers() var localWebresources = new List { - new("test_TestSolution/test.js", "Test Script", WebresourceType.ScriptJscript, "bmV3Q29kZQ==") + new("test_TestSolution/test.js", "Test Script", WebresourceType.JavaScript, "bmV3Q29kZQ==") }; _localReader.ReadWebResourceFolder(_options.FolderPath, $"{solutionPrefix}_{_options.SolutionName}") .Returns(localWebresources); var remoteWebresources = new List { - new("test_TestSolution/test.js", "Test Script", WebresourceType.ScriptJscript, "b2xkQ29kZQ==") { Id = webresourceId } + new("test_TestSolution/test.js", "Test Script", WebresourceType.JavaScript, "b2xkQ29kZQ==") { Id = webresourceId } }; _webresourceReader.GetWebresources(solutionId).Returns(remoteWebresources); @@ -139,14 +139,14 @@ public async Task Sync_UpdatesWebresources_WhenDisplayNameDiffers() var localWebresources = new List { - new("test_TestSolution/test.js", "Updated Display Name", WebresourceType.ScriptJscript, "c2FtZUNvZGU=") + new("test_TestSolution/test.js", "Updated Display Name", WebresourceType.JavaScript, "c2FtZUNvZGU=") }; _localReader.ReadWebResourceFolder(_options.FolderPath, $"{solutionPrefix}_{_options.SolutionName}") .Returns(localWebresources); var remoteWebresources = new List { - new("test_TestSolution/test.js", "Old Display Name", WebresourceType.ScriptJscript, "c2FtZUNvZGU=") { Id = webresourceId } + new("test_TestSolution/test.js", "Old Display Name", WebresourceType.JavaScript, "c2FtZUNvZGU=") { Id = webresourceId } }; _webresourceReader.GetWebresources(solutionId).Returns(remoteWebresources); @@ -173,14 +173,14 @@ public async Task Sync_DoesNotUpdate_WhenWebresourcesAreIdentical() var localWebresources = new List { - new("test_TestSolution/test.js", "Test Script", WebresourceType.ScriptJscript, "c2FtZUNvZGU=") + new("test_TestSolution/test.js", "Test Script", WebresourceType.JavaScript, "c2FtZUNvZGU=") }; _localReader.ReadWebResourceFolder(_options.FolderPath, $"{solutionPrefix}_{_options.SolutionName}") .Returns(localWebresources); var remoteWebresources = new List { - new("test_TestSolution/test.js", "Test Script", WebresourceType.ScriptJscript, "c2FtZUNvZGU=") { Id = webresourceId } + new("test_TestSolution/test.js", "Test Script", WebresourceType.JavaScript, "c2FtZUNvZGU=") { Id = webresourceId } }; _webresourceReader.GetWebresources(solutionId).Returns(remoteWebresources); @@ -206,18 +206,18 @@ public async Task Sync_HandlesMultipleOperations_Simultaneously() var localWebresources = new List { - new("test_TestSolution/new.js", "New Script", WebresourceType.ScriptJscript, "bmV3"), - new("test_TestSolution/existing.js", "Existing", WebresourceType.ScriptJscript, "ZXhpc3Rpbmc="), - new("test_TestSolution/update.js", "Updated", WebresourceType.ScriptJscript, "dXBkYXRlZA==") + new("test_TestSolution/new.js", "New Script", WebresourceType.JavaScript, "bmV3"), + new("test_TestSolution/existing.js", "Existing", WebresourceType.JavaScript, "ZXhpc3Rpbmc="), + new("test_TestSolution/update.js", "Updated", WebresourceType.JavaScript, "dXBkYXRlZA==") }; _localReader.ReadWebResourceFolder(_options.FolderPath, $"{solutionPrefix}_{_options.SolutionName}") .Returns(localWebresources); var remoteWebresources = new List { - new("test_TestSolution/existing.js", "Existing", WebresourceType.ScriptJscript, "ZXhpc3Rpbmc=") { Id = existingId }, - new("test_TestSolution/update.js", "Updated", WebresourceType.ScriptJscript, "b2xk") { Id = toUpdateId }, - new("test_TestSolution/delete.js", "To Delete", WebresourceType.ScriptJscript, "ZGVsZXRl") { Id = toDeleteId } + new("test_TestSolution/existing.js", "Existing", WebresourceType.JavaScript, "ZXhpc3Rpbmc=") { Id = existingId }, + new("test_TestSolution/update.js", "Updated", WebresourceType.JavaScript, "b2xk") { Id = toUpdateId }, + new("test_TestSolution/delete.js", "To Delete", WebresourceType.JavaScript, "ZGVsZXRl") { Id = toDeleteId } }; _webresourceReader.GetWebresources(solutionId).Returns(remoteWebresources); @@ -244,14 +244,14 @@ public async Task Sync_IsCaseInsensitive_ForNameMatching() var localWebresources = new List { - new("test_testsolution/test.js", "Test Script", WebresourceType.ScriptJscript, "dGVzdA==") + new("test_testsolution/test.js", "Test Script", WebresourceType.JavaScript, "dGVzdA==") }; _localReader.ReadWebResourceFolder(_options.FolderPath, $"{solutionPrefix}_{_options.SolutionName}") .Returns(localWebresources); var remoteWebresources = new List { - new("TEST_TESTSOLUTION/TEST.JS", "Test Script", WebresourceType.ScriptJscript, "dGVzdA==") { Id = webresourceId } + new("TEST_TESTSOLUTION/TEST.JS", "Test Script", WebresourceType.JavaScript, "dGVzdA==") { Id = webresourceId } }; _webresourceReader.GetWebresources(solutionId).Returns(remoteWebresources); @@ -274,11 +274,11 @@ public async Task Sync_HandlesMultipleWebresourceTypes() var localWebresources = new List { - new("test_TestSolution/script.js", "Script", WebresourceType.ScriptJscript, "anM="), - new("test_TestSolution/style.css", "Style", WebresourceType.StyleSheetCss, "Y3Nz"), - new("test_TestSolution/page.html", "Page", WebresourceType.WebpageHtml, "aHRtbA=="), - new("test_TestSolution/image.png", "Image", WebresourceType.PngFormat, "cG5n"), - new("test_TestSolution/data.xml", "Data", WebresourceType.DataXml, "eG1s") + new("test_TestSolution/script.js", "Script", WebresourceType.JavaScript, "anM="), + new("test_TestSolution/style.css", "Style", WebresourceType.CSS, "Y3Nz"), + new("test_TestSolution/page.html", "Page", WebresourceType.HTML, "aHRtbA=="), + new("test_TestSolution/image.png", "Image", WebresourceType.PNG, "cG5n"), + new("test_TestSolution/data.xml", "Data", WebresourceType.XML, "eG1s") }; _localReader.ReadWebResourceFolder(_options.FolderPath, $"{solutionPrefix}_{_options.SolutionName}") .Returns(localWebresources); diff --git a/Tests/Webresources/WebresourceValidationTests.cs b/Tests/Webresources/WebresourceValidationTests.cs index 6cb9130..c193054 100644 --- a/Tests/Webresources/WebresourceValidationTests.cs +++ b/Tests/Webresources/WebresourceValidationTests.cs @@ -57,7 +57,7 @@ public void ValidateWebresources_ThrowsException_ForWebresourceWithDependencies( var webresourceWithDependency = new WebresourceDefinition( "test_solution/js/script.js", "Test Script", - WebresourceType.ScriptJscript, + WebresourceType.JavaScript, "Y29udGVudA==" ) { @@ -67,7 +67,7 @@ public void ValidateWebresources_ThrowsException_ForWebresourceWithDependencies( var webresourcesWithoutDependency = new WebresourceDefinition( "test_solution/css/style.css", "Test Style", - WebresourceType.StyleSheetCss, + WebresourceType.CSS, "Y29udGVudA==" ) { @@ -102,7 +102,7 @@ public void ValidateWebresources_DoesNotThrow_ForWebresourceWithoutDependencies( var webresource1 = new WebresourceDefinition( "test_solution/js/script.js", "Test Script", - WebresourceType.ScriptJscript, + WebresourceType.JavaScript, "Y29udGVudA==" ) { @@ -112,7 +112,7 @@ public void ValidateWebresources_DoesNotThrow_ForWebresourceWithoutDependencies( var webresource2 = new WebresourceDefinition( "test_solution/css/style.css", "Test Style", - WebresourceType.StyleSheetCss, + WebresourceType.CSS, "Y29udGVudA==" ) { @@ -144,7 +144,7 @@ public void ValidateWebresources_ThrowsAggregateException_ForMultipleWebresource var webresource1 = new WebresourceDefinition( "test_solution/js/script1.js", "Test Script 1", - WebresourceType.ScriptJscript, + WebresourceType.JavaScript, "Y29udGVudA==" ) { @@ -154,7 +154,7 @@ public void ValidateWebresources_ThrowsAggregateException_ForMultipleWebresource var webresource2 = new WebresourceDefinition( "test_solution/js/script2.js", "Test Script 2", - WebresourceType.ScriptJscript, + WebresourceType.JavaScript, "Y29udGVudA==" ) { diff --git a/Tests/Webresources/WebresourceWriterTests.cs b/Tests/Webresources/WebresourceWriterTests.cs index b48492a..76707cd 100644 --- a/Tests/Webresources/WebresourceWriterTests.cs +++ b/Tests/Webresources/WebresourceWriterTests.cs @@ -25,7 +25,7 @@ public void Create_CallsDataverseWriter_WithCorrectParameters() // Arrange var webresources = new List { - new("test_solution/test.js", "Test Script", WebresourceType.ScriptJscript, "Y29uc29sZS5sb2coJ3Rlc3QnKTs=") + new("test_solution/test.js", "Test Script", WebresourceType.JavaScript, "Y29uc29sZS5sb2coJ3Rlc3QnKTs=") }; // Act @@ -37,7 +37,7 @@ public void Create_CallsDataverseWriter_WithCorrectParameters() wr.Name == "test_solution/test.js" && wr.DisplayName == "Test Script" && wr.Content == "Y29uc29sZS5sb2coJ3Rlc3QnKTs=" - && wr.WebResourceType == WebResource_WebResourceType.ScriptJscript), + && wr.WebResourceType == webresource_webresourcetype.ScriptJScript), Arg.Any>() ); } @@ -48,7 +48,7 @@ public void Create_PassesSolutionNameInParameters() // Arrange var webresources = new List { - new("test.js", "Test", WebresourceType.ScriptJscript, "dGVzdA==") + new("test.js", "Test", WebresourceType.JavaScript, "dGVzdA==") }; Dictionary? capturedParams = null; @@ -69,9 +69,9 @@ public void Create_HandlesMultipleWebresources() // Arrange var webresources = new List { - new("test_solution/script.js", "Script", WebresourceType.ScriptJscript, "anM="), - new("test_solution/style.css", "Style", WebresourceType.StyleSheetCss, "Y3Nz"), - new("test_solution/page.html", "Page", WebresourceType.WebpageHtml, "aHRtbA==") + new("test_solution/script.js", "Script", WebresourceType.JavaScript, "anM="), + new("test_solution/style.css", "Style", WebresourceType.CSS, "Y3Nz"), + new("test_solution/page.html", "Page", WebresourceType.HTML, "aHRtbA==") }; // Act @@ -87,18 +87,18 @@ public void Create_MapsWebresourceTypeCorrectly() // Arrange var testCases = new[] { - (WebresourceType.WebpageHtml, WebResource_WebResourceType.WebpageHtml), - (WebresourceType.StyleSheetCss, WebResource_WebResourceType.StyleSheetCss), - (WebresourceType.ScriptJscript, WebResource_WebResourceType.ScriptJscript), - (WebresourceType.DataXml, WebResource_WebResourceType.DataXml), - (WebresourceType.PngFormat, WebResource_WebResourceType.PngFormat), - (WebresourceType.JpgFormat, WebResource_WebResourceType.JpgFormat), - (WebresourceType.GifFormat, WebResource_WebResourceType.GifFormat), - (WebresourceType.SilverlightXap, WebResource_WebResourceType.SilverlightXap), - (WebresourceType.StyleSheetXsl, WebResource_WebResourceType.StyleSheetXsl), - (WebresourceType.IcoFormat, WebResource_WebResourceType.IcoFormat), - (WebresourceType.VectorFormatSvg, WebResource_WebResourceType.VectorFormatSvg), - (WebresourceType.StringResx, WebResource_WebResourceType.StringResx) + (WebresourceType.HTML, webresource_webresourcetype.WebpageHTML), + (WebresourceType.CSS, webresource_webresourcetype.StyleSheetCSS), + (WebresourceType.JavaScript, webresource_webresourcetype.ScriptJScript), + (WebresourceType.XML, webresource_webresourcetype.DataXML), + (WebresourceType.PNG, webresource_webresourcetype.PNGformat), + (WebresourceType.JPG, webresource_webresourcetype.JPGformat), + (WebresourceType.GIF, webresource_webresourcetype.GIFformat), + (WebresourceType.SilverlightXAP, webresource_webresourcetype.SilverlightXAP), + (WebresourceType.XSL, webresource_webresourcetype.StyleSheetXSL), + (WebresourceType.ICO, webresource_webresourcetype.ICOformat), + (WebresourceType.SVG, webresource_webresourcetype.VectorformatSVG), + (WebresourceType.RSX, webresource_webresourcetype.StringRESX) }; foreach (var (modelType, entityType) in testCases) @@ -128,7 +128,7 @@ public void Update_CallsDataverseWriter_WithCorrectParameters() var webresourceId = Guid.NewGuid(); var webresources = new List { - new("test_solution/test.js", "Updated Display Name", WebresourceType.ScriptJscript, "dXBkYXRlZENvbnRlbnQ=") + new("test_solution/test.js", "Updated Display Name", WebresourceType.JavaScript, "dXBkYXRlZENvbnRlbnQ=") { Id = webresourceId } @@ -153,9 +153,9 @@ public void Update_HandlesMultipleWebresources() // Arrange var webresources = new List { - new("test1.js", "Test 1", WebresourceType.ScriptJscript, "dGVzdDE=") { Id = Guid.NewGuid() }, - new("test2.js", "Test 2", WebresourceType.ScriptJscript, "dGVzdDI=") { Id = Guid.NewGuid() }, - new("test3.js", "Test 3", WebresourceType.ScriptJscript, "dGVzdDM=") { Id = Guid.NewGuid() } + new("test1.js", "Test 1", WebresourceType.JavaScript, "dGVzdDE=") { Id = Guid.NewGuid() }, + new("test2.js", "Test 2", WebresourceType.JavaScript, "dGVzdDI=") { Id = Guid.NewGuid() }, + new("test3.js", "Test 3", WebresourceType.JavaScript, "dGVzdDM=") { Id = Guid.NewGuid() } }; // Act @@ -174,7 +174,7 @@ public void Update_DoesNotIncludeNameInUpdate() var webresourceId = Guid.NewGuid(); var webresources = new List { - new("test_solution/test.js", "Display Name", WebresourceType.ScriptJscript, "Y29udGVudA==") + new("test_solution/test.js", "Display Name", WebresourceType.JavaScript, "Y29udGVudA==") { Id = webresourceId } @@ -200,7 +200,7 @@ public void Delete_CallsDataverseWriter_WithCorrectParameters() var webresourceId = Guid.NewGuid(); var webresources = new List { - new("test_solution/test.js", "Test Script", WebresourceType.ScriptJscript, "dGVzdA==") + new("test_solution/test.js", "Test Script", WebresourceType.JavaScript, "dGVzdA==") { Id = webresourceId } @@ -224,9 +224,9 @@ public void Delete_HandlesMultipleWebresources() // Arrange var webresources = new List { - new("test1.js", "Test 1", WebresourceType.ScriptJscript, "dGVzdDE=") { Id = Guid.NewGuid() }, - new("test2.js", "Test 2", WebresourceType.ScriptJscript, "dGVzdDI=") { Id = Guid.NewGuid() }, - new("test3.js", "Test 3", WebresourceType.ScriptJscript, "dGVzdDM=") { Id = Guid.NewGuid() } + new("test1.js", "Test 1", WebresourceType.JavaScript, "dGVzdDE=") { Id = Guid.NewGuid() }, + new("test2.js", "Test 2", WebresourceType.JavaScript, "dGVzdDI=") { Id = Guid.NewGuid() }, + new("test3.js", "Test 3", WebresourceType.JavaScript, "dGVzdDM=") { Id = Guid.NewGuid() } }; // Act From b8fd22963357952b3be2abac1264b742b9d93361 Mon Sep 17 00:00:00 2001 From: Morten Holt Date: Fri, 14 Nov 2025 12:41:48 +0100 Subject: [PATCH 2/4] UPDATE: Context generated by XrmContext --- Dataverse/.config/dotnet-tools.json | 2 +- .../Context/OptionSets/ComponentState.cs | 2 +- Dataverse/Context/OptionSets/ComponentType.cs | 2 +- .../Context/OptionSets/CustomApiFieldType.cs | 2 +- .../Context/OptionSets/DependencyType.cs | 2 +- .../attributes/OptionSetMetadataAttribute.cs | 2 +- .../RelationshipMetadataAttribute.cs | 2 +- .../activityparty_instancetypecode.cs | 2 +- .../activityparty_participationtypemask.cs | 2 +- ...stomapi_allowedcustomprocessingsteptype.cs | 2 +- .../optionsets/customapi_bindingtype.cs | 2 +- .../Context/optionsets/customapi_statecode.cs | 2 +- .../optionsets/customapi_statuscode.cs | 2 +- .../customapirequestparameter_statecode.cs | 2 +- .../customapirequestparameter_statuscode.cs | 2 +- .../customapiresponseproperty_statecode.cs | 2 +- .../customapiresponseproperty_statuscode.cs | 2 +- .../optionsets/pluginassembly_authtype.cs | 2 +- .../pluginassembly_isolationmode.cs | 2 +- .../optionsets/pluginassembly_sourcetype.cs | 2 +- .../publisher_address1_addresstypecode.cs | 2 +- .../publisher_address1_shippingmethodcode.cs | 2 +- .../publisher_address2_addresstypecode.cs | 2 +- .../publisher_address2_shippingmethodcode.cs | 2 +- .../sdkmessagefilter_primaryobjecttypecode.cs | 11 - ...dkmessagefilter_secondaryobjecttypecode.cs | 11 - ...kmessageprocessingstep_invocationsource.cs | 2 +- .../sdkmessageprocessingstep_mode.cs | 2 +- .../sdkmessageprocessingstep_stage.cs | 2 +- .../sdkmessageprocessingstep_statecode.cs | 2 +- .../sdkmessageprocessingstep_statuscode.cs | 2 +- ...ssageprocessingstep_supporteddeployment.cs | 2 +- ...sdkmessageprocessingstepimage_imagetype.cs | 2 +- .../optionsets/solution_solutiontype.cs | 2 +- .../solution_sourcecontrolsyncstatus.cs | 2 +- ...solutioncomponent_rootcomponentbehavior.cs | 2 +- .../optionsets/systemuser_accessmode.cs | 2 +- .../systemuser_address1_addresstypecode.cs | 2 +- .../systemuser_address1_shippingmethodcode.cs | 2 +- .../systemuser_address2_addresstypecode.cs | 2 +- .../systemuser_address2_shippingmethodcode.cs | 2 +- .../optionsets/systemuser_azurestate.cs | 2 +- .../Context/optionsets/systemuser_caltype.cs | 2 +- .../optionsets/systemuser_deletestate.cs | 2 +- .../systemuser_emailrouteraccessapproval.cs | 2 +- .../systemuser_incomingemaildeliverymethod.cs | 2 +- .../optionsets/systemuser_invitestatuscode.cs | 2 +- .../systemuser_outgoingemaildeliverymethod.cs | 2 +- .../systemuser_preferredaddresscode.cs | 2 +- .../systemuser_preferredemailcode.cs | 2 +- .../systemuser_preferredphonecode.cs | 2 +- .../systemuser_systemmanagedusertype.cs | 2 +- .../optionsets/webresource_webresourcetype.cs | 2 +- Dataverse/Context/queries/DataverseContext.cs | 2 +- Dataverse/Context/tables/ActivityParty.cs | 2 +- Dataverse/Context/tables/CustomAPI.cs | 25 +- .../tables/CustomAPIRequestParameter.cs | 27 ++- .../tables/CustomAPIResponseProperty.cs | 27 ++- Dataverse/Context/tables/Dependency.cs | 2 +- Dataverse/Context/tables/DependencyNode.cs | 2 +- Dataverse/Context/tables/ExtendedEntity.cs | 2 +- Dataverse/Context/tables/PluginAssembly.cs | 2 +- Dataverse/Context/tables/PluginType.cs | 39 ++- Dataverse/Context/tables/Publisher.cs | 2 +- Dataverse/Context/tables/SdkMessage.cs | 18 +- Dataverse/Context/tables/SdkMessageFilter.cs | 10 +- .../tables/SdkMessageProcessingStep.cs | 2 +- .../tables/SdkMessageProcessingStepImage.cs | 4 +- Dataverse/Context/tables/Solution.cs | 2 +- Dataverse/Context/tables/SolutionComponent.cs | 2 +- Dataverse/Context/tables/SystemUser.cs | 227 ++++++++++-------- .../Context/tables/TableAttributeHelpers.cs | 32 ++- Dataverse/Context/tables/WebResource.cs | 2 +- Dataverse/PluginReader.cs | 4 +- Dataverse/PluginWriter.cs | 4 +- Dataverse/appsettings.json | 3 +- SyncService/PluginSyncService.cs | 2 +- .../WebresourceValidationTests.cs | 16 +- 78 files changed, 350 insertions(+), 234 deletions(-) delete mode 100644 Dataverse/Context/optionsets/sdkmessagefilter_primaryobjecttypecode.cs delete mode 100644 Dataverse/Context/optionsets/sdkmessagefilter_secondaryobjecttypecode.cs diff --git a/Dataverse/.config/dotnet-tools.json b/Dataverse/.config/dotnet-tools.json index e17b5a4..f5d61b8 100644 --- a/Dataverse/.config/dotnet-tools.json +++ b/Dataverse/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "xrmcontext": { - "version": "4.0.0-beta.19", + "version": "4.0.0-beta.21", "commands": [ "xrmcontext" ], diff --git a/Dataverse/Context/OptionSets/ComponentState.cs b/Dataverse/Context/OptionSets/ComponentState.cs index aeb4c8c..6a1c412 100644 --- a/Dataverse/Context/OptionSets/ComponentState.cs +++ b/Dataverse/Context/OptionSets/ComponentState.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum componentstate diff --git a/Dataverse/Context/OptionSets/ComponentType.cs b/Dataverse/Context/OptionSets/ComponentType.cs index 1304792..631bf6c 100644 --- a/Dataverse/Context/OptionSets/ComponentType.cs +++ b/Dataverse/Context/OptionSets/ComponentType.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum componenttype diff --git a/Dataverse/Context/OptionSets/CustomApiFieldType.cs b/Dataverse/Context/OptionSets/CustomApiFieldType.cs index 635a825..8867ee8 100644 --- a/Dataverse/Context/OptionSets/CustomApiFieldType.cs +++ b/Dataverse/Context/OptionSets/CustomApiFieldType.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum customapifieldtype diff --git a/Dataverse/Context/OptionSets/DependencyType.cs b/Dataverse/Context/OptionSets/DependencyType.cs index ab32996..0fc9b9d 100644 --- a/Dataverse/Context/OptionSets/DependencyType.cs +++ b/Dataverse/Context/OptionSets/DependencyType.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum dependencytype diff --git a/Dataverse/Context/attributes/OptionSetMetadataAttribute.cs b/Dataverse/Context/attributes/OptionSetMetadataAttribute.cs index 7ac40c2..14991ed 100644 --- a/Dataverse/Context/attributes/OptionSetMetadataAttribute.cs +++ b/Dataverse/Context/attributes/OptionSetMetadataAttribute.cs @@ -1,6 +1,6 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [AttributeUsage(AttributeTargets.Field, AllowMultiple = true)] public sealed class OptionSetMetadataAttribute : Attribute { diff --git a/Dataverse/Context/attributes/RelationshipMetadataAttribute.cs b/Dataverse/Context/attributes/RelationshipMetadataAttribute.cs index 76cfb95..b312f1b 100644 --- a/Dataverse/Context/attributes/RelationshipMetadataAttribute.cs +++ b/Dataverse/Context/attributes/RelationshipMetadataAttribute.cs @@ -1,6 +1,6 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] public sealed class RelationshipMetadataAttribute : Attribute { diff --git a/Dataverse/Context/optionsets/activityparty_instancetypecode.cs b/Dataverse/Context/optionsets/activityparty_instancetypecode.cs index bf8c4fc..3bac81d 100644 --- a/Dataverse/Context/optionsets/activityparty_instancetypecode.cs +++ b/Dataverse/Context/optionsets/activityparty_instancetypecode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum activityparty_instancetypecode diff --git a/Dataverse/Context/optionsets/activityparty_participationtypemask.cs b/Dataverse/Context/optionsets/activityparty_participationtypemask.cs index 5fe96b0..c2dca7b 100644 --- a/Dataverse/Context/optionsets/activityparty_participationtypemask.cs +++ b/Dataverse/Context/optionsets/activityparty_participationtypemask.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum activityparty_participationtypemask diff --git a/Dataverse/Context/optionsets/customapi_allowedcustomprocessingsteptype.cs b/Dataverse/Context/optionsets/customapi_allowedcustomprocessingsteptype.cs index 4e88b08..5b0306e 100644 --- a/Dataverse/Context/optionsets/customapi_allowedcustomprocessingsteptype.cs +++ b/Dataverse/Context/optionsets/customapi_allowedcustomprocessingsteptype.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum customapi_allowedcustomprocessingsteptype diff --git a/Dataverse/Context/optionsets/customapi_bindingtype.cs b/Dataverse/Context/optionsets/customapi_bindingtype.cs index 9d50175..1e9f42d 100644 --- a/Dataverse/Context/optionsets/customapi_bindingtype.cs +++ b/Dataverse/Context/optionsets/customapi_bindingtype.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum customapi_bindingtype diff --git a/Dataverse/Context/optionsets/customapi_statecode.cs b/Dataverse/Context/optionsets/customapi_statecode.cs index 8fc8f76..9b95196 100644 --- a/Dataverse/Context/optionsets/customapi_statecode.cs +++ b/Dataverse/Context/optionsets/customapi_statecode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum customapi_statecode diff --git a/Dataverse/Context/optionsets/customapi_statuscode.cs b/Dataverse/Context/optionsets/customapi_statuscode.cs index 3667816..b576390 100644 --- a/Dataverse/Context/optionsets/customapi_statuscode.cs +++ b/Dataverse/Context/optionsets/customapi_statuscode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum customapi_statuscode diff --git a/Dataverse/Context/optionsets/customapirequestparameter_statecode.cs b/Dataverse/Context/optionsets/customapirequestparameter_statecode.cs index b091d0b..24da88e 100644 --- a/Dataverse/Context/optionsets/customapirequestparameter_statecode.cs +++ b/Dataverse/Context/optionsets/customapirequestparameter_statecode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum customapirequestparameter_statecode diff --git a/Dataverse/Context/optionsets/customapirequestparameter_statuscode.cs b/Dataverse/Context/optionsets/customapirequestparameter_statuscode.cs index 71734c8..23bf7f0 100644 --- a/Dataverse/Context/optionsets/customapirequestparameter_statuscode.cs +++ b/Dataverse/Context/optionsets/customapirequestparameter_statuscode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum customapirequestparameter_statuscode diff --git a/Dataverse/Context/optionsets/customapiresponseproperty_statecode.cs b/Dataverse/Context/optionsets/customapiresponseproperty_statecode.cs index fde6e6a..e431fd8 100644 --- a/Dataverse/Context/optionsets/customapiresponseproperty_statecode.cs +++ b/Dataverse/Context/optionsets/customapiresponseproperty_statecode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum customapiresponseproperty_statecode diff --git a/Dataverse/Context/optionsets/customapiresponseproperty_statuscode.cs b/Dataverse/Context/optionsets/customapiresponseproperty_statuscode.cs index 0b2a78d..c0a08d5 100644 --- a/Dataverse/Context/optionsets/customapiresponseproperty_statuscode.cs +++ b/Dataverse/Context/optionsets/customapiresponseproperty_statuscode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum customapiresponseproperty_statuscode diff --git a/Dataverse/Context/optionsets/pluginassembly_authtype.cs b/Dataverse/Context/optionsets/pluginassembly_authtype.cs index e3c8660..7c7da76 100644 --- a/Dataverse/Context/optionsets/pluginassembly_authtype.cs +++ b/Dataverse/Context/optionsets/pluginassembly_authtype.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum pluginassembly_authtype diff --git a/Dataverse/Context/optionsets/pluginassembly_isolationmode.cs b/Dataverse/Context/optionsets/pluginassembly_isolationmode.cs index 326419e..22ef4ba 100644 --- a/Dataverse/Context/optionsets/pluginassembly_isolationmode.cs +++ b/Dataverse/Context/optionsets/pluginassembly_isolationmode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum pluginassembly_isolationmode diff --git a/Dataverse/Context/optionsets/pluginassembly_sourcetype.cs b/Dataverse/Context/optionsets/pluginassembly_sourcetype.cs index 2152611..06c489e 100644 --- a/Dataverse/Context/optionsets/pluginassembly_sourcetype.cs +++ b/Dataverse/Context/optionsets/pluginassembly_sourcetype.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum pluginassembly_sourcetype diff --git a/Dataverse/Context/optionsets/publisher_address1_addresstypecode.cs b/Dataverse/Context/optionsets/publisher_address1_addresstypecode.cs index ee11238..6f044e7 100644 --- a/Dataverse/Context/optionsets/publisher_address1_addresstypecode.cs +++ b/Dataverse/Context/optionsets/publisher_address1_addresstypecode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum publisher_address1_addresstypecode diff --git a/Dataverse/Context/optionsets/publisher_address1_shippingmethodcode.cs b/Dataverse/Context/optionsets/publisher_address1_shippingmethodcode.cs index 2cd129f..ea149d8 100644 --- a/Dataverse/Context/optionsets/publisher_address1_shippingmethodcode.cs +++ b/Dataverse/Context/optionsets/publisher_address1_shippingmethodcode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum publisher_address1_shippingmethodcode diff --git a/Dataverse/Context/optionsets/publisher_address2_addresstypecode.cs b/Dataverse/Context/optionsets/publisher_address2_addresstypecode.cs index a9f97ad..e7e6546 100644 --- a/Dataverse/Context/optionsets/publisher_address2_addresstypecode.cs +++ b/Dataverse/Context/optionsets/publisher_address2_addresstypecode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum publisher_address2_addresstypecode diff --git a/Dataverse/Context/optionsets/publisher_address2_shippingmethodcode.cs b/Dataverse/Context/optionsets/publisher_address2_shippingmethodcode.cs index 1c56c9f..47a5838 100644 --- a/Dataverse/Context/optionsets/publisher_address2_shippingmethodcode.cs +++ b/Dataverse/Context/optionsets/publisher_address2_shippingmethodcode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum publisher_address2_shippingmethodcode diff --git a/Dataverse/Context/optionsets/sdkmessagefilter_primaryobjecttypecode.cs b/Dataverse/Context/optionsets/sdkmessagefilter_primaryobjecttypecode.cs deleted file mode 100644 index 1c427a3..0000000 --- a/Dataverse/Context/optionsets/sdkmessagefilter_primaryobjecttypecode.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Runtime.Serialization; - -namespace XrmSync.Dataverse.Context; - -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] -[DataContract] -#pragma warning disable CS8981 -public enum sdkmessagefilter_primaryobjecttypecode -#pragma warning restore CS8981 -{ -} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/sdkmessagefilter_secondaryobjecttypecode.cs b/Dataverse/Context/optionsets/sdkmessagefilter_secondaryobjecttypecode.cs deleted file mode 100644 index 5d0ea9c..0000000 --- a/Dataverse/Context/optionsets/sdkmessagefilter_secondaryobjecttypecode.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Runtime.Serialization; - -namespace XrmSync.Dataverse.Context; - -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] -[DataContract] -#pragma warning disable CS8981 -public enum sdkmessagefilter_secondaryobjecttypecode -#pragma warning restore CS8981 -{ -} \ No newline at end of file diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstep_invocationsource.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstep_invocationsource.cs index 6d6d531..977fc2c 100644 --- a/Dataverse/Context/optionsets/sdkmessageprocessingstep_invocationsource.cs +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstep_invocationsource.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum sdkmessageprocessingstep_invocationsource diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstep_mode.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstep_mode.cs index ea820f7..ded3cc2 100644 --- a/Dataverse/Context/optionsets/sdkmessageprocessingstep_mode.cs +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstep_mode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum sdkmessageprocessingstep_mode diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstep_stage.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstep_stage.cs index 605f429..af152c3 100644 --- a/Dataverse/Context/optionsets/sdkmessageprocessingstep_stage.cs +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstep_stage.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum sdkmessageprocessingstep_stage diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstep_statecode.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstep_statecode.cs index a16fc94..5658390 100644 --- a/Dataverse/Context/optionsets/sdkmessageprocessingstep_statecode.cs +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstep_statecode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum sdkmessageprocessingstep_statecode diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstep_statuscode.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstep_statuscode.cs index e15d5ac..a8b4db7 100644 --- a/Dataverse/Context/optionsets/sdkmessageprocessingstep_statuscode.cs +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstep_statuscode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum sdkmessageprocessingstep_statuscode diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstep_supporteddeployment.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstep_supporteddeployment.cs index 57a1d8c..344a5fd 100644 --- a/Dataverse/Context/optionsets/sdkmessageprocessingstep_supporteddeployment.cs +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstep_supporteddeployment.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum sdkmessageprocessingstep_supporteddeployment diff --git a/Dataverse/Context/optionsets/sdkmessageprocessingstepimage_imagetype.cs b/Dataverse/Context/optionsets/sdkmessageprocessingstepimage_imagetype.cs index 5f882a2..56c677e 100644 --- a/Dataverse/Context/optionsets/sdkmessageprocessingstepimage_imagetype.cs +++ b/Dataverse/Context/optionsets/sdkmessageprocessingstepimage_imagetype.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum sdkmessageprocessingstepimage_imagetype diff --git a/Dataverse/Context/optionsets/solution_solutiontype.cs b/Dataverse/Context/optionsets/solution_solutiontype.cs index b0843fe..049d9e7 100644 --- a/Dataverse/Context/optionsets/solution_solutiontype.cs +++ b/Dataverse/Context/optionsets/solution_solutiontype.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum solution_solutiontype diff --git a/Dataverse/Context/optionsets/solution_sourcecontrolsyncstatus.cs b/Dataverse/Context/optionsets/solution_sourcecontrolsyncstatus.cs index dc9812b..9c7c40d 100644 --- a/Dataverse/Context/optionsets/solution_sourcecontrolsyncstatus.cs +++ b/Dataverse/Context/optionsets/solution_sourcecontrolsyncstatus.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum solution_sourcecontrolsyncstatus diff --git a/Dataverse/Context/optionsets/solutioncomponent_rootcomponentbehavior.cs b/Dataverse/Context/optionsets/solutioncomponent_rootcomponentbehavior.cs index 92869bf..ca54a4f 100644 --- a/Dataverse/Context/optionsets/solutioncomponent_rootcomponentbehavior.cs +++ b/Dataverse/Context/optionsets/solutioncomponent_rootcomponentbehavior.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum solutioncomponent_rootcomponentbehavior diff --git a/Dataverse/Context/optionsets/systemuser_accessmode.cs b/Dataverse/Context/optionsets/systemuser_accessmode.cs index f80a591..ac16770 100644 --- a/Dataverse/Context/optionsets/systemuser_accessmode.cs +++ b/Dataverse/Context/optionsets/systemuser_accessmode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_accessmode diff --git a/Dataverse/Context/optionsets/systemuser_address1_addresstypecode.cs b/Dataverse/Context/optionsets/systemuser_address1_addresstypecode.cs index 9b6a930..91adb02 100644 --- a/Dataverse/Context/optionsets/systemuser_address1_addresstypecode.cs +++ b/Dataverse/Context/optionsets/systemuser_address1_addresstypecode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_address1_addresstypecode diff --git a/Dataverse/Context/optionsets/systemuser_address1_shippingmethodcode.cs b/Dataverse/Context/optionsets/systemuser_address1_shippingmethodcode.cs index 9b47064..d5ab2e3 100644 --- a/Dataverse/Context/optionsets/systemuser_address1_shippingmethodcode.cs +++ b/Dataverse/Context/optionsets/systemuser_address1_shippingmethodcode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_address1_shippingmethodcode diff --git a/Dataverse/Context/optionsets/systemuser_address2_addresstypecode.cs b/Dataverse/Context/optionsets/systemuser_address2_addresstypecode.cs index 17ea9ef..60b80b8 100644 --- a/Dataverse/Context/optionsets/systemuser_address2_addresstypecode.cs +++ b/Dataverse/Context/optionsets/systemuser_address2_addresstypecode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_address2_addresstypecode diff --git a/Dataverse/Context/optionsets/systemuser_address2_shippingmethodcode.cs b/Dataverse/Context/optionsets/systemuser_address2_shippingmethodcode.cs index b447d7d..0674549 100644 --- a/Dataverse/Context/optionsets/systemuser_address2_shippingmethodcode.cs +++ b/Dataverse/Context/optionsets/systemuser_address2_shippingmethodcode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_address2_shippingmethodcode diff --git a/Dataverse/Context/optionsets/systemuser_azurestate.cs b/Dataverse/Context/optionsets/systemuser_azurestate.cs index 5a59898..f5a0d94 100644 --- a/Dataverse/Context/optionsets/systemuser_azurestate.cs +++ b/Dataverse/Context/optionsets/systemuser_azurestate.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_azurestate diff --git a/Dataverse/Context/optionsets/systemuser_caltype.cs b/Dataverse/Context/optionsets/systemuser_caltype.cs index 5f54fad..d546fcf 100644 --- a/Dataverse/Context/optionsets/systemuser_caltype.cs +++ b/Dataverse/Context/optionsets/systemuser_caltype.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_caltype diff --git a/Dataverse/Context/optionsets/systemuser_deletestate.cs b/Dataverse/Context/optionsets/systemuser_deletestate.cs index a1896a0..786baa5 100644 --- a/Dataverse/Context/optionsets/systemuser_deletestate.cs +++ b/Dataverse/Context/optionsets/systemuser_deletestate.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_deletestate diff --git a/Dataverse/Context/optionsets/systemuser_emailrouteraccessapproval.cs b/Dataverse/Context/optionsets/systemuser_emailrouteraccessapproval.cs index f394836..01ba6b6 100644 --- a/Dataverse/Context/optionsets/systemuser_emailrouteraccessapproval.cs +++ b/Dataverse/Context/optionsets/systemuser_emailrouteraccessapproval.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_emailrouteraccessapproval diff --git a/Dataverse/Context/optionsets/systemuser_incomingemaildeliverymethod.cs b/Dataverse/Context/optionsets/systemuser_incomingemaildeliverymethod.cs index 1346ec7..cc4e5ea 100644 --- a/Dataverse/Context/optionsets/systemuser_incomingemaildeliverymethod.cs +++ b/Dataverse/Context/optionsets/systemuser_incomingemaildeliverymethod.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_incomingemaildeliverymethod diff --git a/Dataverse/Context/optionsets/systemuser_invitestatuscode.cs b/Dataverse/Context/optionsets/systemuser_invitestatuscode.cs index 2788cf1..8589581 100644 --- a/Dataverse/Context/optionsets/systemuser_invitestatuscode.cs +++ b/Dataverse/Context/optionsets/systemuser_invitestatuscode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_invitestatuscode diff --git a/Dataverse/Context/optionsets/systemuser_outgoingemaildeliverymethod.cs b/Dataverse/Context/optionsets/systemuser_outgoingemaildeliverymethod.cs index a2cdb59..aecf8bb 100644 --- a/Dataverse/Context/optionsets/systemuser_outgoingemaildeliverymethod.cs +++ b/Dataverse/Context/optionsets/systemuser_outgoingemaildeliverymethod.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_outgoingemaildeliverymethod diff --git a/Dataverse/Context/optionsets/systemuser_preferredaddresscode.cs b/Dataverse/Context/optionsets/systemuser_preferredaddresscode.cs index cad1679..f9a35ac 100644 --- a/Dataverse/Context/optionsets/systemuser_preferredaddresscode.cs +++ b/Dataverse/Context/optionsets/systemuser_preferredaddresscode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_preferredaddresscode diff --git a/Dataverse/Context/optionsets/systemuser_preferredemailcode.cs b/Dataverse/Context/optionsets/systemuser_preferredemailcode.cs index b746a3c..86dcf5d 100644 --- a/Dataverse/Context/optionsets/systemuser_preferredemailcode.cs +++ b/Dataverse/Context/optionsets/systemuser_preferredemailcode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_preferredemailcode diff --git a/Dataverse/Context/optionsets/systemuser_preferredphonecode.cs b/Dataverse/Context/optionsets/systemuser_preferredphonecode.cs index eff3e7d..f53e52b 100644 --- a/Dataverse/Context/optionsets/systemuser_preferredphonecode.cs +++ b/Dataverse/Context/optionsets/systemuser_preferredphonecode.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_preferredphonecode diff --git a/Dataverse/Context/optionsets/systemuser_systemmanagedusertype.cs b/Dataverse/Context/optionsets/systemuser_systemmanagedusertype.cs index 3d01a3d..d60004f 100644 --- a/Dataverse/Context/optionsets/systemuser_systemmanagedusertype.cs +++ b/Dataverse/Context/optionsets/systemuser_systemmanagedusertype.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum systemuser_systemmanagedusertype diff --git a/Dataverse/Context/optionsets/webresource_webresourcetype.cs b/Dataverse/Context/optionsets/webresource_webresourcetype.cs index 6c8900d..3718878 100644 --- a/Dataverse/Context/optionsets/webresource_webresourcetype.cs +++ b/Dataverse/Context/optionsets/webresource_webresourcetype.cs @@ -2,7 +2,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [DataContract] #pragma warning disable CS8981 public enum webresource_webresourcetype diff --git a/Dataverse/Context/queries/DataverseContext.cs b/Dataverse/Context/queries/DataverseContext.cs index 74b25e8..b1bed7e 100644 --- a/Dataverse/Context/queries/DataverseContext.cs +++ b/Dataverse/Context/queries/DataverseContext.cs @@ -3,7 +3,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] public class DataverseContext : OrganizationServiceContext { public DataverseContext(IOrganizationService service) diff --git a/Dataverse/Context/tables/ActivityParty.cs b/Dataverse/Context/tables/ActivityParty.cs index 92f58e3..e3c20a5 100644 --- a/Dataverse/Context/tables/ActivityParty.cs +++ b/Dataverse/Context/tables/ActivityParty.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// Person or group associated with an activity. An activity can have multiple activity parties. /// Display Name: Activity Party /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("activityparty")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] diff --git a/Dataverse/Context/tables/CustomAPI.cs b/Dataverse/Context/tables/CustomAPI.cs index a5407c3..d4c1629 100644 --- a/Dataverse/Context/tables/CustomAPI.cs +++ b/Dataverse/Context/tables/CustomAPI.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// Entity that defines a custom API /// Display Name: Custom API /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("customapi")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] @@ -21,7 +21,7 @@ public partial class CustomAPI : ExtendedEntity #pragma warning restore CS8981 { public const string EntityLogicalName = "customapi"; - public const int EntityTypeCode = 10027; + public const int EntityTypeCode = 10036; public CustomAPI() : base(EntityLogicalName) { } public CustomAPI(Guid id) : base(EntityLogicalName, id) { } @@ -626,4 +626,25 @@ public static CustomAPI Retrieve(IOrganizationService service, Guid id, params E { return service.Retrieve(id, columns); } + + /// + /// Retrieves the CustomAPI using the Custom API Export Key alternate key. + /// + /// Organization service + /// ComponentState key value + /// OverwriteTime key value + /// UniqueName key value + /// Expressions that specify columns to retrieve + /// The retrieved CustomAPI + public static CustomAPI Retrieve_CustomAPIExportKey(IOrganizationService service, componentstate ComponentState, DateTime OverwriteTime, string UniqueName, params Expression>[] columns) + { + var keyedEntityReference = new EntityReference(EntityLogicalName, new KeyAttributeCollection + { + ["componentstate"] = ComponentState, + ["overwritetime"] = OverwriteTime, + ["uniquename"] = UniqueName, + }); + + return service.Retrieve(keyedEntityReference, columns); + } } \ No newline at end of file diff --git a/Dataverse/Context/tables/CustomAPIRequestParameter.cs b/Dataverse/Context/tables/CustomAPIRequestParameter.cs index d2ce681..3cc8580 100644 --- a/Dataverse/Context/tables/CustomAPIRequestParameter.cs +++ b/Dataverse/Context/tables/CustomAPIRequestParameter.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// Entity that defines a request parameter for a custom API /// Display Name: Custom API Request Parameter /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("customapirequestparameter")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] @@ -21,7 +21,7 @@ public partial class CustomAPIRequestParameter : ExtendedEntity #pragma warning restore CS8981 { public const string EntityLogicalName = "customapirequestparameter"; - public const int EntityTypeCode = 10028; + public const int EntityTypeCode = 10037; public CustomAPIRequestParameter() : base(EntityLogicalName) { } public CustomAPIRequestParameter(Guid id) : base(EntityLogicalName, id) { } @@ -509,4 +509,27 @@ public static CustomAPIRequestParameter Retrieve(IOrganizationService service, G { return service.Retrieve(id, columns); } + + /// + /// Retrieves the CustomAPIRequestParameter using the Custom API Request Parameter Export Key alternate key. + /// + /// Organization service + /// ComponentState key value + /// CustomAPIId key value + /// OverwriteTime key value + /// UniqueName key value + /// Expressions that specify columns to retrieve + /// The retrieved CustomAPIRequestParameter + public static CustomAPIRequestParameter Retrieve_CustomAPIRequestParameterExportKey(IOrganizationService service, componentstate ComponentState, Guid CustomAPIId, DateTime OverwriteTime, string UniqueName, params Expression>[] columns) + { + var keyedEntityReference = new EntityReference(EntityLogicalName, new KeyAttributeCollection + { + ["componentstate"] = ComponentState, + ["customapiid"] = CustomAPIId, + ["overwritetime"] = OverwriteTime, + ["uniquename"] = UniqueName, + }); + + return service.Retrieve(keyedEntityReference, columns); + } } \ No newline at end of file diff --git a/Dataverse/Context/tables/CustomAPIResponseProperty.cs b/Dataverse/Context/tables/CustomAPIResponseProperty.cs index e3e43aa..db6ad92 100644 --- a/Dataverse/Context/tables/CustomAPIResponseProperty.cs +++ b/Dataverse/Context/tables/CustomAPIResponseProperty.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// Entity that defines a response property for a custom API /// Display Name: Custom API Response Property /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("customapiresponseproperty")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] @@ -21,7 +21,7 @@ public partial class CustomAPIResponseProperty : ExtendedEntity #pragma warning restore CS8981 { public const string EntityLogicalName = "customapiresponseproperty"; - public const int EntityTypeCode = 10029; + public const int EntityTypeCode = 10038; public CustomAPIResponseProperty() : base(EntityLogicalName) { } public CustomAPIResponseProperty(Guid id) : base(EntityLogicalName, id) { } @@ -497,4 +497,27 @@ public static CustomAPIResponseProperty Retrieve(IOrganizationService service, G { return service.Retrieve(id, columns); } + + /// + /// Retrieves the CustomAPIResponseProperty using the Custom API Response Property Export Key alternate key. + /// + /// Organization service + /// ComponentState key value + /// CustomAPIId key value + /// OverwriteTime key value + /// UniqueName key value + /// Expressions that specify columns to retrieve + /// The retrieved CustomAPIResponseProperty + public static CustomAPIResponseProperty Retrieve_CustomAPIResponsePropertyExportKey(IOrganizationService service, componentstate ComponentState, Guid CustomAPIId, DateTime OverwriteTime, string UniqueName, params Expression>[] columns) + { + var keyedEntityReference = new EntityReference(EntityLogicalName, new KeyAttributeCollection + { + ["componentstate"] = ComponentState, + ["customapiid"] = CustomAPIId, + ["overwritetime"] = OverwriteTime, + ["uniquename"] = UniqueName, + }); + + return service.Retrieve(keyedEntityReference, columns); + } } \ No newline at end of file diff --git a/Dataverse/Context/tables/Dependency.cs b/Dataverse/Context/tables/Dependency.cs index 1fd1204..58f2c54 100644 --- a/Dataverse/Context/tables/Dependency.cs +++ b/Dataverse/Context/tables/Dependency.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// A component dependency in CRM. /// Display Name: Dependency /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("dependency")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] diff --git a/Dataverse/Context/tables/DependencyNode.cs b/Dataverse/Context/tables/DependencyNode.cs index 5cc7918..069fd15 100644 --- a/Dataverse/Context/tables/DependencyNode.cs +++ b/Dataverse/Context/tables/DependencyNode.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// The representation of a component dependency node in CRM. /// Display Name: Dependency Node /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("dependencynode")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] diff --git a/Dataverse/Context/tables/ExtendedEntity.cs b/Dataverse/Context/tables/ExtendedEntity.cs index 8778347..89d0713 100644 --- a/Dataverse/Context/tables/ExtendedEntity.cs +++ b/Dataverse/Context/tables/ExtendedEntity.cs @@ -5,7 +5,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] public class ExtendedEntity : Entity { public ExtendedEntity(string logicalName) diff --git a/Dataverse/Context/tables/PluginAssembly.cs b/Dataverse/Context/tables/PluginAssembly.cs index 51afcaf..d091b57 100644 --- a/Dataverse/Context/tables/PluginAssembly.cs +++ b/Dataverse/Context/tables/PluginAssembly.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// Assembly that contains one or more plug-in types. /// Display Name: Plug-in Assembly /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("pluginassembly")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] diff --git a/Dataverse/Context/tables/PluginType.cs b/Dataverse/Context/tables/PluginType.cs index d746ae1..85b5521 100644 --- a/Dataverse/Context/tables/PluginType.cs +++ b/Dataverse/Context/tables/PluginType.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// Type that inherits from the IPlugin interface and is contained within a plug-in assembly. /// Display Name: Plug-in Type /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("plugintype")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] @@ -474,14 +474,6 @@ public IEnumerable plugintype_sdkmessageprocessingstep set => SetRelatedEntities("plugintype_sdkmessageprocessingstep", null, value); } - [RelationshipSchemaName("plugintype_customapi")] - [RelationshipMetadata("OneToMany", "plugintypeid", "customapi", "plugintypeid", "Referenced")] - public IEnumerable plugintype_customapi - { - get => GetRelatedEntities("plugintype_customapi", null); - set => SetRelatedEntities("plugintype_customapi", null, value); - } - [RelationshipSchemaName("plugintypeid_sdkmessageprocessingstep")] [RelationshipMetadata("OneToMany", "plugintypeid", "sdkmessageprocessingstep", "plugintypeid", "Referenced")] public IEnumerable plugintypeid_sdkmessageprocessingstep @@ -490,6 +482,14 @@ public IEnumerable plugintypeid_sdkmessageprocessingst set => SetRelatedEntities("plugintypeid_sdkmessageprocessingstep", null, value); } + [RelationshipSchemaName("plugintype_customapi")] + [RelationshipMetadata("OneToMany", "plugintypeid", "customapi", "plugintypeid", "Referenced")] + public IEnumerable plugintype_customapi + { + get => GetRelatedEntities("plugintype_customapi", null); + set => SetRelatedEntities("plugintype_customapi", null, value); + } + /// /// Gets the logical column name for a property on the PluginType entity, using the AttributeLogicalNameAttribute if present. /// @@ -513,4 +513,25 @@ public static PluginType Retrieve(IOrganizationService service, Guid id, params { return service.Retrieve(id, columns); } + + /// + /// Retrieves the PluginType using the Plugin Type Entity Key1 alternate key. + /// + /// Organization service + /// ComponentState key value + /// OverwriteTime key value + /// PluginTypeExportKey key value + /// Expressions that specify columns to retrieve + /// The retrieved PluginType + public static PluginType Retrieve_PluginTypeEntityKey(IOrganizationService service, componentstate ComponentState, DateTime OverwriteTime, string PluginTypeExportKey, params Expression>[] columns) + { + var keyedEntityReference = new EntityReference(EntityLogicalName, new KeyAttributeCollection + { + ["componentstate"] = ComponentState, + ["overwritetime"] = OverwriteTime, + ["plugintypeexportkey"] = PluginTypeExportKey, + }); + + return service.Retrieve(keyedEntityReference, columns); + } } \ No newline at end of file diff --git a/Dataverse/Context/tables/Publisher.cs b/Dataverse/Context/tables/Publisher.cs index aa943b6..f85c4ac 100644 --- a/Dataverse/Context/tables/Publisher.cs +++ b/Dataverse/Context/tables/Publisher.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// A publisher of a CRM solution. /// Display Name: Publisher /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("publisher")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] diff --git a/Dataverse/Context/tables/SdkMessage.cs b/Dataverse/Context/tables/SdkMessage.cs index e368bcd..2f516f8 100644 --- a/Dataverse/Context/tables/SdkMessage.cs +++ b/Dataverse/Context/tables/SdkMessage.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// Message that is supported by the SDK. /// Display Name: Sdk Message /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("sdkmessage")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] @@ -440,14 +440,6 @@ public SystemUser lk_sdkmessage_modifiedonbehalfby set => SetRelatedEntity("lk_sdkmessage_modifiedonbehalfby", null, value); } - [RelationshipSchemaName("sdkmessage_customapi")] - [RelationshipMetadata("OneToMany", "sdkmessageid", "customapi", "sdkmessageid", "Referenced")] - public IEnumerable sdkmessage_customapi - { - get => GetRelatedEntities("sdkmessage_customapi", null); - set => SetRelatedEntities("sdkmessage_customapi", null, value); - } - [RelationshipSchemaName("sdkmessageid_sdkmessageprocessingstep")] [RelationshipMetadata("OneToMany", "sdkmessageid", "sdkmessageprocessingstep", "sdkmessageid", "Referenced")] public IEnumerable sdkmessageid_sdkmessageprocessingstep @@ -464,6 +456,14 @@ public IEnumerable sdkmessageid_sdkmessagefilter set => SetRelatedEntities("sdkmessageid_sdkmessagefilter", null, value); } + [RelationshipSchemaName("sdkmessage_customapi")] + [RelationshipMetadata("OneToMany", "sdkmessageid", "customapi", "sdkmessageid", "Referenced")] + public IEnumerable sdkmessage_customapi + { + get => GetRelatedEntities("sdkmessage_customapi", null); + set => SetRelatedEntities("sdkmessage_customapi", null, value); + } + /// /// Gets the logical column name for a property on the SdkMessage entity, using the AttributeLogicalNameAttribute if present. /// diff --git a/Dataverse/Context/tables/SdkMessageFilter.cs b/Dataverse/Context/tables/SdkMessageFilter.cs index bd44a9a..6f38976 100644 --- a/Dataverse/Context/tables/SdkMessageFilter.cs +++ b/Dataverse/Context/tables/SdkMessageFilter.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// Filter that defines which SDK messages are valid for each type of entity. /// Display Name: Sdk Message Filter /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("sdkmessagefilter")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] @@ -240,6 +240,7 @@ public DateTime? OverwriteTime /// [AttributeLogicalName("primaryobjecttypecode")] [DisplayName("Primary Object Type Code")] + [MaxLength()] public string PrimaryObjectTypeCode { get => GetAttributeValue("primaryobjecttypecode"); @@ -300,10 +301,11 @@ public EntityReference? SdkMessageId /// [AttributeLogicalName("secondaryobjecttypecode")] [DisplayName("Secondary Object Type Code")] - public sdkmessagefilter_secondaryobjecttypecode? SecondaryObjectTypeCode + [MaxLength()] + public string SecondaryObjectTypeCode { - get => this.GetOptionSetValue("secondaryobjecttypecode"); - set => this.SetOptionSetValue("secondaryobjecttypecode", value); + get => GetAttributeValue("secondaryobjecttypecode"); + set => SetAttributeValue("secondaryobjecttypecode", value); } /// diff --git a/Dataverse/Context/tables/SdkMessageProcessingStep.cs b/Dataverse/Context/tables/SdkMessageProcessingStep.cs index 166cc04..360c434 100644 --- a/Dataverse/Context/tables/SdkMessageProcessingStep.cs +++ b/Dataverse/Context/tables/SdkMessageProcessingStep.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// Stage in the execution pipeline that a plug-in is to execute. /// Display Name: Sdk Message Processing Step /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("sdkmessageprocessingstep")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] diff --git a/Dataverse/Context/tables/SdkMessageProcessingStepImage.cs b/Dataverse/Context/tables/SdkMessageProcessingStepImage.cs index 6c84acb..79e9378 100644 --- a/Dataverse/Context/tables/SdkMessageProcessingStepImage.cs +++ b/Dataverse/Context/tables/SdkMessageProcessingStepImage.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// Copy of an entity's attributes before or after the core system operation. /// Display Name: Sdk Message Processing Step Image /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("sdkmessageprocessingstepimage")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] @@ -45,7 +45,7 @@ public override Guid Id { [AttributeLogicalName("attributes")] [DisplayName("Attributes")] [MaxLength(100000)] - public string Attributes1 + public string Attributes_1 { get => GetAttributeValue("attributes"); set => SetAttributeValue("attributes", value); diff --git a/Dataverse/Context/tables/Solution.cs b/Dataverse/Context/tables/Solution.cs index c0c5e21..d5e806a 100644 --- a/Dataverse/Context/tables/Solution.cs +++ b/Dataverse/Context/tables/Solution.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// A solution which contains CRM customizations. /// Display Name: Solution /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("solution")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] diff --git a/Dataverse/Context/tables/SolutionComponent.cs b/Dataverse/Context/tables/SolutionComponent.cs index 1fbc5c9..8f92207 100644 --- a/Dataverse/Context/tables/SolutionComponent.cs +++ b/Dataverse/Context/tables/SolutionComponent.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// A component of a CRM solution. /// Display Name: Solution Component /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("solutioncomponent")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] diff --git a/Dataverse/Context/tables/SystemUser.cs b/Dataverse/Context/tables/SystemUser.cs index 2aeab12..a7cc365 100644 --- a/Dataverse/Context/tables/SystemUser.cs +++ b/Dataverse/Context/tables/SystemUser.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// Person with access to the Microsoft CRM system and who owns objects in the Microsoft CRM database. /// Display Name: User /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("systemuser")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] @@ -1810,110 +1810,6 @@ public IEnumerable lk_solutionbase_createdonbehalfby set => SetRelatedEntities("lk_solutionbase_createdonbehalfby", null, value); } - [RelationshipSchemaName("lk_customapi_createdby")] - [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "createdby", "Referenced")] - public IEnumerable lk_customapi_createdby - { - get => GetRelatedEntities("lk_customapi_createdby", null); - set => SetRelatedEntities("lk_customapi_createdby", null, value); - } - - [RelationshipSchemaName("lk_customapi_createdonbehalfby")] - [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "createdonbehalfby", "Referenced")] - public IEnumerable lk_customapi_createdonbehalfby - { - get => GetRelatedEntities("lk_customapi_createdonbehalfby", null); - set => SetRelatedEntities("lk_customapi_createdonbehalfby", null, value); - } - - [RelationshipSchemaName("lk_customapi_modifiedby")] - [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "modifiedby", "Referenced")] - public IEnumerable lk_customapi_modifiedby - { - get => GetRelatedEntities("lk_customapi_modifiedby", null); - set => SetRelatedEntities("lk_customapi_modifiedby", null, value); - } - - [RelationshipSchemaName("lk_customapi_modifiedonbehalfby")] - [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "modifiedonbehalfby", "Referenced")] - public IEnumerable lk_customapi_modifiedonbehalfby - { - get => GetRelatedEntities("lk_customapi_modifiedonbehalfby", null); - set => SetRelatedEntities("lk_customapi_modifiedonbehalfby", null, value); - } - - [RelationshipSchemaName("user_customapi")] - [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "owninguser", "Referenced")] - public IEnumerable user_customapi - { - get => GetRelatedEntities("user_customapi", null); - set => SetRelatedEntities("user_customapi", null, value); - } - - [RelationshipSchemaName("lk_customapirequestparameter_createdby")] - [RelationshipMetadata("OneToMany", "systemuserid", "customapirequestparameter", "createdby", "Referenced")] - public IEnumerable lk_customapirequestparameter_createdby - { - get => GetRelatedEntities("lk_customapirequestparameter_createdby", null); - set => SetRelatedEntities("lk_customapirequestparameter_createdby", null, value); - } - - [RelationshipSchemaName("lk_customapirequestparameter_createdonbehalfby")] - [RelationshipMetadata("OneToMany", "systemuserid", "customapirequestparameter", "createdonbehalfby", "Referenced")] - public IEnumerable lk_customapirequestparameter_createdonbehalfby - { - get => GetRelatedEntities("lk_customapirequestparameter_createdonbehalfby", null); - set => SetRelatedEntities("lk_customapirequestparameter_createdonbehalfby", null, value); - } - - [RelationshipSchemaName("lk_customapirequestparameter_modifiedby")] - [RelationshipMetadata("OneToMany", "systemuserid", "customapirequestparameter", "modifiedby", "Referenced")] - public IEnumerable lk_customapirequestparameter_modifiedby - { - get => GetRelatedEntities("lk_customapirequestparameter_modifiedby", null); - set => SetRelatedEntities("lk_customapirequestparameter_modifiedby", null, value); - } - - [RelationshipSchemaName("lk_customapirequestparameter_modifiedonbehalfby")] - [RelationshipMetadata("OneToMany", "systemuserid", "customapirequestparameter", "modifiedonbehalfby", "Referenced")] - public IEnumerable lk_customapirequestparameter_modifiedonbehalfby - { - get => GetRelatedEntities("lk_customapirequestparameter_modifiedonbehalfby", null); - set => SetRelatedEntities("lk_customapirequestparameter_modifiedonbehalfby", null, value); - } - - [RelationshipSchemaName("lk_customapiresponseproperty_createdby")] - [RelationshipMetadata("OneToMany", "systemuserid", "customapiresponseproperty", "createdby", "Referenced")] - public IEnumerable lk_customapiresponseproperty_createdby - { - get => GetRelatedEntities("lk_customapiresponseproperty_createdby", null); - set => SetRelatedEntities("lk_customapiresponseproperty_createdby", null, value); - } - - [RelationshipSchemaName("lk_customapiresponseproperty_createdonbehalfby")] - [RelationshipMetadata("OneToMany", "systemuserid", "customapiresponseproperty", "createdonbehalfby", "Referenced")] - public IEnumerable lk_customapiresponseproperty_createdonbehalfby - { - get => GetRelatedEntities("lk_customapiresponseproperty_createdonbehalfby", null); - set => SetRelatedEntities("lk_customapiresponseproperty_createdonbehalfby", null, value); - } - - [RelationshipSchemaName("lk_customapiresponseproperty_modifiedby")] - [RelationshipMetadata("OneToMany", "systemuserid", "customapiresponseproperty", "modifiedby", "Referenced")] - public IEnumerable lk_customapiresponseproperty_modifiedby - { - get => GetRelatedEntities("lk_customapiresponseproperty_modifiedby", null); - set => SetRelatedEntities("lk_customapiresponseproperty_modifiedby", null, value); - } - - [RelationshipSchemaName("lk_customapiresponseproperty_modifiedonbehalfby")] - [RelationshipMetadata("OneToMany", "systemuserid", "customapiresponseproperty", "modifiedonbehalfby", "Referenced")] - public IEnumerable lk_customapiresponseproperty_modifiedonbehalfby - { - get => GetRelatedEntities("lk_customapiresponseproperty_modifiedonbehalfby", null); - set => SetRelatedEntities("lk_customapiresponseproperty_modifiedonbehalfby", null, value); - } - [RelationshipSchemaName("lk_sdkmessage_createdonbehalfby")] [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessage", "createdonbehalfby", "Referenced")] public IEnumerable lk_sdkmessage_createdonbehalfby @@ -2058,6 +1954,102 @@ public IEnumerable lk_solutionbase_modifiedonbehalfby set => SetRelatedEntities("lk_solutionbase_modifiedonbehalfby", null, value); } + [RelationshipSchemaName("lk_customapi_createdby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "createdby", "Referenced")] + public IEnumerable lk_customapi_createdby + { + get => GetRelatedEntities("lk_customapi_createdby", null); + set => SetRelatedEntities("lk_customapi_createdby", null, value); + } + + [RelationshipSchemaName("lk_customapi_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "createdonbehalfby", "Referenced")] + public IEnumerable lk_customapi_createdonbehalfby + { + get => GetRelatedEntities("lk_customapi_createdonbehalfby", null); + set => SetRelatedEntities("lk_customapi_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_customapi_modifiedby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "modifiedby", "Referenced")] + public IEnumerable lk_customapi_modifiedby + { + get => GetRelatedEntities("lk_customapi_modifiedby", null); + set => SetRelatedEntities("lk_customapi_modifiedby", null, value); + } + + [RelationshipSchemaName("lk_customapi_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_customapi_modifiedonbehalfby + { + get => GetRelatedEntities("lk_customapi_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_customapi_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("user_customapi")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapi", "owninguser", "Referenced")] + public IEnumerable user_customapi + { + get => GetRelatedEntities("user_customapi", null); + set => SetRelatedEntities("user_customapi", null, value); + } + + [RelationshipSchemaName("lk_customapirequestparameter_createdby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapirequestparameter", "createdby", "Referenced")] + public IEnumerable lk_customapirequestparameter_createdby + { + get => GetRelatedEntities("lk_customapirequestparameter_createdby", null); + set => SetRelatedEntities("lk_customapirequestparameter_createdby", null, value); + } + + [RelationshipSchemaName("lk_customapirequestparameter_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapirequestparameter", "createdonbehalfby", "Referenced")] + public IEnumerable lk_customapirequestparameter_createdonbehalfby + { + get => GetRelatedEntities("lk_customapirequestparameter_createdonbehalfby", null); + set => SetRelatedEntities("lk_customapirequestparameter_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_customapirequestparameter_modifiedby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapirequestparameter", "modifiedby", "Referenced")] + public IEnumerable lk_customapirequestparameter_modifiedby + { + get => GetRelatedEntities("lk_customapirequestparameter_modifiedby", null); + set => SetRelatedEntities("lk_customapirequestparameter_modifiedby", null, value); + } + + [RelationshipSchemaName("lk_customapirequestparameter_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapirequestparameter", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_customapirequestparameter_modifiedonbehalfby + { + get => GetRelatedEntities("lk_customapirequestparameter_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_customapirequestparameter_modifiedonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_customapiresponseproperty_createdby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapiresponseproperty", "createdby", "Referenced")] + public IEnumerable lk_customapiresponseproperty_createdby + { + get => GetRelatedEntities("lk_customapiresponseproperty_createdby", null); + set => SetRelatedEntities("lk_customapiresponseproperty_createdby", null, value); + } + + [RelationshipSchemaName("lk_customapiresponseproperty_createdonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapiresponseproperty", "createdonbehalfby", "Referenced")] + public IEnumerable lk_customapiresponseproperty_createdonbehalfby + { + get => GetRelatedEntities("lk_customapiresponseproperty_createdonbehalfby", null); + set => SetRelatedEntities("lk_customapiresponseproperty_createdonbehalfby", null, value); + } + + [RelationshipSchemaName("lk_customapiresponseproperty_modifiedby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapiresponseproperty", "modifiedby", "Referenced")] + public IEnumerable lk_customapiresponseproperty_modifiedby + { + get => GetRelatedEntities("lk_customapiresponseproperty_modifiedby", null); + set => SetRelatedEntities("lk_customapiresponseproperty_modifiedby", null, value); + } + [RelationshipSchemaName("createdby_sdkmessage")] [RelationshipMetadata("OneToMany", "systemuserid", "sdkmessage", "createdby", "Referenced")] public IEnumerable createdby_sdkmessage @@ -2066,6 +2058,14 @@ public IEnumerable createdby_sdkmessage set => SetRelatedEntities("createdby_sdkmessage", null, value); } + [RelationshipSchemaName("lk_customapiresponseproperty_modifiedonbehalfby")] + [RelationshipMetadata("OneToMany", "systemuserid", "customapiresponseproperty", "modifiedonbehalfby", "Referenced")] + public IEnumerable lk_customapiresponseproperty_modifiedonbehalfby + { + get => GetRelatedEntities("lk_customapiresponseproperty_modifiedonbehalfby", null); + set => SetRelatedEntities("lk_customapiresponseproperty_modifiedonbehalfby", null, value); + } + [RelationshipSchemaName("lk_webresourcebase_createdonbehalfby")] [RelationshipMetadata("OneToMany", "systemuserid", "webresource", "createdonbehalfby", "Referenced")] public IEnumerable lk_webresourcebase_createdonbehalfby @@ -2185,4 +2185,21 @@ public static SystemUser Retrieve(IOrganizationService service, Guid id, params { return service.Retrieve(id, columns); } + + /// + /// Retrieves the SystemUser using the AAD ObjectId alternate key. + /// + /// Organization service + /// AzureActiveDirectoryObjectId key value + /// Expressions that specify columns to retrieve + /// The retrieved SystemUser + public static SystemUser Retrieve_aadobjectid(IOrganizationService service, Guid AzureActiveDirectoryObjectId, params Expression>[] columns) + { + var keyedEntityReference = new EntityReference(EntityLogicalName, new KeyAttributeCollection + { + ["azureactivedirectoryobjectid"] = AzureActiveDirectoryObjectId, + }); + + return service.Retrieve(keyedEntityReference, columns); + } } \ No newline at end of file diff --git a/Dataverse/Context/tables/TableAttributeHelpers.cs b/Dataverse/Context/tables/TableAttributeHelpers.cs index 4c92c18..76b130a 100644 --- a/Dataverse/Context/tables/TableAttributeHelpers.cs +++ b/Dataverse/Context/tables/TableAttributeHelpers.cs @@ -4,7 +4,7 @@ namespace XrmSync.Dataverse.Context; -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] public static class TableAttributeHelpers { /// @@ -102,4 +102,34 @@ public static T Retrieve(this IOrganizationService service, Guid id, params E return service.Retrieve(entityLogicalName, id, columnSet).ToEntity(); } + + /// + /// Retrieves an entity of type T using an alternate key with the specified attributes. + /// + /// Type of Entity to retrieve + /// Organization service + /// EntityReference with alternate key values + /// Expressions that specify attributes to retrieve + /// The retrieved entity + public static T Retrieve(this IOrganizationService service, EntityReference keyedEntityReference, params Expression>[] attrs) + where T : Entity, new() + { + if (service == null) throw new ArgumentNullException(nameof(service)); + if (keyedEntityReference == null) throw new ArgumentNullException(nameof(keyedEntityReference)); + + var req = new Microsoft.Xrm.Sdk.Messages.RetrieveRequest(); + req.Target = keyedEntityReference; + + if (attrs == null || attrs.Length == 0) + { + req.ColumnSet = new ColumnSet(true); + } + else + { + var columnNames = attrs.Select(attr => GetColumnName(attr)).ToArray(); + req.ColumnSet = new ColumnSet(columnNames); + } + + return (service.Execute(req) as Microsoft.Xrm.Sdk.Messages.RetrieveResponse)?.Entity?.ToEntity(); + } } \ No newline at end of file diff --git a/Dataverse/Context/tables/WebResource.cs b/Dataverse/Context/tables/WebResource.cs index 407ae02..e034180 100644 --- a/Dataverse/Context/tables/WebResource.cs +++ b/Dataverse/Context/tables/WebResource.cs @@ -12,7 +12,7 @@ namespace XrmSync.Dataverse.Context; /// Data equivalent to files used in Web development. Web resources provide client-side components that are used to provide custom user interface elements. /// Display Name: Web Resource /// -[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.19")] +[System.CodeDom.Compiler.GeneratedCode("DataverseProxyGenerator", "4.0.0.21")] [EntityLogicalName("webresource")] [DebuggerDisplay("{DebuggerDisplay,nq}")] [DataContract] diff --git a/Dataverse/PluginReader.cs b/Dataverse/PluginReader.cs index 9edfaf7..7a9619c 100644 --- a/Dataverse/PluginReader.cs +++ b/Dataverse/PluginReader.cs @@ -87,14 +87,14 @@ [.. steps.Select(s => s.Id).Distinct()], pi => pi.SdkMessageProcessingStepImageId, pi => pi.Name, pi => pi.EntityAlias, - pi => pi.Attributes1, + pi => pi.Attributes_1, pi => pi.ImageType, pi => pi.SdkMessageProcessingStepId ).ConvertAll(pi => (pi.SdkMessageProcessingStepId, Image: new Image(pi.Name ?? string.Empty) { Id = pi.Id, EntityAlias = pi.EntityAlias ?? string.Empty, - Attributes = pi.Attributes1 ?? string.Empty, + Attributes = pi.Attributes_1 ?? string.Empty, ImageType = (ImageType)(pi.ImageType ?? 0), })).ToLookup(pi => pi.SdkMessageProcessingStepId?.Id ?? Guid.Empty, pi => pi.Image); diff --git a/Dataverse/PluginWriter.cs b/Dataverse/PluginWriter.cs index f60af46..e0f6e6d 100644 --- a/Dataverse/PluginWriter.cs +++ b/Dataverse/PluginWriter.cs @@ -67,7 +67,7 @@ public void UpdatePluginImages(IEnumerable> pluginI Name = image.Name, EntityAlias = image.EntityAlias, ImageType = (sdkmessageprocessingstepimage_imagetype)image.ImageType, - Attributes1 = image.Attributes, + Attributes_1 = image.Attributes, SdkMessageProcessingStepId = new EntityReference(SdkMessageProcessingStep.EntityLogicalName, step.Id), }; }).ToList(); @@ -153,7 +153,7 @@ public ICollection> CreatePluginImages(ICollection< Name = image.Name, EntityAlias = image.EntityAlias, ImageType = (sdkmessageprocessingstepimage_imagetype)image.ImageType, - Attributes1 = image.Attributes, + Attributes_1 = image.Attributes, MessagePropertyName = MessageReader.GetMessagePropertyName(step.EventOperation) ?? string.Empty, SdkMessageProcessingStepId = new EntityReference(SdkMessageProcessingStep.EntityLogicalName, step.Id) }; diff --git a/Dataverse/appsettings.json b/Dataverse/appsettings.json index 840eded..84bb0ec 100644 --- a/Dataverse/appsettings.json +++ b/Dataverse/appsettings.json @@ -1,5 +1,6 @@ { - "DATAVERSE_URL": "https://org6004706f.crm4.dynamics.com", + //"DATAVERSE_URL": "https://org6004706f.crm4.dynamics.com", + "DATAVERSE_URL": "https://org507f744f.crm4.dynamics.com", "XrmContext": { "OutputDirectory": "./Context", "ServiceContextName": "DataverseContext", diff --git a/SyncService/PluginSyncService.cs b/SyncService/PluginSyncService.cs index 8f04a96..09e50e5 100644 --- a/SyncService/PluginSyncService.cs +++ b/SyncService/PluginSyncService.cs @@ -38,7 +38,7 @@ private record SyncData(AssemblyInfo LocalAssembly, AssemblyInfo? CrmAssembly); public async Task Sync(CancellationToken cancellationToken) { - printService.PrintHeader(PrintHeaderOptions.Default with { Message = "Comparing plugins registered in Dataverse versus those found in your local code" }); + printService.PrintHeader(PrintHeaderOptions.Default with { Message = "Comparing plugins registered in Dataverse versus those found in your local code" }); // Read the data from the local assembly and from Dataverse var (localAssembly, crmAssembly) = await ReadData(cancellationToken); diff --git a/Tests/Webresources/WebresourceValidationTests.cs b/Tests/Webresources/WebresourceValidationTests.cs index c193054..7202788 100644 --- a/Tests/Webresources/WebresourceValidationTests.cs +++ b/Tests/Webresources/WebresourceValidationTests.cs @@ -196,7 +196,7 @@ public void ValidateWebresources_ThrowsException_ForNameConflict() var webresourceToCreate = new WebresourceDefinition( "test_solution/js/existing.js", "Existing Script", - WebresourceType.ScriptJscript, + WebresourceType.JavaScript, "Y29udGVudA==" ); @@ -230,14 +230,14 @@ public void ValidateWebresources_DoesNotThrow_ForNoNameConflict() var webresource1 = new WebresourceDefinition( "test_solution/js/new.js", "New Script", - WebresourceType.ScriptJscript, + WebresourceType.JavaScript, "Y29udGVudA==" ); var webresource2 = new WebresourceDefinition( "test_solution/css/new.css", "New Style", - WebresourceType.StyleSheetCss, + WebresourceType.CSS, "Y29udGVudA==" ); @@ -269,14 +269,14 @@ public void ValidateWebresources_ThrowsAggregateException_ForMultipleNameConflic var webresource1 = new WebresourceDefinition( "test_solution/js/conflict1.js", "Conflict 1", - WebresourceType.ScriptJscript, + WebresourceType.JavaScript, "Y29udGVudA==" ); var webresource2 = new WebresourceDefinition( "test_solution/js/conflict2.js", "Conflict 2", - WebresourceType.ScriptJscript, + WebresourceType.JavaScript, "Y29udGVudA==" ); @@ -316,7 +316,7 @@ public void ValidateWebresources_NameConflict_IsCaseInsensitive() var webresourceToCreate = new WebresourceDefinition( "test_solution/js/SCRIPT.JS", // Upper case "Script", - WebresourceType.ScriptJscript, + WebresourceType.JavaScript, "Y29udGVudA==" ); @@ -348,7 +348,7 @@ public void ValidateWebresources_NameConflictRule_DoesNotApplyToDeletes() var webresourceToDelete = new WebresourceDefinition( "test_solution/js/existing.js", "Existing Script", - WebresourceType.ScriptJscript, + WebresourceType.JavaScript, "Y29udGVudA==" ) { @@ -385,7 +385,7 @@ public void ValidateWebresources_DependencyRule_DoesNotApplyToCreates() var webresourceToCreate = new WebresourceDefinition( "test_solution/js/new.js", "New Script", - WebresourceType.ScriptJscript, + WebresourceType.JavaScript, "Y29udGVudA==" ); // No Id set - it's a create, not a delete From bf76714efada75866f6a8d71db15527767ef6e9d Mon Sep 17 00:00:00 2001 From: Morten Holt Date: Fri, 14 Nov 2025 13:16:18 +0100 Subject: [PATCH 3/4] REFACTOR: Rename JavaScript to align with the other type names --- AssemblyAnalyzer/Reader/LocalReader.cs | 4 +-- Model/Webresource/WebresourceType.cs | 6 ++-- .../WebresourceSyncServiceTests.cs | 34 +++++++++---------- .../WebresourceValidationTests.cs | 22 ++++++------ Tests/Webresources/WebresourceWriterTests.cs | 28 +++++++-------- 5 files changed, 47 insertions(+), 47 deletions(-) diff --git a/AssemblyAnalyzer/Reader/LocalReader.cs b/AssemblyAnalyzer/Reader/LocalReader.cs index 1926f2c..4c05a2f 100644 --- a/AssemblyAnalyzer/Reader/LocalReader.cs +++ b/AssemblyAnalyzer/Reader/LocalReader.cs @@ -229,7 +229,7 @@ private record CommandResult { ".html", WebresourceType.HTML }, { ".htm", WebresourceType.HTML }, { ".css", WebresourceType.CSS }, - { ".js", WebresourceType.JavaScript }, + { ".js", WebresourceType.JS }, { ".xml", WebresourceType.XML }, { ".xaml", WebresourceType.XML }, { ".xsd", WebresourceType.XML }, @@ -239,7 +239,7 @@ private record CommandResult { ".jpg", WebresourceType.JPG }, { ".jpeg", WebresourceType.JPG }, { ".gif", WebresourceType.GIF }, - { ".xap", WebresourceType.SilverlightXAP }, + { ".xap", WebresourceType.XAP }, { ".ico", WebresourceType.ICO }, { ".svg", WebresourceType.SVG }, { ".resx", WebresourceType.RSX } diff --git a/Model/Webresource/WebresourceType.cs b/Model/Webresource/WebresourceType.cs index 0ece123..0e3eaa0 100644 --- a/Model/Webresource/WebresourceType.cs +++ b/Model/Webresource/WebresourceType.cs @@ -1,15 +1,15 @@ -namespace XrmSync.Model.Webresource; +namespace XrmSync.Model.Webresource; public enum WebresourceType { HTML = 1, CSS = 2, - JavaScript = 3, + JS = 3, XML = 4, PNG = 5, JPG = 6, GIF = 7, - SilverlightXAP = 8, + XAP = 8, XSL = 9, ICO = 10, SVG = 11, diff --git a/Tests/Webresources/WebresourceSyncServiceTests.cs b/Tests/Webresources/WebresourceSyncServiceTests.cs index a5914d3..8bde6a6 100644 --- a/Tests/Webresources/WebresourceSyncServiceTests.cs +++ b/Tests/Webresources/WebresourceSyncServiceTests.cs @@ -49,7 +49,7 @@ public async Task Sync_CreatesNewWebresources_WhenOnlyExistLocally() var localWebresources = new List { - new("test_TestSolution/test.js", "Test Script", WebresourceType.JavaScript, "Y29uc29sZS5sb2coJ3Rlc3QnKTs=") + new("test_TestSolution/test.js", "Test Script", WebresourceType.JS, "Y29uc29sZS5sb2coJ3Rlc3QnKTs=") }; _localReader.ReadWebResourceFolder(_options.FolderPath, $"{solutionPrefix}_{_options.SolutionName}") .Returns(localWebresources); @@ -79,7 +79,7 @@ public async Task Sync_DeletesWebresources_WhenOnlyExistRemotely() var remoteWebresources = new List { - new("test_TestSolution/old.js", "Old Script", WebresourceType.JavaScript, "b2xkQ29kZQ==") { Id = Guid.NewGuid() } + new("test_TestSolution/old.js", "Old Script", WebresourceType.JS, "b2xkQ29kZQ==") { Id = Guid.NewGuid() } }; _webresourceReader.GetWebresources(solutionId).Returns(remoteWebresources); @@ -104,14 +104,14 @@ public async Task Sync_UpdatesWebresources_WhenContentDiffers() var localWebresources = new List { - new("test_TestSolution/test.js", "Test Script", WebresourceType.JavaScript, "bmV3Q29kZQ==") + new("test_TestSolution/test.js", "Test Script", WebresourceType.JS, "bmV3Q29kZQ==") }; _localReader.ReadWebResourceFolder(_options.FolderPath, $"{solutionPrefix}_{_options.SolutionName}") .Returns(localWebresources); var remoteWebresources = new List { - new("test_TestSolution/test.js", "Test Script", WebresourceType.JavaScript, "b2xkQ29kZQ==") { Id = webresourceId } + new("test_TestSolution/test.js", "Test Script", WebresourceType.JS, "b2xkQ29kZQ==") { Id = webresourceId } }; _webresourceReader.GetWebresources(solutionId).Returns(remoteWebresources); @@ -139,14 +139,14 @@ public async Task Sync_UpdatesWebresources_WhenDisplayNameDiffers() var localWebresources = new List { - new("test_TestSolution/test.js", "Updated Display Name", WebresourceType.JavaScript, "c2FtZUNvZGU=") + new("test_TestSolution/test.js", "Updated Display Name", WebresourceType.JS, "c2FtZUNvZGU=") }; _localReader.ReadWebResourceFolder(_options.FolderPath, $"{solutionPrefix}_{_options.SolutionName}") .Returns(localWebresources); var remoteWebresources = new List { - new("test_TestSolution/test.js", "Old Display Name", WebresourceType.JavaScript, "c2FtZUNvZGU=") { Id = webresourceId } + new("test_TestSolution/test.js", "Old Display Name", WebresourceType.JS, "c2FtZUNvZGU=") { Id = webresourceId } }; _webresourceReader.GetWebresources(solutionId).Returns(remoteWebresources); @@ -173,14 +173,14 @@ public async Task Sync_DoesNotUpdate_WhenWebresourcesAreIdentical() var localWebresources = new List { - new("test_TestSolution/test.js", "Test Script", WebresourceType.JavaScript, "c2FtZUNvZGU=") + new("test_TestSolution/test.js", "Test Script", WebresourceType.JS, "c2FtZUNvZGU=") }; _localReader.ReadWebResourceFolder(_options.FolderPath, $"{solutionPrefix}_{_options.SolutionName}") .Returns(localWebresources); var remoteWebresources = new List { - new("test_TestSolution/test.js", "Test Script", WebresourceType.JavaScript, "c2FtZUNvZGU=") { Id = webresourceId } + new("test_TestSolution/test.js", "Test Script", WebresourceType.JS, "c2FtZUNvZGU=") { Id = webresourceId } }; _webresourceReader.GetWebresources(solutionId).Returns(remoteWebresources); @@ -206,18 +206,18 @@ public async Task Sync_HandlesMultipleOperations_Simultaneously() var localWebresources = new List { - new("test_TestSolution/new.js", "New Script", WebresourceType.JavaScript, "bmV3"), - new("test_TestSolution/existing.js", "Existing", WebresourceType.JavaScript, "ZXhpc3Rpbmc="), - new("test_TestSolution/update.js", "Updated", WebresourceType.JavaScript, "dXBkYXRlZA==") + new("test_TestSolution/new.js", "New Script", WebresourceType.JS, "bmV3"), + new("test_TestSolution/existing.js", "Existing", WebresourceType.JS, "ZXhpc3Rpbmc="), + new("test_TestSolution/update.js", "Updated", WebresourceType.JS, "dXBkYXRlZA==") }; _localReader.ReadWebResourceFolder(_options.FolderPath, $"{solutionPrefix}_{_options.SolutionName}") .Returns(localWebresources); var remoteWebresources = new List { - new("test_TestSolution/existing.js", "Existing", WebresourceType.JavaScript, "ZXhpc3Rpbmc=") { Id = existingId }, - new("test_TestSolution/update.js", "Updated", WebresourceType.JavaScript, "b2xk") { Id = toUpdateId }, - new("test_TestSolution/delete.js", "To Delete", WebresourceType.JavaScript, "ZGVsZXRl") { Id = toDeleteId } + new("test_TestSolution/existing.js", "Existing", WebresourceType.JS, "ZXhpc3Rpbmc=") { Id = existingId }, + new("test_TestSolution/update.js", "Updated", WebresourceType.JS, "b2xk") { Id = toUpdateId }, + new("test_TestSolution/delete.js", "To Delete", WebresourceType.JS, "ZGVsZXRl") { Id = toDeleteId } }; _webresourceReader.GetWebresources(solutionId).Returns(remoteWebresources); @@ -244,14 +244,14 @@ public async Task Sync_IsCaseInsensitive_ForNameMatching() var localWebresources = new List { - new("test_testsolution/test.js", "Test Script", WebresourceType.JavaScript, "dGVzdA==") + new("test_testsolution/test.js", "Test Script", WebresourceType.JS, "dGVzdA==") }; _localReader.ReadWebResourceFolder(_options.FolderPath, $"{solutionPrefix}_{_options.SolutionName}") .Returns(localWebresources); var remoteWebresources = new List { - new("TEST_TESTSOLUTION/TEST.JS", "Test Script", WebresourceType.JavaScript, "dGVzdA==") { Id = webresourceId } + new("TEST_TESTSOLUTION/TEST.JS", "Test Script", WebresourceType.JS, "dGVzdA==") { Id = webresourceId } }; _webresourceReader.GetWebresources(solutionId).Returns(remoteWebresources); @@ -274,7 +274,7 @@ public async Task Sync_HandlesMultipleWebresourceTypes() var localWebresources = new List { - new("test_TestSolution/script.js", "Script", WebresourceType.JavaScript, "anM="), + new("test_TestSolution/script.js", "Script", WebresourceType.JS, "anM="), new("test_TestSolution/style.css", "Style", WebresourceType.CSS, "Y3Nz"), new("test_TestSolution/page.html", "Page", WebresourceType.HTML, "aHRtbA=="), new("test_TestSolution/image.png", "Image", WebresourceType.PNG, "cG5n"), diff --git a/Tests/Webresources/WebresourceValidationTests.cs b/Tests/Webresources/WebresourceValidationTests.cs index 7202788..277e384 100644 --- a/Tests/Webresources/WebresourceValidationTests.cs +++ b/Tests/Webresources/WebresourceValidationTests.cs @@ -57,7 +57,7 @@ public void ValidateWebresources_ThrowsException_ForWebresourceWithDependencies( var webresourceWithDependency = new WebresourceDefinition( "test_solution/js/script.js", "Test Script", - WebresourceType.JavaScript, + WebresourceType.JS, "Y29udGVudA==" ) { @@ -102,7 +102,7 @@ public void ValidateWebresources_DoesNotThrow_ForWebresourceWithoutDependencies( var webresource1 = new WebresourceDefinition( "test_solution/js/script.js", "Test Script", - WebresourceType.JavaScript, + WebresourceType.JS, "Y29udGVudA==" ) { @@ -144,7 +144,7 @@ public void ValidateWebresources_ThrowsAggregateException_ForMultipleWebresource var webresource1 = new WebresourceDefinition( "test_solution/js/script1.js", "Test Script 1", - WebresourceType.JavaScript, + WebresourceType.JS, "Y29udGVudA==" ) { @@ -154,7 +154,7 @@ public void ValidateWebresources_ThrowsAggregateException_ForMultipleWebresource var webresource2 = new WebresourceDefinition( "test_solution/js/script2.js", "Test Script 2", - WebresourceType.JavaScript, + WebresourceType.JS, "Y29udGVudA==" ) { @@ -196,7 +196,7 @@ public void ValidateWebresources_ThrowsException_ForNameConflict() var webresourceToCreate = new WebresourceDefinition( "test_solution/js/existing.js", "Existing Script", - WebresourceType.JavaScript, + WebresourceType.JS, "Y29udGVudA==" ); @@ -230,7 +230,7 @@ public void ValidateWebresources_DoesNotThrow_ForNoNameConflict() var webresource1 = new WebresourceDefinition( "test_solution/js/new.js", "New Script", - WebresourceType.JavaScript, + WebresourceType.JS, "Y29udGVudA==" ); @@ -269,14 +269,14 @@ public void ValidateWebresources_ThrowsAggregateException_ForMultipleNameConflic var webresource1 = new WebresourceDefinition( "test_solution/js/conflict1.js", "Conflict 1", - WebresourceType.JavaScript, + WebresourceType.JS, "Y29udGVudA==" ); var webresource2 = new WebresourceDefinition( "test_solution/js/conflict2.js", "Conflict 2", - WebresourceType.JavaScript, + WebresourceType.JS, "Y29udGVudA==" ); @@ -316,7 +316,7 @@ public void ValidateWebresources_NameConflict_IsCaseInsensitive() var webresourceToCreate = new WebresourceDefinition( "test_solution/js/SCRIPT.JS", // Upper case "Script", - WebresourceType.JavaScript, + WebresourceType.JS, "Y29udGVudA==" ); @@ -348,7 +348,7 @@ public void ValidateWebresources_NameConflictRule_DoesNotApplyToDeletes() var webresourceToDelete = new WebresourceDefinition( "test_solution/js/existing.js", "Existing Script", - WebresourceType.JavaScript, + WebresourceType.JS, "Y29udGVudA==" ) { @@ -385,7 +385,7 @@ public void ValidateWebresources_DependencyRule_DoesNotApplyToCreates() var webresourceToCreate = new WebresourceDefinition( "test_solution/js/new.js", "New Script", - WebresourceType.JavaScript, + WebresourceType.JS, "Y29udGVudA==" ); // No Id set - it's a create, not a delete diff --git a/Tests/Webresources/WebresourceWriterTests.cs b/Tests/Webresources/WebresourceWriterTests.cs index 76707cd..ead2ac2 100644 --- a/Tests/Webresources/WebresourceWriterTests.cs +++ b/Tests/Webresources/WebresourceWriterTests.cs @@ -25,7 +25,7 @@ public void Create_CallsDataverseWriter_WithCorrectParameters() // Arrange var webresources = new List { - new("test_solution/test.js", "Test Script", WebresourceType.JavaScript, "Y29uc29sZS5sb2coJ3Rlc3QnKTs=") + new("test_solution/test.js", "Test Script", WebresourceType.JS, "Y29uc29sZS5sb2coJ3Rlc3QnKTs=") }; // Act @@ -48,7 +48,7 @@ public void Create_PassesSolutionNameInParameters() // Arrange var webresources = new List { - new("test.js", "Test", WebresourceType.JavaScript, "dGVzdA==") + new("test.js", "Test", WebresourceType.JS, "dGVzdA==") }; Dictionary? capturedParams = null; @@ -69,7 +69,7 @@ public void Create_HandlesMultipleWebresources() // Arrange var webresources = new List { - new("test_solution/script.js", "Script", WebresourceType.JavaScript, "anM="), + new("test_solution/script.js", "Script", WebresourceType.JS, "anM="), new("test_solution/style.css", "Style", WebresourceType.CSS, "Y3Nz"), new("test_solution/page.html", "Page", WebresourceType.HTML, "aHRtbA==") }; @@ -89,12 +89,12 @@ public void Create_MapsWebresourceTypeCorrectly() { (WebresourceType.HTML, webresource_webresourcetype.WebpageHTML), (WebresourceType.CSS, webresource_webresourcetype.StyleSheetCSS), - (WebresourceType.JavaScript, webresource_webresourcetype.ScriptJScript), + (WebresourceType.JS, webresource_webresourcetype.ScriptJScript), (WebresourceType.XML, webresource_webresourcetype.DataXML), (WebresourceType.PNG, webresource_webresourcetype.PNGformat), (WebresourceType.JPG, webresource_webresourcetype.JPGformat), (WebresourceType.GIF, webresource_webresourcetype.GIFformat), - (WebresourceType.SilverlightXAP, webresource_webresourcetype.SilverlightXAP), + (WebresourceType.XAP, webresource_webresourcetype.SilverlightXAP), (WebresourceType.XSL, webresource_webresourcetype.StyleSheetXSL), (WebresourceType.ICO, webresource_webresourcetype.ICOformat), (WebresourceType.SVG, webresource_webresourcetype.VectorformatSVG), @@ -128,7 +128,7 @@ public void Update_CallsDataverseWriter_WithCorrectParameters() var webresourceId = Guid.NewGuid(); var webresources = new List { - new("test_solution/test.js", "Updated Display Name", WebresourceType.JavaScript, "dXBkYXRlZENvbnRlbnQ=") + new("test_solution/test.js", "Updated Display Name", WebresourceType.JS, "dXBkYXRlZENvbnRlbnQ=") { Id = webresourceId } @@ -153,9 +153,9 @@ public void Update_HandlesMultipleWebresources() // Arrange var webresources = new List { - new("test1.js", "Test 1", WebresourceType.JavaScript, "dGVzdDE=") { Id = Guid.NewGuid() }, - new("test2.js", "Test 2", WebresourceType.JavaScript, "dGVzdDI=") { Id = Guid.NewGuid() }, - new("test3.js", "Test 3", WebresourceType.JavaScript, "dGVzdDM=") { Id = Guid.NewGuid() } + new("test1.js", "Test 1", WebresourceType.JS, "dGVzdDE=") { Id = Guid.NewGuid() }, + new("test2.js", "Test 2", WebresourceType.JS, "dGVzdDI=") { Id = Guid.NewGuid() }, + new("test3.js", "Test 3", WebresourceType.JS, "dGVzdDM=") { Id = Guid.NewGuid() } }; // Act @@ -174,7 +174,7 @@ public void Update_DoesNotIncludeNameInUpdate() var webresourceId = Guid.NewGuid(); var webresources = new List { - new("test_solution/test.js", "Display Name", WebresourceType.JavaScript, "Y29udGVudA==") + new("test_solution/test.js", "Display Name", WebresourceType.JS, "Y29udGVudA==") { Id = webresourceId } @@ -200,7 +200,7 @@ public void Delete_CallsDataverseWriter_WithCorrectParameters() var webresourceId = Guid.NewGuid(); var webresources = new List { - new("test_solution/test.js", "Test Script", WebresourceType.JavaScript, "dGVzdA==") + new("test_solution/test.js", "Test Script", WebresourceType.JS, "dGVzdA==") { Id = webresourceId } @@ -224,9 +224,9 @@ public void Delete_HandlesMultipleWebresources() // Arrange var webresources = new List { - new("test1.js", "Test 1", WebresourceType.JavaScript, "dGVzdDE=") { Id = Guid.NewGuid() }, - new("test2.js", "Test 2", WebresourceType.JavaScript, "dGVzdDI=") { Id = Guid.NewGuid() }, - new("test3.js", "Test 3", WebresourceType.JavaScript, "dGVzdDM=") { Id = Guid.NewGuid() } + new("test1.js", "Test 1", WebresourceType.JS, "dGVzdDE=") { Id = Guid.NewGuid() }, + new("test2.js", "Test 2", WebresourceType.JS, "dGVzdDI=") { Id = Guid.NewGuid() }, + new("test3.js", "Test 3", WebresourceType.JS, "dGVzdDM=") { Id = Guid.NewGuid() } }; // Act From 6dd95ab086158ccacb23cd5318baec82dd0bfd6c Mon Sep 17 00:00:00 2001 From: Morten Holt Date: Fri, 14 Nov 2025 13:29:43 +0100 Subject: [PATCH 4/4] Move tool config to solution root --- {Dataverse/.config => .config}/dotnet-tools.json | 0 XrmSync.slnx | 2 ++ Dataverse/appsettings.json => appsettings.json | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) rename {Dataverse/.config => .config}/dotnet-tools.json (100%) rename Dataverse/appsettings.json => appsettings.json (86%) diff --git a/Dataverse/.config/dotnet-tools.json b/.config/dotnet-tools.json similarity index 100% rename from Dataverse/.config/dotnet-tools.json rename to .config/dotnet-tools.json diff --git a/XrmSync.slnx b/XrmSync.slnx index e39bb25..16a6cd6 100644 --- a/XrmSync.slnx +++ b/XrmSync.slnx @@ -8,7 +8,9 @@ + + diff --git a/Dataverse/appsettings.json b/appsettings.json similarity index 86% rename from Dataverse/appsettings.json rename to appsettings.json index 84bb0ec..eff859e 100644 --- a/Dataverse/appsettings.json +++ b/appsettings.json @@ -1,8 +1,7 @@ { - //"DATAVERSE_URL": "https://org6004706f.crm4.dynamics.com", "DATAVERSE_URL": "https://org507f744f.crm4.dynamics.com", "XrmContext": { - "OutputDirectory": "./Context", + "OutputDirectory": "./Dataverse/Context", "ServiceContextName": "DataverseContext", "NamespaceSetting": "XrmSync.Dataverse.Context", "Entities": [