diff --git a/src/Build.Common.core.props b/src/Build.Common.core.props index ba3ec86..578c4c6 100644 --- a/src/Build.Common.core.props +++ b/src/Build.Common.core.props @@ -5,7 +5,7 @@ - net462;net472;net48;netcoreapp3.0;netcoreapp3.1 + net462;net472;net48;netcoreapp3.0;netcoreapp3.1;netstandard2.0 false diff --git a/src/GeneralTools/DataverseClient/Client/Auth/AuthProcessor.cs b/src/GeneralTools/DataverseClient/Client/Auth/AuthProcessor.cs index 50e1bbe..ea18821 100644 --- a/src/GeneralTools/DataverseClient/Client/Auth/AuthProcessor.cs +++ b/src/GeneralTools/DataverseClient/Client/Auth/AuthProcessor.cs @@ -1,4 +1,4 @@ -using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection; using Microsoft.Identity.Client; using Microsoft.PowerPlatform.Dataverse.Client.Auth.TokenCache; using Microsoft.PowerPlatform.Dataverse.Client.Utils; @@ -90,11 +90,11 @@ internal async static Task ExecuteAuthenticateServ } else { - var rslt = GetAuthorityFromTargetServiceAsync(ClientServiceProviders.Instance.GetService(), processResult.TargetServiceUrl, logSink).ConfigureAwait(false).GetAwaiter().GetResult(); - if (!string.IsNullOrEmpty(rslt.Authority)) + var details = GetAuthorityFromTargetServiceAsync(ClientServiceProviders.Instance.GetService(), processResult.TargetServiceUrl, logSink).ConfigureAwait(false).GetAwaiter().GetResult(); + if (details.Success) { - Authority = rslt.Authority; - Resource = rslt.Resource; + Authority = details.Authority.AbsoluteUri; + Resource = details.Resource.AbsoluteUri; } else throw new ArgumentNullException("Authority", "Need a non-empty authority"); @@ -446,18 +446,6 @@ internal static UriBuilder GetUriBuilderWithVersion(Uri discoveryServiceUri) return versionTaggedUriBuilder; } - - private const string AuthenticateHeader = "WWW-Authenticate"; - private const string Bearer = "bearer"; - private const string AuthorityKey = "authorization_uri"; - private const string ResourceKey = "resource_id"; - - internal class AuthRoutingProperties - { - public string Authority { get; set; } - public string Resource { get; set; } - } - /// /// Get authority and resource for this instance. /// @@ -465,66 +453,11 @@ internal class AuthRoutingProperties /// Logger to write info too /// HTTP Client factory to use for this request. /// - private static async Task GetAuthorityFromTargetServiceAsync(IHttpClientFactory clientFactory, Uri targetServiceUrl, DataverseTraceLogger logger) + private static async Task GetAuthorityFromTargetServiceAsync(IHttpClientFactory clientFactory, Uri targetServiceUrl, DataverseTraceLogger logger) { - AuthRoutingProperties authRoutingProperties = new AuthRoutingProperties(); var client = clientFactory.CreateClient("DataverseHttpClientFactory"); - var rslt = await client.GetAsync(targetServiceUrl).ConfigureAwait(false); - - if (rslt.StatusCode == System.Net.HttpStatusCode.NotFound || rslt.StatusCode == System.Net.HttpStatusCode.BadRequest) - { - // didn't find endpoint. - logger.Log($"Failed to get Authority and Resource error. Attempt to Access Endpoint {targetServiceUrl.ToString()} resulted in {rslt.StatusCode}.", TraceEventType.Error); - return authRoutingProperties; - } - - if (rslt.Headers.Contains("WWW-Authenticate")) - { - var authenticateHeader = rslt.Headers.GetValues("WWW-Authenticate").FirstOrDefault(); - authenticateHeader = authenticateHeader.Trim(); - - // This also checks for cases like "BearerXXXX authorization_uri=...." and "Bearer" and "Bearer " - if (!authenticateHeader.StartsWith(Bearer, StringComparison.OrdinalIgnoreCase) - || authenticateHeader.Length < Bearer.Length + 2 - || !char.IsWhiteSpace(authenticateHeader[Bearer.Length])) - { - //var ex = new ArgumentException(AdalErrorMessage.InvalidAuthenticateHeaderFormat, - // nameof(authenticateHeader)); - //CoreLoggerBase.Default.Error(AdalErrorMessage.InvalidAuthenticateHeaderFormat); - //CoreLoggerBase.Default.ErrorPii(ex); - //throw ex; - } - - authenticateHeader = authenticateHeader.Substring(Bearer.Length).Trim(); - - IDictionary authenticateHeaderItems = null; - try - { - authenticateHeaderItems = - EncodingHelper.ParseKeyValueListStrict(authenticateHeader, ',', false, true); - } - catch //(ArgumentException ex) - { - //var newEx = new ArgumentException(AdalErrorMessage.InvalidAuthenticateHeaderFormat, - // nameof(authenticateHeader), ex); - //CoreLoggerBase.Default.Error(AdalErrorMessage.InvalidAuthenticateHeaderFormat); - //CoreLoggerBase.Default.ErrorPii(newEx); - //throw newEx; - } - - if (authenticateHeaderItems != null) - { - string param; - authenticateHeaderItems.TryGetValue(AuthorityKey, out param); - authRoutingProperties.Authority = - param.Replace("oauth2/authorize", "") // swap out the old oAuth pattern. - .Replace("common", "organizations"); // swap common for organizations because MSAL reasons. - authenticateHeaderItems.TryGetValue(ResourceKey, out param); - authRoutingProperties.Resource = param; - } - } - - return authRoutingProperties; + var resolver = new AuthorityResolver(client, (t, msg) => logger.Log(msg, t)); + return await resolver.ProbeForExpectedAuthentication(targetServiceUrl); } /// diff --git a/src/GeneralTools/DataverseClient/Client/Auth/AuthorityResolver.cs b/src/GeneralTools/DataverseClient/Client/Auth/AuthorityResolver.cs new file mode 100644 index 0000000..663725f --- /dev/null +++ b/src/GeneralTools/DataverseClient/Client/Auth/AuthorityResolver.cs @@ -0,0 +1,155 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Threading.Tasks; + +namespace Microsoft.PowerPlatform.Dataverse.Client.Auth +{ + /// + /// Details of expected authentication. + /// + public sealed class AuthenticationDetails + { + /// + /// True if probing returned a WWW-Authenticate header. + /// + public bool Success { get; internal set; } + + /// + /// Authority to initiate OAuth flow with. + /// + // TODO: the 2 Uris here should be nullable: Uri? but that requires to update C# used for this solution from current 7.x to C# 9 or 10 + public Uri Authority { get; internal set; } + + /// + /// OAuth resource to request authentication for. + /// + public Uri Resource { get; internal set; } + } + + /// + /// Probes API endpoint to elicit a 401 response with the WWW-Authenticate header and processes the found information + /// + public sealed class AuthorityResolver + { + private const string AuthenticateHeader = "WWW-Authenticate"; + private const string Bearer = "bearer"; + private const string AuthorityKey = "authorization_uri"; + private const string ResourceKey = "resource_id"; + + private readonly HttpClient _httpClient; + private readonly Action _logger; + + /// + /// instantiate resolver, using specified HttpClient to be used. + /// + /// + /// + public AuthorityResolver(HttpClient httpClient, Action logger = null) + { + _ = httpClient ?? throw new ArgumentNullException(nameof(httpClient)); + + _httpClient = httpClient; + _logger = logger; + } + + /// + /// Attemtps to solicit a WWW-Authenticate reply using an unauthenticated GET call to the given endpoint. + /// Parses returned header for details + /// + /// + /// + /// + public async Task ProbeForExpectedAuthentication(Uri endpoint) + { + _ = endpoint ?? throw new ArgumentNullException(nameof(endpoint)); + var details = new AuthenticationDetails(); + + HttpResponseMessage response; + try + { + response = await _httpClient.GetAsync(endpoint).ConfigureAwait(false); + } + catch (HttpRequestException ex) + { + var errDetails = string.Empty; + if (ex.InnerException is WebException wex) + { + errDetails = $"; details: {wex.Message} ({wex.Status})"; + } + LogError($"Failed to get response from: {endpoint}; error: {ex.Message}{errDetails}"); + return details; + } + + + if (response.StatusCode == HttpStatusCode.NotFound || response.StatusCode == HttpStatusCode.BadRequest) + { + // didn't find endpoint. + LogError($"Failed to get Authority and Resource error. Attempt to Access Endpoint {endpoint} resulted in {response.StatusCode}."); + return details; + } + + if (response.Headers.Contains(AuthenticateHeader)) + { + var authenticateHeader = response.Headers.GetValues(AuthenticateHeader).FirstOrDefault(); + authenticateHeader = authenticateHeader.Trim(); + + // This also checks for cases like "BearerXXXX authorization_uri=...." and "Bearer" and "Bearer " + if (!authenticateHeader.StartsWith(Bearer, StringComparison.OrdinalIgnoreCase) + || authenticateHeader.Length < Bearer.Length + 2 + || !char.IsWhiteSpace(authenticateHeader[Bearer.Length])) + { + LogError($"Malformed 'Bearer' format: {authenticateHeader}"); + return details; + } + + authenticateHeader = authenticateHeader.Substring(Bearer.Length).Trim(); + + IDictionary authenticateHeaderItems = null; + try + { + authenticateHeaderItems = + EncodingHelper.ParseKeyValueListStrict(authenticateHeader, ',', false, true); + } + catch (ArgumentException) + { + LogError($"Malformed arguments in '{AuthenticateHeader}: {authenticateHeader}"); + return details; + } + + if (authenticateHeaderItems != null) + { + if (!authenticateHeaderItems.TryGetValue(AuthorityKey, out var auth)) + { + LogError($"Response header from {endpoint} is missing expected key/value for {AuthorityKey}"); + return details; + } + details.Authority = new Uri( + auth.Replace("oauth2/authorize", "") // swap out the old oAuth pattern. + .Replace("common", "organizations")); // swap common for organizations because MSAL reasons. + + if (!authenticateHeaderItems.TryGetValue(ResourceKey, out var res)) + { + LogError($"Response header from {endpoint} is missing expected key/value for {ResourceKey}"); + return details; + } + details.Resource = new Uri(res); + details.Success = true; + } + } + + return details; + } + + private void LogError(string message) + { + if (_logger != null) + { + _logger(TraceEventType.Error, message); + } + } + } +} diff --git a/src/GeneralTools/DataverseClient/Client/ConnectionService.cs b/src/GeneralTools/DataverseClient/Client/ConnectionService.cs index a36da17..277e282 100644 --- a/src/GeneralTools/DataverseClient/Client/ConnectionService.cs +++ b/src/GeneralTools/DataverseClient/Client/ConnectionService.cs @@ -591,7 +591,7 @@ internal bool EnableCookieRelay /// Cookies that are being passed though clients, when cookies are used /// internal Dictionary CurrentCookieCollection { get; set; } = null; - + /// /// Server Hint for the number of concurrent threads that would provbide optimal processing. /// @@ -1581,7 +1581,9 @@ internal async Task Command_WebAPIProcess_ExecuteAsync(Org } else if (req.Parameters.ContainsKey("Target") && req.Parameters["Target"] is EntityReference entRef) // this should cover things that have targets. { - cReq = new Entity(entRef.LogicalName, entRef.Id); + cReq = entRef.KeyAttributes.Any() + ? new Entity(entRef.LogicalName, entRef.KeyAttributes) + : new Entity(entRef.LogicalName, entRef.Id); } EntityMetadata entityMetadata = null; diff --git a/src/GeneralTools/DataverseClient/ConnectControl/Microsoft.PowerPlatform.Dataverse.ConnectControl.csproj b/src/GeneralTools/DataverseClient/ConnectControl/Microsoft.PowerPlatform.Dataverse.ConnectControl.csproj index 2ea0852..97e4aa3 100644 --- a/src/GeneralTools/DataverseClient/ConnectControl/Microsoft.PowerPlatform.Dataverse.ConnectControl.csproj +++ b/src/GeneralTools/DataverseClient/ConnectControl/Microsoft.PowerPlatform.Dataverse.ConnectControl.csproj @@ -1,6 +1,6 @@ - + - DataverseConnectControl + DataverseClient Library Properties Microsoft.PowerPlatform.Dataverse.ConnectControl @@ -11,7 +11,7 @@ $(DotNetClassicTargetFrameworks) - $(OutDir)\Microsoft.PowerPlatform.Dataverse.CrmConnectControl.xml + $(OutDir)\Microsoft.PowerPlatform.Dataverse.ConnectControl.xml diff --git a/src/GeneralTools/DataverseClient/DataverseClient_PackageTestSolution.sln b/src/GeneralTools/DataverseClient/DataverseClient_PackageTestSolution.sln index 3cd3753..8aa9006 100644 --- a/src/GeneralTools/DataverseClient/DataverseClient_PackageTestSolution.sln +++ b/src/GeneralTools/DataverseClient/DataverseClient_PackageTestSolution.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 16.0.31729.503 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LivePackageTestsConsole", "UnitTests\LivePackageTestsConsole\LivePackageTestsConsole.csproj", "{AD21CFD4-EDA7-4F31-9A07-CC90C03B4C27}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LivePackageRunUnitTests", "UnitTests\LivePackageRunUnitTests\LivePackageRunUnitTests.csproj", "{F90838B9-F2D2-499B-8C37-4F8389380743}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {AD21CFD4-EDA7-4F31-9A07-CC90C03B4C27}.Debug|Any CPU.Build.0 = Debug|Any CPU {AD21CFD4-EDA7-4F31-9A07-CC90C03B4C27}.Release|Any CPU.ActiveCfg = Release|Any CPU {AD21CFD4-EDA7-4F31-9A07-CC90C03B4C27}.Release|Any CPU.Build.0 = Release|Any CPU + {F90838B9-F2D2-499B-8C37-4F8389380743}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F90838B9-F2D2-499B-8C37-4F8389380743}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F90838B9-F2D2-499B-8C37-4F8389380743}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F90838B9-F2D2-499B-8C37-4F8389380743}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/GeneralTools/DataverseClient/Testers/LoginControlTester/LoginControlTester.csproj b/src/GeneralTools/DataverseClient/Testers/LoginControlTester/LoginControlTester.csproj index f4966f7..07cba35 100644 --- a/src/GeneralTools/DataverseClient/Testers/LoginControlTester/LoginControlTester.csproj +++ b/src/GeneralTools/DataverseClient/Testers/LoginControlTester/LoginControlTester.csproj @@ -1,6 +1,6 @@ - + - DataverseConnectControl + DataverseClient WinExe Properties LoginControlTester diff --git a/src/GeneralTools/DataverseClient/UIStyles/Microsoft.PowerPlatform.Dataverse.Ui.Styles.csproj b/src/GeneralTools/DataverseClient/UIStyles/Microsoft.PowerPlatform.Dataverse.Ui.Styles.csproj index 70e63eb..5793a2f 100644 --- a/src/GeneralTools/DataverseClient/UIStyles/Microsoft.PowerPlatform.Dataverse.Ui.Styles.csproj +++ b/src/GeneralTools/DataverseClient/UIStyles/Microsoft.PowerPlatform.Dataverse.Ui.Styles.csproj @@ -1,6 +1,6 @@ - + - DataverseConnectControl + DataverseClient true Properties Microsoft.PowerPlatform.Dataverse.Ui.Styles diff --git a/src/GeneralTools/DataverseClient/UnitTests/CdsClient_Core_Tests/AuthResolverTests.cs b/src/GeneralTools/DataverseClient/UnitTests/CdsClient_Core_Tests/AuthResolverTests.cs new file mode 100644 index 0000000..426c373 --- /dev/null +++ b/src/GeneralTools/DataverseClient/UnitTests/CdsClient_Core_Tests/AuthResolverTests.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Net; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using FluentAssertions; +using Microsoft.PowerPlatform.Dataverse.Client.Auth; +using Xunit; + +namespace Client_Core_Tests.Auth +{ + public class AuthResolverTests + { + private const string AuthenticateHeader = "www-authenticate"; + private readonly MockHttpMessageHandler _msgHandler; + private readonly HttpClient _httpClient; + + public AuthResolverTests() + { + _msgHandler = new MockHttpMessageHandler(); + _httpClient = new HttpClient(_msgHandler); + } + + [Theory] + [InlineData("https://login.somewhere.tst/abc/authorize", "https://hello.com", HttpStatusCode.Unauthorized, true, "Bearer authorization_uri=https://login.somewhere.tst/abc/authorize, resource_id=https://hello.com")] + [InlineData("https://login.somewhere.tst/abc/authorize", "https://hello.com", HttpStatusCode.Unauthorized, true, "BeArEr AUTHORIZATION_URI=https://login.somewhere.tst/abc/authorize, reSoUrCe_ID=https://hello.com")] + [InlineData("n/a", "n/a", HttpStatusCode.Unauthorized, false, "Bearer")] + [InlineData("https://login.somewhere.tst/abc/authorize", "n/a", HttpStatusCode.Unauthorized, false, "Bearer authorization_uri=https://login.somewhere.tst/abc/authorize")] + [InlineData("n/a", "https://hello.com", HttpStatusCode.Unauthorized, false, "Bearer resource_id=https://hello.com")] + public async Task ProbeSuccessful(string expectedAuthority, string expectedResource, HttpStatusCode expectedStatus, bool success, string responseHeader) + { + var endpoint = new Uri("https://ppdevtools.crm.dynamics.com/api/data/v9"); + var log = new List(); + var resolver = new AuthorityResolver(_httpClient, (et, msg) => + { + et.Should().Be(TraceEventType.Error); + log.Add(msg); + }); + + _msgHandler.ResponseHeader = responseHeader; + _msgHandler.ResponseStatus = expectedStatus; + var details = await resolver.ProbeForExpectedAuthentication(endpoint); + + details.Success.Should().Be(success); + if (success) + { + details.Authority.Should().Be(new Uri(expectedAuthority)); + details.Resource.Should().Be(new Uri(expectedResource)); + } + else + { + log.Count.Should().BeGreaterOrEqualTo(1); + } + } + + [Fact] + public async void DnsErrorsHandled() + { + var endpoint = new Uri("https://doesnotexist-bad.crm.dynamics.com/api/data/v9"); + var log = new List(); + var resolver = new AuthorityResolver(_httpClient, (et, msg) => + { + et.Should().Be(TraceEventType.Error); + log.Add(msg); + }); + + _msgHandler.ErrorOnSend = true; + var details = await resolver.ProbeForExpectedAuthentication(endpoint); + details.Success.Should().BeFalse(); + log.Count.Should().BeGreaterOrEqualTo(1); + } + + private class MockHttpMessageHandler : HttpMessageHandler + { + public string ResponseHeader { get; set; } + public HttpStatusCode ResponseStatus { get; set; } = HttpStatusCode.Unauthorized; + public bool ErrorOnSend { get; set; } + + protected override Task SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) + { + if (ErrorOnSend) + { + throw new HttpRequestException("Failed to get response", new WebException("The remote name could not be resolved", WebExceptionStatus.NameResolutionFailure)); + } + + var response = new HttpResponseMessage(ResponseStatus); + response.Headers.Remove(AuthenticateHeader); + response.Headers.TryAddWithoutValidation(AuthenticateHeader, ResponseHeader); + + return Task.FromResult(response); + } + } + } +} diff --git a/src/GeneralTools/DataverseClient/UnitTests/CdsClient_Core_Tests/Properties/Resources.Designer.cs b/src/GeneralTools/DataverseClient/UnitTests/CdsClient_Core_Tests/Properties/Resources.Designer.cs index 27fc36a..3960f09 100644 --- a/src/GeneralTools/DataverseClient/UnitTests/CdsClient_Core_Tests/Properties/Resources.Designer.cs +++ b/src/GeneralTools/DataverseClient/UnitTests/CdsClient_Core_Tests/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace DataverseClient_Core_UnitTests.Properties { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { diff --git a/src/GeneralTools/DataverseClient/UnitTests/LivePackageRunUnitTests/LivePackageRunUnitTests.csproj b/src/GeneralTools/DataverseClient/UnitTests/LivePackageRunUnitTests/LivePackageRunUnitTests.csproj new file mode 100644 index 0000000..db02224 --- /dev/null +++ b/src/GeneralTools/DataverseClient/UnitTests/LivePackageRunUnitTests/LivePackageRunUnitTests.csproj @@ -0,0 +1,25 @@ + + + + true + + net462;net472;net48;netcoreapp3.1;net5.0 + true + DataverseClient-Tests-Package + false + + + + + + + + + + + + + + + + diff --git a/src/GeneralTools/DataverseClient/UnitTests/LivePackageRunUnitTests/RunTests.cs b/src/GeneralTools/DataverseClient/UnitTests/LivePackageRunUnitTests/RunTests.cs new file mode 100644 index 0000000..6dd13eb --- /dev/null +++ b/src/GeneralTools/DataverseClient/UnitTests/LivePackageRunUnitTests/RunTests.cs @@ -0,0 +1,69 @@ +using System; +using System.IO; +using System.Text; +using Xunit; +using Xunit.Abstractions; + +namespace LivePackageRunUnitTests +{ + public class RunTests + { + public RunTests(ITestOutputHelper output) + { + var converter = new Converter(output); + Console.SetOut(converter); + } + + [Fact] + public void InvokeBasicTest() + { + LivePackageTestsConsole.Program.SkipStop = true; + LivePackageTestsConsole.Program.Main(new string[] { "BasicFlow" }); + } + + [Fact] + public void InvokeReadSolutionsTest() + { + LivePackageTestsConsole.Program.SkipStop = true; + LivePackageTestsConsole.Program.Main(new string[] { "listsolutions" }); + } + + + [Fact] + public void InvokeCUDTestTest() + { + LivePackageTestsConsole.Program.SkipStop = true; + LivePackageTestsConsole.Program.Main(new string[] { "CUDTest" }); + } + + #region Utility + private class Converter : TextWriter + { + ITestOutputHelper _output; + public Converter(ITestOutputHelper output) + { + _output = output; + } + public override Encoding Encoding + { + get { return Encoding.UTF8; } + } + public override void WriteLine(string message) + { + _output.WriteLine(message); + } + public override void WriteLine(string format, params object[] args) + { + _output.WriteLine(format, args); + } + + public override void Write(char value) + { + throw new NotSupportedException("This text writer only supports WriteLine(string) and WriteLine(string, params object[])."); + } + } + + #endregion + + } +} diff --git a/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/CUDTest.cs b/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/CUDTest.cs new file mode 100644 index 0000000..6d5acaa --- /dev/null +++ b/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/CUDTest.cs @@ -0,0 +1,79 @@ +using FluentAssertions; +using System; +using Microsoft.Xrm.Sdk; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using CrmSdk; + +namespace LivePackageTestsConsole +{ + public class CUDTest + { + public void RunTest() + { + Console.WriteLine("Starting CUDTest Flow"); + + var client = Auth.CreateClient(); + client.IsReady.Should().BeTrue(); + + Console.WriteLine("Creating Account"); + + Entity acct = new Entity("account"); + acct.Attributes["name"] = "testaccount"; + + Guid id = client.Create(acct); + + Console.WriteLine("Updating Account"); + + Entity acct2 = new Entity("account"); // changing to force a 'new' situation + acct2.Id = id; + acct2.Attributes["name"] = "testaccount2"; + + client.Update(acct2); + + Console.WriteLine("Deleting Account"); + client.Delete("account", id); + } + + public void RunTest2() + { + Console.WriteLine("Starting CUDTest Flow - OrganziationContext"); + + var client = Auth.CreateClient(); + client.IsReady.Should().BeTrue(); + + using (DvServiceContext svcCtx = new DvServiceContext(client)) + { + //svcCtx.MergeOption = Microsoft.Xrm.Sdk.Client.MergeOption.NoTracking; // So as to not keep cached copies while working on test cases. + Console.WriteLine("Creating Account"); + + Account acct = new Account(); + acct.Name = "testaccount"; + svcCtx.AddObject(acct); + svcCtx.SaveChanges(); + + Guid id = acct.Id; + + Console.WriteLine("Query Account"); + var aQ = (from a1 in svcCtx.AccountSet + where a1.Name.Equals("testaccount") + select a1); + + if (aQ != null ) + Console.WriteLine($"Found Account by Name {aQ.FirstOrDefault().Name}"); + + Console.WriteLine("Updating Account"); + + Entity acct2 = new Entity("account"); // changing to force a 'new' situation + acct2.Id = id; + acct2.Attributes["name"] = "testaccount2"; + client.Update(acct2); + + Console.WriteLine("Deleting Account"); + client.Delete("account", id); + } + } + } +} diff --git a/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/LivePackageTestsConsole.csproj b/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/LivePackageTestsConsole.csproj index 31f8d45..7a48717 100644 --- a/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/LivePackageTestsConsole.csproj +++ b/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/LivePackageTestsConsole.csproj @@ -17,7 +17,7 @@ $(RepoRoot)\binSigned\$(Configuration)\packages - 0.5.9 + 0.5.9 @@ -28,7 +28,7 @@ - + diff --git a/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/Program.cs b/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/Program.cs index bda6787..fb0fb47 100644 --- a/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/Program.cs +++ b/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/Program.cs @@ -5,9 +5,10 @@ namespace LivePackageTestsConsole /// /// This program will test run against live tests on a known Nuget Package version. /// - class Program + public class Program { - static void Main(string[] args) + public static bool SkipStop { get; set; } = false; + public static void Main(string[] args) { Console.WriteLine("Starting Tests"); @@ -48,6 +49,12 @@ static void Main(string[] args) tests.Run(); } + else if ( string.Compare(args[0], "CUDTest", StringComparison.OrdinalIgnoreCase) == 0) + { + var tests = new CUDTest(); + tests.RunTest(); + tests.RunTest2(); + } } else { @@ -55,7 +62,8 @@ static void Main(string[] args) tests.Run(); } - Console.ReadKey(); + if (!SkipStop) + Console.ReadKey(); } } } diff --git a/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/TestData/Ents.cs b/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/TestData/Ents.cs new file mode 100644 index 0000000..a76edf3 --- /dev/null +++ b/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/TestData/Ents.cs @@ -0,0 +1,22625 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +[assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()] +[assembly: System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "9.1.0.82")] + +namespace CrmSdk +{ + + + [System.Runtime.Serialization.DataContractAttribute()] + public enum AccountState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Business that represents a customer or potential customer. The company that is billed in business transactions. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("account")] + public partial class Account : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + public static class Fields + { + public const string AccountCategoryCode = "accountcategorycode"; + public const string AccountClassificationCode = "accountclassificationcode"; + public const string AccountId = "accountid"; + public const string Id = "accountid"; + public const string AccountNumber = "accountnumber"; + public const string AccountRatingCode = "accountratingcode"; + public const string Address1_AddressId = "address1_addressid"; + public const string Address1_AddressTypeCode = "address1_addresstypecode"; + public const string Address1_City = "address1_city"; + public const string Address1_Composite = "address1_composite"; + public const string Address1_Country = "address1_country"; + public const string Address1_County = "address1_county"; + public const string Address1_Fax = "address1_fax"; + public const string Address1_FreightTermsCode = "address1_freighttermscode"; + 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_PrimaryContactName = "address1_primarycontactname"; + public const string Address1_ShippingMethodCode = "address1_shippingmethodcode"; + public const string Address1_StateOrProvince = "address1_stateorprovince"; + public const string Address1_Telephone1 = "address1_telephone1"; + public const string Address1_Telephone2 = "address1_telephone2"; + public const string Address1_Telephone3 = "address1_telephone3"; + public const string Address1_UPSZone = "address1_upszone"; + public const string Address1_UTCOffset = "address1_utcoffset"; + public const string Address2_AddressId = "address2_addressid"; + public const string Address2_AddressTypeCode = "address2_addresstypecode"; + public const string Address2_City = "address2_city"; + public const string Address2_Composite = "address2_composite"; + public const string Address2_Country = "address2_country"; + public const string Address2_County = "address2_county"; + public const string Address2_Fax = "address2_fax"; + public const string Address2_FreightTermsCode = "address2_freighttermscode"; + 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_PrimaryContactName = "address2_primarycontactname"; + public const string Address2_ShippingMethodCode = "address2_shippingmethodcode"; + public const string Address2_StateOrProvince = "address2_stateorprovince"; + public const string Address2_Telephone1 = "address2_telephone1"; + public const string Address2_Telephone2 = "address2_telephone2"; + public const string Address2_Telephone3 = "address2_telephone3"; + public const string Address2_UPSZone = "address2_upszone"; + public const string Address2_UTCOffset = "address2_utcoffset"; + public const string Adx_CreatedByIPAddress = "adx_createdbyipaddress"; + public const string Adx_CreatedByUsername = "adx_createdbyusername"; + public const string Adx_ModifiedByIPAddress = "adx_modifiedbyipaddress"; + public const string Adx_ModifiedByUsername = "adx_modifiedbyusername"; + public const string Aging30 = "aging30"; + public const string Aging30_Base = "aging30_base"; + public const string Aging60 = "aging60"; + public const string Aging60_Base = "aging60_base"; + public const string Aging90 = "aging90"; + public const string Aging90_Base = "aging90_base"; + public const string BusinessTypeCode = "businesstypecode"; + public const string crae4_DateOnlyDateOnly = "crae4_dateonlydateonly"; + public const string crae4_DateOnlyTZIndependant = "crae4_dateonlytzindependant"; + public const string crae4_DateOnlyUserLocal = "crae4_dateonlyuserlocal"; + public const string crae4_TEST01 = "crae4_test01"; + public const string crae4_tfile_Name = "crae4_tfile_name"; + public const string CreatedBy = "createdby"; + public const string CreatedByExternalParty = "createdbyexternalparty"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CreditLimit = "creditlimit"; + public const string CreditLimit_Base = "creditlimit_base"; + public const string CreditOnHold = "creditonhold"; + public const string CustomerSizeCode = "customersizecode"; + public const string CustomerTypeCode = "customertypecode"; + public const string DefaultPriceLevelId = "defaultpricelevelid"; + public const string Description = "description"; + public const string DoNotBulkEMail = "donotbulkemail"; + public const string DoNotBulkPostalMail = "donotbulkpostalmail"; + public const string DoNotEMail = "donotemail"; + public const string DoNotFax = "donotfax"; + public const string DoNotPhone = "donotphone"; + public const string DoNotPostalMail = "donotpostalmail"; + public const string DoNotSendMM = "donotsendmm"; + public const string EMailAddress1 = "emailaddress1"; + public const string EMailAddress2 = "emailaddress2"; + public const string EMailAddress3 = "emailaddress3"; + 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 Fax = "fax"; + public const string FollowEmail = "followemail"; + public const string FtpSiteURL = "ftpsiteurl"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string IndustryCode = "industrycode"; + public const string LastOnHoldTime = "lastonholdtime"; + public const string LastUsedInCampaign = "lastusedincampaign"; + public const string MarketCap = "marketcap"; + public const string MarketCap_Base = "marketcap_base"; + public const string MarketingOnly = "marketingonly"; + public const string MasterId = "masterid"; + public const string Merged = "merged"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedByExternalParty = "modifiedbyexternalparty"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string msa_managingpartnerid = "msa_managingpartnerid"; + public const string msdyncrm_insights_placeholder = "msdyncrm_insights_placeholder"; + public const string msemr_AccountType = "msemr_accounttype"; + public const string msemr_Address1PeriodEndDate = "msemr_address1periodenddate"; + public const string msemr_Address1PeriodStartDate = "msemr_address1periodstartdate"; + public const string msemr_Address2PeriodEndDate = "msemr_address2periodenddate"; + public const string msemr_Address2PeriodStartDate = "msemr_address2periodstartdate"; + public const string msemr_Alias = "msemr_alias"; + public const string msemr_Contact1Puropose = "msemr_contact1puropose"; + public const string msemr_Contact2 = "msemr_contact2"; + public const string msemr_Contact2Puropose = "msemr_contact2puropose"; + public const string msemr_PayorOrganization = "msemr_payororganization"; + public const string msemr_Telecom1EndDate = "msemr_telecom1enddate"; + public const string msemr_Telecom1Rank = "msemr_telecom1rank"; + public const string msemr_Telecom1StartDate = "msemr_telecom1startdate"; + public const string msemr_Telecom1System = "msemr_telecom1system"; + public const string msemr_Telecom1Use = "msemr_telecom1use"; + public const string msemr_Telecom2EndDate = "msemr_telecom2enddate"; + public const string msemr_Telecom2Rank = "msemr_telecom2rank"; + public const string msemr_Telecom2StartDate = "msemr_telecom2startdate"; + public const string msemr_Telecom2System = "msemr_telecom2system"; + public const string msemr_Telecom2Use = "msemr_telecom2use"; + public const string msemr_Telecom3EndDate = "msemr_telecom3enddate"; + public const string msemr_Telecom3Rank = "msemr_telecom3rank"; + public const string msemr_Telecom3StartDate = "msemr_telecom3startdate"; + public const string msemr_Telecom3System = "msemr_telecom3system"; + public const string msemr_Telecom3Use = "msemr_telecom3use"; + public const string msevtmgt_HotelGroup = "msevtmgt_hotelgroup"; + public const string msevtmgt_RentalCarProvider = "msevtmgt_rentalcarprovider"; + public const string Name = "name"; + public const string new_DateOnlyTest = "new_dateonlytest"; + public const string new_TimeZoneIndependant = "new_timezoneindependant"; + public const string NumberOfEmployees = "numberofemployees"; + public const string OnHoldTime = "onholdtime"; + public const string OpenDeals = "opendeals"; + public const string OpenDeals_Date = "opendeals_date"; + public const string OpenDeals_State = "opendeals_state"; + public const string OpenRevenue = "openrevenue"; + public const string OpenRevenue_Base = "openrevenue_base"; + public const string OpenRevenue_Date = "openrevenue_date"; + public const string OpenRevenue_State = "openrevenue_state"; + public const string OriginatingLeadId = "originatingleadid"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OwnerId = "ownerid"; + public const string OwnershipCode = "ownershipcode"; + public const string OwningBusinessUnit = "owningbusinessunit"; + public const string OwningTeam = "owningteam"; + public const string OwningUser = "owninguser"; + public const string ParentAccountId = "parentaccountid"; + public const string ParticipatesInWorkflow = "participatesinworkflow"; + public const string PaymentTermsCode = "paymenttermscode"; + public const string PreferredAppointmentDayCode = "preferredappointmentdaycode"; + public const string PreferredAppointmentTimeCode = "preferredappointmenttimecode"; + public const string PreferredContactMethodCode = "preferredcontactmethodcode"; + public const string PreferredEquipmentId = "preferredequipmentid"; + public const string PreferredServiceId = "preferredserviceid"; + public const string PreferredSystemUserId = "preferredsystemuserid"; + public const string PrimaryContactId = "primarycontactid"; + public const string PrimarySatoriId = "primarysatoriid"; + public const string PrimaryTwitterId = "primarytwitterid"; + public const string ProcessId = "processid"; + public const string Revenue = "revenue"; + public const string Revenue_Base = "revenue_base"; + public const string SharesOutstanding = "sharesoutstanding"; + public const string ShippingMethodCode = "shippingmethodcode"; + public const string SIC = "sic"; + public const string SLAId = "slaid"; + public const string SLAInvokedId = "slainvokedid"; + public const string StageId = "stageid"; + public const string StateCode = "statecode"; + public const string StatusCode = "statuscode"; + public const string StockExchange = "stockexchange"; + public const string TeamsFollowed = "teamsfollowed"; + public const string Telephone1 = "telephone1"; + public const string Telephone2 = "telephone2"; + public const string Telephone3 = "telephone3"; + public const string TerritoryCode = "territorycode"; + public const string TerritoryId = "territoryid"; + public const string TickerSymbol = "tickersymbol"; + public const string TimeSpentByMeOnEmailAndMeetings = "timespentbymeonemailandmeetings"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string TransactionCurrencyId = "transactioncurrencyid"; + public const string TraversedPath = "traversedpath"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + public const string WebSiteURL = "websiteurl"; + public const string YomiName = "yominame"; + } + + /// + /// Default Constructor. + /// + public Account() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "account"; + + public const string EntitySchemaName = "Account"; + + public const string PrimaryIdAttribute = "accountid"; + + public const string PrimaryNameAttribute = "name"; + + public const string EntityLogicalCollectionName = "accounts"; + + public const string EntitySetName = "accounts"; + + public const int EntityTypeCode = 1; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Select a category to indicate whether the customer account is standard or preferred. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountcategorycode")] + public Microsoft.Xrm.Sdk.OptionSetValue AccountCategoryCode + { + get + { + return this.GetAttributeValue("accountcategorycode"); + } + set + { + this.OnPropertyChanging("AccountCategoryCode"); + this.SetAttributeValue("accountcategorycode", value); + this.OnPropertyChanged("AccountCategoryCode"); + } + } + + /// + /// Select a category to indicate whether the customer account is standard or preferred. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountcategorycode")] + public virtual Account_AccountCategoryCode? AccountCategoryCodeEnum + { + get + { + return ((Account_AccountCategoryCode?)(EntityOptionSetEnum.GetEnum(this, "accountcategorycode"))); + } + set + { + this.OnPropertyChanging("AccountCategoryCode"); + this.SetAttributeValue("accountcategorycode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("AccountCategoryCode"); + } + } + + /// + /// Select a classification code to indicate the potential value of the customer account based on the projected return on investment, cooperation level, sales cycle length or other criteria. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountclassificationcode")] + public Microsoft.Xrm.Sdk.OptionSetValue AccountClassificationCode + { + get + { + return this.GetAttributeValue("accountclassificationcode"); + } + set + { + this.OnPropertyChanging("AccountClassificationCode"); + this.SetAttributeValue("accountclassificationcode", value); + this.OnPropertyChanged("AccountClassificationCode"); + } + } + + /// + /// Select a classification code to indicate the potential value of the customer account based on the projected return on investment, cooperation level, sales cycle length or other criteria. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountclassificationcode")] + public virtual Account_AccountClassificationCode? AccountClassificationCodeEnum + { + get + { + return ((Account_AccountClassificationCode?)(EntityOptionSetEnum.GetEnum(this, "accountclassificationcode"))); + } + set + { + this.OnPropertyChanging("AccountClassificationCode"); + this.SetAttributeValue("accountclassificationcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("AccountClassificationCode"); + } + } + + /// + /// Unique identifier of the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public System.Nullable AccountId + { + get + { + return this.GetAttributeValue>("accountid"); + } + set + { + this.OnPropertyChanging("AccountId"); + this.SetAttributeValue("accountid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("AccountId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.AccountId = value; + } + } + + /// + /// Type an ID number or code for the account to quickly search and identify the account in system views. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountnumber")] + public string AccountNumber + { + get + { + return this.GetAttributeValue("accountnumber"); + } + set + { + this.OnPropertyChanging("AccountNumber"); + this.SetAttributeValue("accountnumber", value); + this.OnPropertyChanged("AccountNumber"); + } + } + + /// + /// Select a rating to indicate the value of the customer account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountratingcode")] + public Microsoft.Xrm.Sdk.OptionSetValue AccountRatingCode + { + get + { + return this.GetAttributeValue("accountratingcode"); + } + set + { + this.OnPropertyChanging("AccountRatingCode"); + this.SetAttributeValue("accountratingcode", value); + this.OnPropertyChanged("AccountRatingCode"); + } + } + + /// + /// Select a rating to indicate the value of the customer account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountratingcode")] + public virtual Account_AccountRatingCode? AccountRatingCodeEnum + { + get + { + return ((Account_AccountRatingCode?)(EntityOptionSetEnum.GetEnum(this, "accountratingcode"))); + } + set + { + this.OnPropertyChanging("AccountRatingCode"); + this.SetAttributeValue("accountratingcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("AccountRatingCode"); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// Select the primary address type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address1_AddressTypeCode + { + get + { + return this.GetAttributeValue("address1_addresstypecode"); + } + set + { + this.OnPropertyChanging("Address1_AddressTypeCode"); + this.SetAttributeValue("address1_addresstypecode", value); + this.OnPropertyChanged("Address1_AddressTypeCode"); + } + } + + /// + /// Select the primary address type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] + public virtual Account_Address1_AddressTypeCode? Address1_AddressTypeCodeEnum + { + get + { + return ((Account_Address1_AddressTypeCode?)(EntityOptionSetEnum.GetEnum(this, "address1_addresstypecode"))); + } + set + { + this.OnPropertyChanging("Address1_AddressTypeCode"); + this.SetAttributeValue("address1_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address1_AddressTypeCode"); + } + } + + /// + /// Type the city for the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] + public string Address1_City + { + get + { + return this.GetAttributeValue("address1_city"); + } + set + { + this.OnPropertyChanging("Address1_City"); + this.SetAttributeValue("address1_city", value); + this.OnPropertyChanged("Address1_City"); + } + } + + /// + /// Shows the complete primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_composite")] + public string Address1_Composite + { + get + { + return this.GetAttributeValue("address1_composite"); + } + } + + /// + /// Type the country or region for the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] + public string Address1_Country + { + get + { + return this.GetAttributeValue("address1_country"); + } + set + { + this.OnPropertyChanging("Address1_Country"); + this.SetAttributeValue("address1_country", value); + this.OnPropertyChanged("Address1_Country"); + } + } + + /// + /// Type the county for the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] + public string Address1_County + { + get + { + return this.GetAttributeValue("address1_county"); + } + set + { + this.OnPropertyChanging("Address1_County"); + this.SetAttributeValue("address1_county", value); + this.OnPropertyChanged("Address1_County"); + } + } + + /// + /// Type the fax number associated with the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] + public string Address1_Fax + { + get + { + return this.GetAttributeValue("address1_fax"); + } + set + { + this.OnPropertyChanging("Address1_Fax"); + this.SetAttributeValue("address1_fax", value); + this.OnPropertyChanged("Address1_Fax"); + } + } + + /// + /// Select the freight terms for the primary address to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_freighttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address1_FreightTermsCode + { + get + { + return this.GetAttributeValue("address1_freighttermscode"); + } + set + { + this.OnPropertyChanging("Address1_FreightTermsCode"); + this.SetAttributeValue("address1_freighttermscode", value); + this.OnPropertyChanged("Address1_FreightTermsCode"); + } + } + + /// + /// Select the freight terms for the primary address to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_freighttermscode")] + public virtual Account_Address1_FreightTermsCode? Address1_FreightTermsCodeEnum + { + get + { + return ((Account_Address1_FreightTermsCode?)(EntityOptionSetEnum.GetEnum(this, "address1_freighttermscode"))); + } + set + { + this.OnPropertyChanging("Address1_FreightTermsCode"); + this.SetAttributeValue("address1_freighttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address1_FreightTermsCode"); + } + } + + /// + /// Type the latitude value for the primary address for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] + public System.Nullable Address1_Latitude + { + get + { + return this.GetAttributeValue>("address1_latitude"); + } + set + { + this.OnPropertyChanging("Address1_Latitude"); + this.SetAttributeValue("address1_latitude", value); + this.OnPropertyChanged("Address1_Latitude"); + } + } + + /// + /// Type the first line of the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] + public string Address1_Line1 + { + get + { + return this.GetAttributeValue("address1_line1"); + } + set + { + this.OnPropertyChanging("Address1_Line1"); + this.SetAttributeValue("address1_line1", value); + this.OnPropertyChanged("Address1_Line1"); + } + } + + /// + /// Type the second line of the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] + public string Address1_Line2 + { + get + { + return this.GetAttributeValue("address1_line2"); + } + set + { + this.OnPropertyChanging("Address1_Line2"); + this.SetAttributeValue("address1_line2", value); + this.OnPropertyChanged("Address1_Line2"); + } + } + + /// + /// Type the third line of the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] + public string Address1_Line3 + { + get + { + return this.GetAttributeValue("address1_line3"); + } + set + { + this.OnPropertyChanging("Address1_Line3"); + this.SetAttributeValue("address1_line3", value); + this.OnPropertyChanged("Address1_Line3"); + } + } + + /// + /// Type the longitude value for the primary address for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] + public System.Nullable Address1_Longitude + { + get + { + return this.GetAttributeValue>("address1_longitude"); + } + set + { + this.OnPropertyChanging("Address1_Longitude"); + this.SetAttributeValue("address1_longitude", value); + this.OnPropertyChanged("Address1_Longitude"); + } + } + + /// + /// Type a descriptive name for the primary address, such as Corporate Headquarters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] + public string Address1_Name + { + get + { + return this.GetAttributeValue("address1_name"); + } + set + { + this.OnPropertyChanging("Address1_Name"); + this.SetAttributeValue("address1_name", value); + this.OnPropertyChanged("Address1_Name"); + } + } + + /// + /// Type the ZIP Code or postal code for the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] + public string Address1_PostalCode + { + get + { + return this.GetAttributeValue("address1_postalcode"); + } + set + { + this.OnPropertyChanging("Address1_PostalCode"); + this.SetAttributeValue("address1_postalcode", value); + this.OnPropertyChanged("Address1_PostalCode"); + } + } + + /// + /// Type the post office box number of the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] + public string Address1_PostOfficeBox + { + get + { + return this.GetAttributeValue("address1_postofficebox"); + } + set + { + this.OnPropertyChanging("Address1_PostOfficeBox"); + this.SetAttributeValue("address1_postofficebox", value); + this.OnPropertyChanged("Address1_PostOfficeBox"); + } + } + + /// + /// Type the name of the main contact at the account's primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_primarycontactname")] + public string Address1_PrimaryContactName + { + get + { + return this.GetAttributeValue("address1_primarycontactname"); + } + set + { + this.OnPropertyChanging("Address1_PrimaryContactName"); + this.SetAttributeValue("address1_primarycontactname", value); + this.OnPropertyChanged("Address1_PrimaryContactName"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address1_ShippingMethodCode + { + get + { + return this.GetAttributeValue("address1_shippingmethodcode"); + } + set + { + this.OnPropertyChanging("Address1_ShippingMethodCode"); + this.SetAttributeValue("address1_shippingmethodcode", value); + this.OnPropertyChanged("Address1_ShippingMethodCode"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public virtual Account_Address1_ShippingMethodCode? Address1_ShippingMethodCodeEnum + { + get + { + return ((Account_Address1_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "address1_shippingmethodcode"))); + } + set + { + this.OnPropertyChanging("Address1_ShippingMethodCode"); + this.SetAttributeValue("address1_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address1_ShippingMethodCode"); + } + } + + /// + /// Type the state or province of the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] + public string Address1_StateOrProvince + { + get + { + return this.GetAttributeValue("address1_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address1_StateOrProvince"); + this.SetAttributeValue("address1_stateorprovince", value); + this.OnPropertyChanged("Address1_StateOrProvince"); + } + } + + /// + /// Type the main phone number associated with the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] + public string Address1_Telephone1 + { + get + { + return this.GetAttributeValue("address1_telephone1"); + } + set + { + this.OnPropertyChanging("Address1_Telephone1"); + this.SetAttributeValue("address1_telephone1", value); + this.OnPropertyChanged("Address1_Telephone1"); + } + } + + /// + /// Type a second phone number associated with the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] + public string Address1_Telephone2 + { + get + { + return this.GetAttributeValue("address1_telephone2"); + } + set + { + this.OnPropertyChanging("Address1_Telephone2"); + this.SetAttributeValue("address1_telephone2", value); + this.OnPropertyChanged("Address1_Telephone2"); + } + } + + /// + /// Type a third phone number associated with the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] + public string Address1_Telephone3 + { + get + { + return this.GetAttributeValue("address1_telephone3"); + } + set + { + this.OnPropertyChanging("Address1_Telephone3"); + this.SetAttributeValue("address1_telephone3", value); + this.OnPropertyChanged("Address1_Telephone3"); + } + } + + /// + /// Type the UPS zone of the primary address to make sure shipping charges are calculated correctly and deliveries are made promptly, if shipped by UPS. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] + public string Address1_UPSZone + { + get + { + return this.GetAttributeValue("address1_upszone"); + } + set + { + this.OnPropertyChanging("Address1_UPSZone"); + this.SetAttributeValue("address1_upszone", value); + this.OnPropertyChanged("Address1_UPSZone"); + } + } + + /// + /// Select the time zone, or UTC offset, for this address so that other people can reference it when they contact someone at this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] + public System.Nullable Address1_UTCOffset + { + get + { + return this.GetAttributeValue>("address1_utcoffset"); + } + set + { + this.OnPropertyChanging("Address1_UTCOffset"); + this.SetAttributeValue("address1_utcoffset", value); + this.OnPropertyChanged("Address1_UTCOffset"); + } + } + + /// + /// Unique identifier for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] + public System.Nullable Address2_AddressId + { + get + { + return this.GetAttributeValue>("address2_addressid"); + } + set + { + this.OnPropertyChanging("Address2_AddressId"); + this.SetAttributeValue("address2_addressid", value); + this.OnPropertyChanged("Address2_AddressId"); + } + } + + /// + /// Select the secondary address type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address2_AddressTypeCode + { + get + { + return this.GetAttributeValue("address2_addresstypecode"); + } + set + { + this.OnPropertyChanging("Address2_AddressTypeCode"); + this.SetAttributeValue("address2_addresstypecode", value); + this.OnPropertyChanged("Address2_AddressTypeCode"); + } + } + + /// + /// Select the secondary address type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] + public virtual Account_Address2_AddressTypeCode? Address2_AddressTypeCodeEnum + { + get + { + return ((Account_Address2_AddressTypeCode?)(EntityOptionSetEnum.GetEnum(this, "address2_addresstypecode"))); + } + set + { + this.OnPropertyChanging("Address2_AddressTypeCode"); + this.SetAttributeValue("address2_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address2_AddressTypeCode"); + } + } + + /// + /// Type the city for the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] + public string Address2_City + { + get + { + return this.GetAttributeValue("address2_city"); + } + set + { + this.OnPropertyChanging("Address2_City"); + this.SetAttributeValue("address2_city", value); + this.OnPropertyChanged("Address2_City"); + } + } + + /// + /// Shows the complete secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_composite")] + public string Address2_Composite + { + get + { + return this.GetAttributeValue("address2_composite"); + } + } + + /// + /// Type the country or region for the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] + public string Address2_Country + { + get + { + return this.GetAttributeValue("address2_country"); + } + set + { + this.OnPropertyChanging("Address2_Country"); + this.SetAttributeValue("address2_country", value); + this.OnPropertyChanged("Address2_Country"); + } + } + + /// + /// Type the county for the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] + public string Address2_County + { + get + { + return this.GetAttributeValue("address2_county"); + } + set + { + this.OnPropertyChanging("Address2_County"); + this.SetAttributeValue("address2_county", value); + this.OnPropertyChanged("Address2_County"); + } + } + + /// + /// Type the fax number associated with the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] + public string Address2_Fax + { + get + { + return this.GetAttributeValue("address2_fax"); + } + set + { + this.OnPropertyChanging("Address2_Fax"); + this.SetAttributeValue("address2_fax", value); + this.OnPropertyChanged("Address2_Fax"); + } + } + + /// + /// Select the freight terms for the secondary address to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_freighttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address2_FreightTermsCode + { + get + { + return this.GetAttributeValue("address2_freighttermscode"); + } + set + { + this.OnPropertyChanging("Address2_FreightTermsCode"); + this.SetAttributeValue("address2_freighttermscode", value); + this.OnPropertyChanged("Address2_FreightTermsCode"); + } + } + + /// + /// Select the freight terms for the secondary address to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_freighttermscode")] + public virtual Account_Address2_FreightTermsCode? Address2_FreightTermsCodeEnum + { + get + { + return ((Account_Address2_FreightTermsCode?)(EntityOptionSetEnum.GetEnum(this, "address2_freighttermscode"))); + } + set + { + this.OnPropertyChanging("Address2_FreightTermsCode"); + this.SetAttributeValue("address2_freighttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address2_FreightTermsCode"); + } + } + + /// + /// Type the latitude value for the secondary address for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] + public System.Nullable Address2_Latitude + { + get + { + return this.GetAttributeValue>("address2_latitude"); + } + set + { + this.OnPropertyChanging("Address2_Latitude"); + this.SetAttributeValue("address2_latitude", value); + this.OnPropertyChanged("Address2_Latitude"); + } + } + + /// + /// Type the first line of the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] + public string Address2_Line1 + { + get + { + return this.GetAttributeValue("address2_line1"); + } + set + { + this.OnPropertyChanging("Address2_Line1"); + this.SetAttributeValue("address2_line1", value); + this.OnPropertyChanged("Address2_Line1"); + } + } + + /// + /// Type the second line of the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] + public string Address2_Line2 + { + get + { + return this.GetAttributeValue("address2_line2"); + } + set + { + this.OnPropertyChanging("Address2_Line2"); + this.SetAttributeValue("address2_line2", value); + this.OnPropertyChanged("Address2_Line2"); + } + } + + /// + /// Type the third line of the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] + public string Address2_Line3 + { + get + { + return this.GetAttributeValue("address2_line3"); + } + set + { + this.OnPropertyChanging("Address2_Line3"); + this.SetAttributeValue("address2_line3", value); + this.OnPropertyChanged("Address2_Line3"); + } + } + + /// + /// Type the longitude value for the secondary address for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] + public System.Nullable Address2_Longitude + { + get + { + return this.GetAttributeValue>("address2_longitude"); + } + set + { + this.OnPropertyChanging("Address2_Longitude"); + this.SetAttributeValue("address2_longitude", value); + this.OnPropertyChanged("Address2_Longitude"); + } + } + + /// + /// Type a descriptive name for the secondary address, such as Corporate Headquarters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] + public string Address2_Name + { + get + { + return this.GetAttributeValue("address2_name"); + } + set + { + this.OnPropertyChanging("Address2_Name"); + this.SetAttributeValue("address2_name", value); + this.OnPropertyChanged("Address2_Name"); + } + } + + /// + /// Type the ZIP Code or postal code for the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] + public string Address2_PostalCode + { + get + { + return this.GetAttributeValue("address2_postalcode"); + } + set + { + this.OnPropertyChanging("Address2_PostalCode"); + this.SetAttributeValue("address2_postalcode", value); + this.OnPropertyChanged("Address2_PostalCode"); + } + } + + /// + /// Type the post office box number of the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] + public string Address2_PostOfficeBox + { + get + { + return this.GetAttributeValue("address2_postofficebox"); + } + set + { + this.OnPropertyChanging("Address2_PostOfficeBox"); + this.SetAttributeValue("address2_postofficebox", value); + this.OnPropertyChanged("Address2_PostOfficeBox"); + } + } + + /// + /// Type the name of the main contact at the account's secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_primarycontactname")] + public string Address2_PrimaryContactName + { + get + { + return this.GetAttributeValue("address2_primarycontactname"); + } + set + { + this.OnPropertyChanging("Address2_PrimaryContactName"); + this.SetAttributeValue("address2_primarycontactname", value); + this.OnPropertyChanged("Address2_PrimaryContactName"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address2_ShippingMethodCode + { + get + { + return this.GetAttributeValue("address2_shippingmethodcode"); + } + set + { + this.OnPropertyChanging("Address2_ShippingMethodCode"); + this.SetAttributeValue("address2_shippingmethodcode", value); + this.OnPropertyChanged("Address2_ShippingMethodCode"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public virtual Account_Address2_ShippingMethodCode? Address2_ShippingMethodCodeEnum + { + get + { + return ((Account_Address2_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "address2_shippingmethodcode"))); + } + set + { + this.OnPropertyChanging("Address2_ShippingMethodCode"); + this.SetAttributeValue("address2_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address2_ShippingMethodCode"); + } + } + + /// + /// Type the state or province of the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] + public string Address2_StateOrProvince + { + get + { + return this.GetAttributeValue("address2_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address2_StateOrProvince"); + this.SetAttributeValue("address2_stateorprovince", value); + this.OnPropertyChanged("Address2_StateOrProvince"); + } + } + + /// + /// Type the main phone number associated with the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] + public string Address2_Telephone1 + { + get + { + return this.GetAttributeValue("address2_telephone1"); + } + set + { + this.OnPropertyChanging("Address2_Telephone1"); + this.SetAttributeValue("address2_telephone1", value); + this.OnPropertyChanged("Address2_Telephone1"); + } + } + + /// + /// Type a second phone number associated with the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] + public string Address2_Telephone2 + { + get + { + return this.GetAttributeValue("address2_telephone2"); + } + set + { + this.OnPropertyChanging("Address2_Telephone2"); + this.SetAttributeValue("address2_telephone2", value); + this.OnPropertyChanged("Address2_Telephone2"); + } + } + + /// + /// Type a third phone number associated with the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] + public string Address2_Telephone3 + { + get + { + return this.GetAttributeValue("address2_telephone3"); + } + set + { + this.OnPropertyChanging("Address2_Telephone3"); + this.SetAttributeValue("address2_telephone3", value); + this.OnPropertyChanged("Address2_Telephone3"); + } + } + + /// + /// Type the UPS zone of the secondary address to make sure shipping charges are calculated correctly and deliveries are made promptly, if shipped by UPS. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] + public string Address2_UPSZone + { + get + { + return this.GetAttributeValue("address2_upszone"); + } + set + { + this.OnPropertyChanging("Address2_UPSZone"); + this.SetAttributeValue("address2_upszone", value); + this.OnPropertyChanged("Address2_UPSZone"); + } + } + + /// + /// Select the time zone, or UTC offset, for this address so that other people can reference it when they contact someone at this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] + public System.Nullable Address2_UTCOffset + { + get + { + return this.GetAttributeValue>("address2_utcoffset"); + } + set + { + this.OnPropertyChanging("Address2_UTCOffset"); + this.SetAttributeValue("address2_utcoffset", value); + this.OnPropertyChanged("Address2_UTCOffset"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_createdbyipaddress")] + public string Adx_CreatedByIPAddress + { + get + { + return this.GetAttributeValue("adx_createdbyipaddress"); + } + set + { + this.OnPropertyChanging("Adx_CreatedByIPAddress"); + this.SetAttributeValue("adx_createdbyipaddress", value); + this.OnPropertyChanged("Adx_CreatedByIPAddress"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_createdbyusername")] + public string Adx_CreatedByUsername + { + get + { + return this.GetAttributeValue("adx_createdbyusername"); + } + set + { + this.OnPropertyChanging("Adx_CreatedByUsername"); + this.SetAttributeValue("adx_createdbyusername", value); + this.OnPropertyChanged("Adx_CreatedByUsername"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_modifiedbyipaddress")] + public string Adx_ModifiedByIPAddress + { + get + { + return this.GetAttributeValue("adx_modifiedbyipaddress"); + } + set + { + this.OnPropertyChanging("Adx_ModifiedByIPAddress"); + this.SetAttributeValue("adx_modifiedbyipaddress", value); + this.OnPropertyChanged("Adx_ModifiedByIPAddress"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_modifiedbyusername")] + public string Adx_ModifiedByUsername + { + get + { + return this.GetAttributeValue("adx_modifiedbyusername"); + } + set + { + this.OnPropertyChanging("Adx_ModifiedByUsername"); + this.SetAttributeValue("adx_modifiedbyusername", value); + this.OnPropertyChanged("Adx_ModifiedByUsername"); + } + } + + /// + /// For system use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("aging30")] + public Microsoft.Xrm.Sdk.Money Aging30 + { + get + { + return this.GetAttributeValue("aging30"); + } + } + + /// + /// The base currency equivalent of the aging 30 field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("aging30_base")] + public Microsoft.Xrm.Sdk.Money Aging30_Base + { + get + { + return this.GetAttributeValue("aging30_base"); + } + } + + /// + /// For system use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("aging60")] + public Microsoft.Xrm.Sdk.Money Aging60 + { + get + { + return this.GetAttributeValue("aging60"); + } + } + + /// + /// The base currency equivalent of the aging 60 field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("aging60_base")] + public Microsoft.Xrm.Sdk.Money Aging60_Base + { + get + { + return this.GetAttributeValue("aging60_base"); + } + } + + /// + /// For system use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("aging90")] + public Microsoft.Xrm.Sdk.Money Aging90 + { + get + { + return this.GetAttributeValue("aging90"); + } + } + + /// + /// The base currency equivalent of the aging 90 field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("aging90_base")] + public Microsoft.Xrm.Sdk.Money Aging90_Base + { + get + { + return this.GetAttributeValue("aging90_base"); + } + } + + /// + /// Select the legal designation or other business type of the account for contracts or reporting purposes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businesstypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue BusinessTypeCode + { + get + { + return this.GetAttributeValue("businesstypecode"); + } + set + { + this.OnPropertyChanging("BusinessTypeCode"); + this.SetAttributeValue("businesstypecode", value); + this.OnPropertyChanged("BusinessTypeCode"); + } + } + + /// + /// Select the legal designation or other business type of the account for contracts or reporting purposes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businesstypecode")] + public virtual Account_BusinessTypeCode? BusinessTypeCodeEnum + { + get + { + return ((Account_BusinessTypeCode?)(EntityOptionSetEnum.GetEnum(this, "businesstypecode"))); + } + set + { + this.OnPropertyChanging("BusinessTypeCode"); + this.SetAttributeValue("businesstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("BusinessTypeCode"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("crae4_dateonlydateonly")] + public System.Nullable crae4_DateOnlyDateOnly + { + get + { + return this.GetAttributeValue>("crae4_dateonlydateonly"); + } + set + { + this.OnPropertyChanging("crae4_DateOnlyDateOnly"); + this.SetAttributeValue("crae4_dateonlydateonly", value); + this.OnPropertyChanged("crae4_DateOnlyDateOnly"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("crae4_dateonlytzindependant")] + public System.Nullable crae4_DateOnlyTZIndependant + { + get + { + return this.GetAttributeValue>("crae4_dateonlytzindependant"); + } + set + { + this.OnPropertyChanging("crae4_DateOnlyTZIndependant"); + this.SetAttributeValue("crae4_dateonlytzindependant", value); + this.OnPropertyChanged("crae4_DateOnlyTZIndependant"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("crae4_dateonlyuserlocal")] + public System.Nullable crae4_DateOnlyUserLocal + { + get + { + return this.GetAttributeValue>("crae4_dateonlyuserlocal"); + } + set + { + this.OnPropertyChanging("crae4_DateOnlyUserLocal"); + this.SetAttributeValue("crae4_dateonlyuserlocal", value); + this.OnPropertyChanged("crae4_DateOnlyUserLocal"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("crae4_test01")] + public Microsoft.Xrm.Sdk.EntityReference crae4_TEST01 + { + get + { + return this.GetAttributeValue("crae4_test01"); + } + set + { + this.OnPropertyChanging("crae4_TEST01"); + this.SetAttributeValue("crae4_test01", value); + this.OnPropertyChanged("crae4_TEST01"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("crae4_tfile_name")] + public string crae4_tfile_Name + { + get + { + return this.GetAttributeValue("crae4_tfile_name"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the external party who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyexternalparty")] + public Microsoft.Xrm.Sdk.EntityReference CreatedByExternalParty + { + get + { + return this.GetAttributeValue("createdbyexternalparty"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics 365 options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Shows who created the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + set + { + this.OnPropertyChanging("CreatedOnBehalfBy"); + this.SetAttributeValue("createdonbehalfby", value); + this.OnPropertyChanged("CreatedOnBehalfBy"); + } + } + + /// + /// Type the credit limit of the account. This is a useful reference when you address invoice and accounting issues with the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("creditlimit")] + public Microsoft.Xrm.Sdk.Money CreditLimit + { + get + { + return this.GetAttributeValue("creditlimit"); + } + set + { + this.OnPropertyChanging("CreditLimit"); + this.SetAttributeValue("creditlimit", value); + this.OnPropertyChanged("CreditLimit"); + } + } + + /// + /// Shows the credit limit converted to the system's default base currency for reporting purposes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("creditlimit_base")] + public Microsoft.Xrm.Sdk.Money CreditLimit_Base + { + get + { + return this.GetAttributeValue("creditlimit_base"); + } + } + + /// + /// Select whether the credit for the account is on hold. This is a useful reference while addressing the invoice and accounting issues with the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("creditonhold")] + public System.Nullable CreditOnHold + { + get + { + return this.GetAttributeValue>("creditonhold"); + } + set + { + this.OnPropertyChanging("CreditOnHold"); + this.SetAttributeValue("creditonhold", value); + this.OnPropertyChanged("CreditOnHold"); + } + } + + /// + /// Select the size category or range of the account for segmentation and reporting purposes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customersizecode")] + public Microsoft.Xrm.Sdk.OptionSetValue CustomerSizeCode + { + get + { + return this.GetAttributeValue("customersizecode"); + } + set + { + this.OnPropertyChanging("CustomerSizeCode"); + this.SetAttributeValue("customersizecode", value); + this.OnPropertyChanged("CustomerSizeCode"); + } + } + + /// + /// Select the size category or range of the account for segmentation and reporting purposes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customersizecode")] + public virtual Account_CustomerSizeCode? CustomerSizeCodeEnum + { + get + { + return ((Account_CustomerSizeCode?)(EntityOptionSetEnum.GetEnum(this, "customersizecode"))); + } + set + { + this.OnPropertyChanging("CustomerSizeCode"); + this.SetAttributeValue("customersizecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("CustomerSizeCode"); + } + } + + /// + /// Select the category that best describes the relationship between the account and your organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customertypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue CustomerTypeCode + { + get + { + return this.GetAttributeValue("customertypecode"); + } + set + { + this.OnPropertyChanging("CustomerTypeCode"); + this.SetAttributeValue("customertypecode", value); + this.OnPropertyChanged("CustomerTypeCode"); + } + } + + /// + /// Select the category that best describes the relationship between the account and your organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customertypecode")] + public virtual Account_CustomerTypeCode? CustomerTypeCodeEnum + { + get + { + return ((Account_CustomerTypeCode?)(EntityOptionSetEnum.GetEnum(this, "customertypecode"))); + } + set + { + this.OnPropertyChanging("CustomerTypeCode"); + this.SetAttributeValue("customertypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("CustomerTypeCode"); + } + } + + /// + /// Choose the default price list associated with the account to make sure the correct product prices for this customer are applied in sales opportunities, quotes, and orders. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultpricelevelid")] + public Microsoft.Xrm.Sdk.EntityReference DefaultPriceLevelId + { + get + { + return this.GetAttributeValue("defaultpricelevelid"); + } + set + { + this.OnPropertyChanging("DefaultPriceLevelId"); + this.SetAttributeValue("defaultpricelevelid", value); + this.OnPropertyChanged("DefaultPriceLevelId"); + } + } + + /// + /// Type additional information to describe the account, such as an excerpt from the company's website. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Select whether the account allows bulk email sent through campaigns. If Do Not Allow is selected, the account can be added to marketing lists, but is excluded from email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotbulkemail")] + public System.Nullable DoNotBulkEMail + { + get + { + return this.GetAttributeValue>("donotbulkemail"); + } + set + { + this.OnPropertyChanging("DoNotBulkEMail"); + this.SetAttributeValue("donotbulkemail", value); + this.OnPropertyChanged("DoNotBulkEMail"); + } + } + + /// + /// Select whether the account allows bulk postal mail sent through marketing campaigns or quick campaigns. If Do Not Allow is selected, the account can be added to marketing lists, but will be excluded from the postal mail. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotbulkpostalmail")] + public System.Nullable DoNotBulkPostalMail + { + get + { + return this.GetAttributeValue>("donotbulkpostalmail"); + } + set + { + this.OnPropertyChanging("DoNotBulkPostalMail"); + this.SetAttributeValue("donotbulkpostalmail", value); + this.OnPropertyChanged("DoNotBulkPostalMail"); + } + } + + /// + /// Select whether the account allows direct email sent from Microsoft Dynamics 365. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotemail")] + public System.Nullable DoNotEMail + { + get + { + return this.GetAttributeValue>("donotemail"); + } + set + { + this.OnPropertyChanging("DoNotEMail"); + this.SetAttributeValue("donotemail", value); + this.OnPropertyChanged("DoNotEMail"); + } + } + + /// + /// Select whether the account allows faxes. If Do Not Allow is selected, the account will be excluded from fax activities distributed in marketing campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotfax")] + public System.Nullable DoNotFax + { + get + { + return this.GetAttributeValue>("donotfax"); + } + set + { + this.OnPropertyChanging("DoNotFax"); + this.SetAttributeValue("donotfax", value); + this.OnPropertyChanged("DoNotFax"); + } + } + + /// + /// Select whether the account allows phone calls. If Do Not Allow is selected, the account will be excluded from phone call activities distributed in marketing campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotphone")] + public System.Nullable DoNotPhone + { + get + { + return this.GetAttributeValue>("donotphone"); + } + set + { + this.OnPropertyChanging("DoNotPhone"); + this.SetAttributeValue("donotphone", value); + this.OnPropertyChanged("DoNotPhone"); + } + } + + /// + /// Select whether the account allows direct mail. If Do Not Allow is selected, the account will be excluded from letter activities distributed in marketing campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotpostalmail")] + public System.Nullable DoNotPostalMail + { + get + { + return this.GetAttributeValue>("donotpostalmail"); + } + set + { + this.OnPropertyChanging("DoNotPostalMail"); + this.SetAttributeValue("donotpostalmail", value); + this.OnPropertyChanged("DoNotPostalMail"); + } + } + + /// + /// Select whether the account accepts marketing materials, such as brochures or catalogs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotsendmm")] + public System.Nullable DoNotSendMM + { + get + { + return this.GetAttributeValue>("donotsendmm"); + } + set + { + this.OnPropertyChanging("DoNotSendMM"); + this.SetAttributeValue("donotsendmm", value); + this.OnPropertyChanged("DoNotSendMM"); + } + } + + /// + /// Type the primary email address for the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress1")] + public string EMailAddress1 + { + get + { + return this.GetAttributeValue("emailaddress1"); + } + set + { + this.OnPropertyChanging("EMailAddress1"); + this.SetAttributeValue("emailaddress1", value); + this.OnPropertyChanged("EMailAddress1"); + } + } + + /// + /// Type the secondary email address for the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress2")] + public string EMailAddress2 + { + get + { + return this.GetAttributeValue("emailaddress2"); + } + set + { + this.OnPropertyChanging("EMailAddress2"); + this.SetAttributeValue("emailaddress2", value); + this.OnPropertyChanged("EMailAddress2"); + } + } + + /// + /// Type an alternate email address for the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress3")] + public string EMailAddress3 + { + get + { + return this.GetAttributeValue("emailaddress3"); + } + set + { + this.OnPropertyChanging("EMailAddress3"); + this.SetAttributeValue("emailaddress3", value); + this.OnPropertyChanged("EMailAddress3"); + } + } + + /// + /// Shows the default image for the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] + public byte[] EntityImage + { + get + { + return this.GetAttributeValue("entityimage"); + } + set + { + this.OnPropertyChanging("EntityImage"); + this.SetAttributeValue("entityimage", value); + this.OnPropertyChanged("EntityImage"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] + public System.Nullable EntityImage_Timestamp + { + get + { + return this.GetAttributeValue>("entityimage_timestamp"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] + public string EntityImage_URL + { + get + { + return this.GetAttributeValue("entityimage_url"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Shows the conversion rate of the record's currency. The exchange rate is used to convert all money fields in the record from the local currency to the system's default currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Type the fax number for the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fax")] + public string Fax + { + get + { + return this.GetAttributeValue("fax"); + } + set + { + this.OnPropertyChanging("Fax"); + this.SetAttributeValue("fax", value); + this.OnPropertyChanged("Fax"); + } + } + + /// + /// Information about whether to allow following email activity like opens, attachment views and link clicks for emails sent to the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("followemail")] + public System.Nullable FollowEmail + { + get + { + return this.GetAttributeValue>("followemail"); + } + set + { + this.OnPropertyChanging("FollowEmail"); + this.SetAttributeValue("followemail", value); + this.OnPropertyChanged("FollowEmail"); + } + } + + /// + /// Type the URL for the account's FTP site to enable users to access data and share documents. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ftpsiteurl")] + public string FtpSiteURL + { + get + { + return this.GetAttributeValue("ftpsiteurl"); + } + set + { + this.OnPropertyChanging("FtpSiteURL"); + this.SetAttributeValue("ftpsiteurl", value); + this.OnPropertyChanged("FtpSiteURL"); + } + } + + /// + /// Unique identifier of the data import or data migration that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Select the account's primary industry for use in marketing segmentation and demographic analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("industrycode")] + public Microsoft.Xrm.Sdk.OptionSetValue IndustryCode + { + get + { + return this.GetAttributeValue("industrycode"); + } + set + { + this.OnPropertyChanging("IndustryCode"); + this.SetAttributeValue("industrycode", value); + this.OnPropertyChanged("IndustryCode"); + } + } + + /// + /// Select the account's primary industry for use in marketing segmentation and demographic analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("industrycode")] + public virtual Account_IndustryCode? IndustryCodeEnum + { + get + { + return ((Account_IndustryCode?)(EntityOptionSetEnum.GetEnum(this, "industrycode"))); + } + set + { + this.OnPropertyChanging("IndustryCode"); + this.SetAttributeValue("industrycode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("IndustryCode"); + } + } + + /// + /// Contains the date and time stamp of the last on hold time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastonholdtime")] + public System.Nullable LastOnHoldTime + { + get + { + return this.GetAttributeValue>("lastonholdtime"); + } + set + { + this.OnPropertyChanging("LastOnHoldTime"); + this.SetAttributeValue("lastonholdtime", value); + this.OnPropertyChanged("LastOnHoldTime"); + } + } + + /// + /// Shows the date when the account was last included in a marketing campaign or quick campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastusedincampaign")] + public System.Nullable LastUsedInCampaign + { + get + { + return this.GetAttributeValue>("lastusedincampaign"); + } + set + { + this.OnPropertyChanging("LastUsedInCampaign"); + this.SetAttributeValue("lastusedincampaign", value); + this.OnPropertyChanged("LastUsedInCampaign"); + } + } + + /// + /// Type the market capitalization of the account to identify the company's equity, used as an indicator in financial performance analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("marketcap")] + public Microsoft.Xrm.Sdk.Money MarketCap + { + get + { + return this.GetAttributeValue("marketcap"); + } + set + { + this.OnPropertyChanging("MarketCap"); + this.SetAttributeValue("marketcap", value); + this.OnPropertyChanged("MarketCap"); + } + } + + /// + /// Shows the market capitalization converted to the system's default base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("marketcap_base")] + public Microsoft.Xrm.Sdk.Money MarketCap_Base + { + get + { + return this.GetAttributeValue("marketcap_base"); + } + } + + /// + /// Whether is only for marketing + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("marketingonly")] + public System.Nullable MarketingOnly + { + get + { + return this.GetAttributeValue>("marketingonly"); + } + set + { + this.OnPropertyChanging("MarketingOnly"); + this.SetAttributeValue("marketingonly", value); + this.OnPropertyChanged("MarketingOnly"); + } + } + + /// + /// Shows the master account that the account was merged with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("masterid")] + public Microsoft.Xrm.Sdk.EntityReference MasterId + { + get + { + return this.GetAttributeValue("masterid"); + } + } + + /// + /// Shows whether the account has been merged with another account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("merged")] + public System.Nullable Merged + { + get + { + return this.GetAttributeValue>("merged"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Shows the external party who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyexternalparty")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedByExternalParty + { + get + { + return this.GetAttributeValue("modifiedbyexternalparty"); + } + } + + /// + /// Shows the date and time when the record was last updated. The date and time are displayed in the time zone selected in Microsoft Dynamics 365 options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Shows who created the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + set + { + this.OnPropertyChanging("ModifiedOnBehalfBy"); + this.SetAttributeValue("modifiedonbehalfby", value); + this.OnPropertyChanged("ModifiedOnBehalfBy"); + } + } + + /// + /// Unique identifier for Account associated with Account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msa_managingpartnerid")] + public Microsoft.Xrm.Sdk.EntityReference msa_managingpartnerid + { + get + { + return this.GetAttributeValue("msa_managingpartnerid"); + } + set + { + this.OnPropertyChanging("msa_managingpartnerid"); + this.SetAttributeValue("msa_managingpartnerid", value); + this.OnPropertyChanged("msa_managingpartnerid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyncrm_insights_placeholder")] + public string msdyncrm_insights_placeholder + { + get + { + return this.GetAttributeValue("msdyncrm_insights_placeholder"); + } + set + { + this.OnPropertyChanging("msdyncrm_insights_placeholder"); + this.SetAttributeValue("msdyncrm_insights_placeholder", value); + this.OnPropertyChanged("msdyncrm_insights_placeholder"); + } + } + + /// + /// The kind(s) of organization that this is + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_accounttype")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_AccountType + { + get + { + return this.GetAttributeValue("msemr_accounttype"); + } + set + { + this.OnPropertyChanging("msemr_AccountType"); + this.SetAttributeValue("msemr_accounttype", value); + this.OnPropertyChanged("msemr_AccountType"); + } + } + + /// + /// The kind(s) of organization that this is + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_accounttype")] + public virtual Account_msemr_AccountType? msemr_AccountTypeEnum + { + get + { + return ((Account_msemr_AccountType?)(EntityOptionSetEnum.GetEnum(this, "msemr_accounttype"))); + } + set + { + this.OnPropertyChanging("msemr_AccountType"); + this.SetAttributeValue("msemr_accounttype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_AccountType"); + } + } + + /// + /// Time period when address was/is in use + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_address1periodenddate")] + public System.Nullable msemr_Address1PeriodEndDate + { + get + { + return this.GetAttributeValue>("msemr_address1periodenddate"); + } + set + { + this.OnPropertyChanging("msemr_Address1PeriodEndDate"); + this.SetAttributeValue("msemr_address1periodenddate", value); + this.OnPropertyChanged("msemr_Address1PeriodEndDate"); + } + } + + /// + /// Time period when address was/is in use + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_address1periodstartdate")] + public System.Nullable msemr_Address1PeriodStartDate + { + get + { + return this.GetAttributeValue>("msemr_address1periodstartdate"); + } + set + { + this.OnPropertyChanging("msemr_Address1PeriodStartDate"); + this.SetAttributeValue("msemr_address1periodstartdate", value); + this.OnPropertyChanged("msemr_Address1PeriodStartDate"); + } + } + + /// + /// Time period when address was/is in use + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_address2periodenddate")] + public System.Nullable msemr_Address2PeriodEndDate + { + get + { + return this.GetAttributeValue>("msemr_address2periodenddate"); + } + set + { + this.OnPropertyChanging("msemr_Address2PeriodEndDate"); + this.SetAttributeValue("msemr_address2periodenddate", value); + this.OnPropertyChanged("msemr_Address2PeriodEndDate"); + } + } + + /// + /// Time period when address was/is in use + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_address2periodstartdate")] + public System.Nullable msemr_Address2PeriodStartDate + { + get + { + return this.GetAttributeValue>("msemr_address2periodstartdate"); + } + set + { + this.OnPropertyChanging("msemr_Address2PeriodStartDate"); + this.SetAttributeValue("msemr_address2periodstartdate", value); + this.OnPropertyChanged("msemr_Address2PeriodStartDate"); + } + } + + /// + /// A list of alternate names that the organization is known as, or was known as in the past. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_alias")] + public string msemr_Alias + { + get + { + return this.GetAttributeValue("msemr_alias"); + } + set + { + this.OnPropertyChanging("msemr_Alias"); + this.SetAttributeValue("msemr_alias", value); + this.OnPropertyChanged("msemr_Alias"); + } + } + + /// + /// Indicates a purpose for which the contact can be reached. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_contact1puropose")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Contact1Puropose + { + get + { + return this.GetAttributeValue("msemr_contact1puropose"); + } + set + { + this.OnPropertyChanging("msemr_Contact1Puropose"); + this.SetAttributeValue("msemr_contact1puropose", value); + this.OnPropertyChanged("msemr_Contact1Puropose"); + } + } + + /// + /// Contact for the organization for a certain purpose. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_contact2")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Contact2 + { + get + { + return this.GetAttributeValue("msemr_contact2"); + } + set + { + this.OnPropertyChanging("msemr_Contact2"); + this.SetAttributeValue("msemr_contact2", value); + this.OnPropertyChanged("msemr_Contact2"); + } + } + + /// + /// Indicates a purpose for which the contact can be reached. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_contact2puropose")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Contact2Puropose + { + get + { + return this.GetAttributeValue("msemr_contact2puropose"); + } + set + { + this.OnPropertyChanging("msemr_Contact2Puropose"); + this.SetAttributeValue("msemr_contact2puropose", value); + this.OnPropertyChanged("msemr_Contact2Puropose"); + } + } + + /// + /// Lookup to coverage for a payor organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_payororganization")] + public Microsoft.Xrm.Sdk.EntityReference msemr_PayorOrganization + { + get + { + return this.GetAttributeValue("msemr_payororganization"); + } + set + { + this.OnPropertyChanging("msemr_PayorOrganization"); + this.SetAttributeValue("msemr_payororganization", value); + this.OnPropertyChanged("msemr_PayorOrganization"); + } + } + + /// + /// End time of validity of telecom + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1enddate")] + public System.Nullable msemr_Telecom1EndDate + { + get + { + return this.GetAttributeValue>("msemr_telecom1enddate"); + } + set + { + this.OnPropertyChanging("msemr_Telecom1EndDate"); + this.SetAttributeValue("msemr_telecom1enddate", value); + this.OnPropertyChanged("msemr_Telecom1EndDate"); + } + } + + /// + /// Specify preferred order of use (1 = highest) + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1rank")] + public System.Nullable msemr_Telecom1Rank + { + get + { + return this.GetAttributeValue>("msemr_telecom1rank"); + } + set + { + this.OnPropertyChanging("msemr_Telecom1Rank"); + this.SetAttributeValue("msemr_telecom1rank", value); + this.OnPropertyChanged("msemr_Telecom1Rank"); + } + } + + /// + /// Start time of validtity of telecom + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1startdate")] + public System.Nullable msemr_Telecom1StartDate + { + get + { + return this.GetAttributeValue>("msemr_telecom1startdate"); + } + set + { + this.OnPropertyChanging("msemr_Telecom1StartDate"); + this.SetAttributeValue("msemr_telecom1startdate", value); + this.OnPropertyChanged("msemr_Telecom1StartDate"); + } + } + + /// + /// Type of Technology mediated contact point + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1system")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Telecom1System + { + get + { + return this.GetAttributeValue("msemr_telecom1system"); + } + set + { + this.OnPropertyChanging("msemr_Telecom1System"); + this.SetAttributeValue("msemr_telecom1system", value); + this.OnPropertyChanged("msemr_Telecom1System"); + } + } + + /// + /// Type of Technology mediated contact point + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1system")] + public virtual msemr_TelecomSystem? msemr_Telecom1SystemEnum + { + get + { + return ((msemr_TelecomSystem?)(EntityOptionSetEnum.GetEnum(this, "msemr_telecom1system"))); + } + set + { + this.OnPropertyChanging("msemr_Telecom1System"); + this.SetAttributeValue("msemr_telecom1system", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Telecom1System"); + } + } + + /// + /// purpose of this contact point + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1use")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Telecom1Use + { + get + { + return this.GetAttributeValue("msemr_telecom1use"); + } + set + { + this.OnPropertyChanging("msemr_Telecom1Use"); + this.SetAttributeValue("msemr_telecom1use", value); + this.OnPropertyChanged("msemr_Telecom1Use"); + } + } + + /// + /// purpose of this contact point + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1use")] + public virtual msemr_telecomuse? msemr_Telecom1UseEnum + { + get + { + return ((msemr_telecomuse?)(EntityOptionSetEnum.GetEnum(this, "msemr_telecom1use"))); + } + set + { + this.OnPropertyChanging("msemr_Telecom1Use"); + this.SetAttributeValue("msemr_telecom1use", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Telecom1Use"); + } + } + + /// + /// End time of validity of telecom + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2enddate")] + public System.Nullable msemr_Telecom2EndDate + { + get + { + return this.GetAttributeValue>("msemr_telecom2enddate"); + } + set + { + this.OnPropertyChanging("msemr_Telecom2EndDate"); + this.SetAttributeValue("msemr_telecom2enddate", value); + this.OnPropertyChanged("msemr_Telecom2EndDate"); + } + } + + /// + /// Specify preferred order of use (1 = highest) + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2rank")] + public System.Nullable msemr_Telecom2Rank + { + get + { + return this.GetAttributeValue>("msemr_telecom2rank"); + } + set + { + this.OnPropertyChanging("msemr_Telecom2Rank"); + this.SetAttributeValue("msemr_telecom2rank", value); + this.OnPropertyChanged("msemr_Telecom2Rank"); + } + } + + /// + /// Start time of validity of telecom + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2startdate")] + public System.Nullable msemr_Telecom2StartDate + { + get + { + return this.GetAttributeValue>("msemr_telecom2startdate"); + } + set + { + this.OnPropertyChanging("msemr_Telecom2StartDate"); + this.SetAttributeValue("msemr_telecom2startdate", value); + this.OnPropertyChanged("msemr_Telecom2StartDate"); + } + } + + /// + /// Type of Technology mediated contact point + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2system")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Telecom2System + { + get + { + return this.GetAttributeValue("msemr_telecom2system"); + } + set + { + this.OnPropertyChanging("msemr_Telecom2System"); + this.SetAttributeValue("msemr_telecom2system", value); + this.OnPropertyChanged("msemr_Telecom2System"); + } + } + + /// + /// Type of Technology mediated contact point + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2system")] + public virtual msemr_TelecomSystem? msemr_Telecom2SystemEnum + { + get + { + return ((msemr_TelecomSystem?)(EntityOptionSetEnum.GetEnum(this, "msemr_telecom2system"))); + } + set + { + this.OnPropertyChanging("msemr_Telecom2System"); + this.SetAttributeValue("msemr_telecom2system", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Telecom2System"); + } + } + + /// + /// purpose of this contact point + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2use")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Telecom2Use + { + get + { + return this.GetAttributeValue("msemr_telecom2use"); + } + set + { + this.OnPropertyChanging("msemr_Telecom2Use"); + this.SetAttributeValue("msemr_telecom2use", value); + this.OnPropertyChanged("msemr_Telecom2Use"); + } + } + + /// + /// purpose of this contact point + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2use")] + public virtual msemr_telecomuse? msemr_Telecom2UseEnum + { + get + { + return ((msemr_telecomuse?)(EntityOptionSetEnum.GetEnum(this, "msemr_telecom2use"))); + } + set + { + this.OnPropertyChanging("msemr_Telecom2Use"); + this.SetAttributeValue("msemr_telecom2use", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Telecom2Use"); + } + } + + /// + /// End time of validity of telecom + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3enddate")] + public string msemr_Telecom3EndDate + { + get + { + return this.GetAttributeValue("msemr_telecom3enddate"); + } + set + { + this.OnPropertyChanging("msemr_Telecom3EndDate"); + this.SetAttributeValue("msemr_telecom3enddate", value); + this.OnPropertyChanged("msemr_Telecom3EndDate"); + } + } + + /// + /// Specify preferred order of use (1 = highest) + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3rank")] + public System.Nullable msemr_Telecom3Rank + { + get + { + return this.GetAttributeValue>("msemr_telecom3rank"); + } + set + { + this.OnPropertyChanging("msemr_Telecom3Rank"); + this.SetAttributeValue("msemr_telecom3rank", value); + this.OnPropertyChanged("msemr_Telecom3Rank"); + } + } + + /// + /// Start time of validtity of telecom + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3startdate")] + public System.Nullable msemr_Telecom3StartDate + { + get + { + return this.GetAttributeValue>("msemr_telecom3startdate"); + } + set + { + this.OnPropertyChanging("msemr_Telecom3StartDate"); + this.SetAttributeValue("msemr_telecom3startdate", value); + this.OnPropertyChanged("msemr_Telecom3StartDate"); + } + } + + /// + /// Type of Technology mediated contact point + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3system")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Telecom3System + { + get + { + return this.GetAttributeValue("msemr_telecom3system"); + } + set + { + this.OnPropertyChanging("msemr_Telecom3System"); + this.SetAttributeValue("msemr_telecom3system", value); + this.OnPropertyChanged("msemr_Telecom3System"); + } + } + + /// + /// Type of Technology mediated contact point + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3system")] + public virtual msemr_TelecomSystem? msemr_Telecom3SystemEnum + { + get + { + return ((msemr_TelecomSystem?)(EntityOptionSetEnum.GetEnum(this, "msemr_telecom3system"))); + } + set + { + this.OnPropertyChanging("msemr_Telecom3System"); + this.SetAttributeValue("msemr_telecom3system", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Telecom3System"); + } + } + + /// + /// purpose of this contact point + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3use")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Telecom3Use + { + get + { + return this.GetAttributeValue("msemr_telecom3use"); + } + set + { + this.OnPropertyChanging("msemr_Telecom3Use"); + this.SetAttributeValue("msemr_telecom3use", value); + this.OnPropertyChanged("msemr_Telecom3Use"); + } + } + + /// + /// purpose of this contact point + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3use")] + public virtual msemr_telecomuse? msemr_Telecom3UseEnum + { + get + { + return ((msemr_telecomuse?)(EntityOptionSetEnum.GetEnum(this, "msemr_telecom3use"))); + } + set + { + this.OnPropertyChanging("msemr_Telecom3Use"); + this.SetAttributeValue("msemr_telecom3use", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Telecom3Use"); + } + } + + /// + /// Indicates whether this account belongs to hotel group + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msevtmgt_hotelgroup")] + public Microsoft.Xrm.Sdk.OptionSetValue msevtmgt_HotelGroup + { + get + { + return this.GetAttributeValue("msevtmgt_hotelgroup"); + } + set + { + this.OnPropertyChanging("msevtmgt_HotelGroup"); + this.SetAttributeValue("msevtmgt_hotelgroup", value); + this.OnPropertyChanged("msevtmgt_HotelGroup"); + } + } + + /// + /// Indicates whether this account belongs to hotel group + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msevtmgt_hotelgroup")] + public virtual msevtmgt_nooryes? msevtmgt_HotelGroupEnum + { + get + { + return ((msevtmgt_nooryes?)(EntityOptionSetEnum.GetEnum(this, "msevtmgt_hotelgroup"))); + } + set + { + this.OnPropertyChanging("msevtmgt_HotelGroup"); + this.SetAttributeValue("msevtmgt_hotelgroup", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msevtmgt_HotelGroup"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msevtmgt_rentalcarprovider")] + public Microsoft.Xrm.Sdk.OptionSetValue msevtmgt_RentalCarProvider + { + get + { + return this.GetAttributeValue("msevtmgt_rentalcarprovider"); + } + set + { + this.OnPropertyChanging("msevtmgt_RentalCarProvider"); + this.SetAttributeValue("msevtmgt_rentalcarprovider", value); + this.OnPropertyChanged("msevtmgt_RentalCarProvider"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msevtmgt_rentalcarprovider")] + public virtual msevtmgt_nooryes? msevtmgt_RentalCarProviderEnum + { + get + { + return ((msevtmgt_nooryes?)(EntityOptionSetEnum.GetEnum(this, "msevtmgt_rentalcarprovider"))); + } + set + { + this.OnPropertyChanging("msevtmgt_RentalCarProvider"); + this.SetAttributeValue("msevtmgt_rentalcarprovider", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msevtmgt_RentalCarProvider"); + } + } + + /// + /// Type the company or business name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("new_dateonlytest")] + public System.Nullable new_DateOnlyTest + { + get + { + return this.GetAttributeValue>("new_dateonlytest"); + } + set + { + this.OnPropertyChanging("new_DateOnlyTest"); + this.SetAttributeValue("new_dateonlytest", value); + this.OnPropertyChanged("new_DateOnlyTest"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("new_timezoneindependant")] + public System.Nullable new_TimeZoneIndependant + { + get + { + return this.GetAttributeValue>("new_timezoneindependant"); + } + set + { + this.OnPropertyChanging("new_TimeZoneIndependant"); + this.SetAttributeValue("new_timezoneindependant", value); + this.OnPropertyChanged("new_TimeZoneIndependant"); + } + } + + /// + /// Type the number of employees that work at the account for use in marketing segmentation and demographic analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numberofemployees")] + public System.Nullable NumberOfEmployees + { + get + { + return this.GetAttributeValue>("numberofemployees"); + } + set + { + this.OnPropertyChanging("NumberOfEmployees"); + this.SetAttributeValue("numberofemployees", value); + this.OnPropertyChanged("NumberOfEmployees"); + } + } + + /// + /// Shows how long, in minutes, that the record was on hold. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("onholdtime")] + public System.Nullable OnHoldTime + { + get + { + return this.GetAttributeValue>("onholdtime"); + } + } + + /// + /// Number of open opportunities against an account and its child accounts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opendeals")] + public System.Nullable OpenDeals + { + get + { + return this.GetAttributeValue>("opendeals"); + } + } + + /// + /// Last Updated time of rollup field Open Deals. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opendeals_date")] + public System.Nullable OpenDeals_Date + { + get + { + return this.GetAttributeValue>("opendeals_date"); + } + } + + /// + /// State of rollup field Open Deals. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opendeals_state")] + public System.Nullable OpenDeals_State + { + get + { + return this.GetAttributeValue>("opendeals_state"); + } + } + + /// + /// Sum of open revenue against an account and its child accounts. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("openrevenue")] + public Microsoft.Xrm.Sdk.Money OpenRevenue + { + get + { + return this.GetAttributeValue("openrevenue"); + } + } + + /// + /// Value of the Open Revenue in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("openrevenue_base")] + public Microsoft.Xrm.Sdk.Money OpenRevenue_Base + { + get + { + return this.GetAttributeValue("openrevenue_base"); + } + } + + /// + /// Last Updated time of rollup field Open Revenue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("openrevenue_date")] + public System.Nullable OpenRevenue_Date + { + get + { + return this.GetAttributeValue>("openrevenue_date"); + } + } + + /// + /// State of rollup field Open Revenue. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("openrevenue_state")] + public System.Nullable OpenRevenue_State + { + get + { + return this.GetAttributeValue>("openrevenue_state"); + } + } + + /// + /// Shows the lead that the account was created from if the account was created by converting a lead in Microsoft Dynamics 365. This is used to relate the account to data on the originating lead for use in reporting and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingleadid")] + public Microsoft.Xrm.Sdk.EntityReference OriginatingLeadId + { + get + { + return this.GetAttributeValue("originatingleadid"); + } + set + { + this.OnPropertyChanging("OriginatingLeadId"); + this.SetAttributeValue("originatingleadid", value); + this.OnPropertyChanged("OriginatingLeadId"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Enter the user or team who is assigned to manage the record. This field is updated every time the record is assigned to a different user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + set + { + this.OnPropertyChanging("OwnerId"); + this.SetAttributeValue("ownerid", value); + this.OnPropertyChanged("OwnerId"); + } + } + + /// + /// Select the account's ownership structure, such as public or private. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownershipcode")] + public Microsoft.Xrm.Sdk.OptionSetValue OwnershipCode + { + get + { + return this.GetAttributeValue("ownershipcode"); + } + set + { + this.OnPropertyChanging("OwnershipCode"); + this.SetAttributeValue("ownershipcode", value); + this.OnPropertyChanged("OwnershipCode"); + } + } + + /// + /// Select the account's ownership structure, such as public or private. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownershipcode")] + public virtual Account_OwnershipCode? OwnershipCodeEnum + { + get + { + return ((Account_OwnershipCode?)(EntityOptionSetEnum.GetEnum(this, "ownershipcode"))); + } + set + { + this.OnPropertyChanging("OwnershipCode"); + this.SetAttributeValue("ownershipcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("OwnershipCode"); + } + } + + /// + /// Shows the business unit that the record owner belongs to. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose the parent account associated with this account to show parent and child businesses in reporting and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentaccountid")] + public Microsoft.Xrm.Sdk.EntityReference ParentAccountId + { + get + { + return this.GetAttributeValue("parentaccountid"); + } + set + { + this.OnPropertyChanging("ParentAccountId"); + this.SetAttributeValue("parentaccountid", value); + this.OnPropertyChanged("ParentAccountId"); + } + } + + /// + /// For system use only. Legacy Microsoft Dynamics CRM 3.0 workflow data. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("participatesinworkflow")] + public System.Nullable ParticipatesInWorkflow + { + get + { + return this.GetAttributeValue>("participatesinworkflow"); + } + set + { + this.OnPropertyChanging("ParticipatesInWorkflow"); + this.SetAttributeValue("participatesinworkflow", value); + this.OnPropertyChanged("ParticipatesInWorkflow"); + } + } + + /// + /// Select the payment terms to indicate when the customer needs to pay the total amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("paymenttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue PaymentTermsCode + { + get + { + return this.GetAttributeValue("paymenttermscode"); + } + set + { + this.OnPropertyChanging("PaymentTermsCode"); + this.SetAttributeValue("paymenttermscode", value); + this.OnPropertyChanged("PaymentTermsCode"); + } + } + + /// + /// Select the payment terms to indicate when the customer needs to pay the total amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("paymenttermscode")] + public virtual Account_PaymentTermsCode? PaymentTermsCodeEnum + { + get + { + return ((Account_PaymentTermsCode?)(EntityOptionSetEnum.GetEnum(this, "paymenttermscode"))); + } + set + { + this.OnPropertyChanging("PaymentTermsCode"); + this.SetAttributeValue("paymenttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PaymentTermsCode"); + } + } + + /// + /// Select the preferred day of the week for service appointments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredappointmentdaycode")] + public Microsoft.Xrm.Sdk.OptionSetValue PreferredAppointmentDayCode + { + get + { + return this.GetAttributeValue("preferredappointmentdaycode"); + } + set + { + this.OnPropertyChanging("PreferredAppointmentDayCode"); + this.SetAttributeValue("preferredappointmentdaycode", value); + this.OnPropertyChanged("PreferredAppointmentDayCode"); + } + } + + /// + /// Select the preferred day of the week for service appointments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredappointmentdaycode")] + public virtual Account_PreferredAppointmentDayCode? PreferredAppointmentDayCodeEnum + { + get + { + return ((Account_PreferredAppointmentDayCode?)(EntityOptionSetEnum.GetEnum(this, "preferredappointmentdaycode"))); + } + set + { + this.OnPropertyChanging("PreferredAppointmentDayCode"); + this.SetAttributeValue("preferredappointmentdaycode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PreferredAppointmentDayCode"); + } + } + + /// + /// Select the preferred time of day for service appointments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredappointmenttimecode")] + public Microsoft.Xrm.Sdk.OptionSetValue PreferredAppointmentTimeCode + { + get + { + return this.GetAttributeValue("preferredappointmenttimecode"); + } + set + { + this.OnPropertyChanging("PreferredAppointmentTimeCode"); + this.SetAttributeValue("preferredappointmenttimecode", value); + this.OnPropertyChanged("PreferredAppointmentTimeCode"); + } + } + + /// + /// Select the preferred time of day for service appointments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredappointmenttimecode")] + public virtual Account_PreferredAppointmentTimeCode? PreferredAppointmentTimeCodeEnum + { + get + { + return ((Account_PreferredAppointmentTimeCode?)(EntityOptionSetEnum.GetEnum(this, "preferredappointmenttimecode"))); + } + set + { + this.OnPropertyChanging("PreferredAppointmentTimeCode"); + this.SetAttributeValue("preferredappointmenttimecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PreferredAppointmentTimeCode"); + } + } + + /// + /// Select the preferred method of contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredcontactmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue PreferredContactMethodCode + { + get + { + return this.GetAttributeValue("preferredcontactmethodcode"); + } + set + { + this.OnPropertyChanging("PreferredContactMethodCode"); + this.SetAttributeValue("preferredcontactmethodcode", value); + this.OnPropertyChanged("PreferredContactMethodCode"); + } + } + + /// + /// Select the preferred method of contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredcontactmethodcode")] + public virtual Account_PreferredContactMethodCode? PreferredContactMethodCodeEnum + { + get + { + return ((Account_PreferredContactMethodCode?)(EntityOptionSetEnum.GetEnum(this, "preferredcontactmethodcode"))); + } + set + { + this.OnPropertyChanging("PreferredContactMethodCode"); + this.SetAttributeValue("preferredcontactmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PreferredContactMethodCode"); + } + } + + /// + /// Choose the account's preferred service facility or equipment to make sure services are scheduled correctly for the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredequipmentid")] + public Microsoft.Xrm.Sdk.EntityReference PreferredEquipmentId + { + get + { + return this.GetAttributeValue("preferredequipmentid"); + } + set + { + this.OnPropertyChanging("PreferredEquipmentId"); + this.SetAttributeValue("preferredequipmentid", value); + this.OnPropertyChanged("PreferredEquipmentId"); + } + } + + /// + /// Choose the account's preferred service for reference when you schedule service activities. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredserviceid")] + public Microsoft.Xrm.Sdk.EntityReference PreferredServiceId + { + get + { + return this.GetAttributeValue("preferredserviceid"); + } + set + { + this.OnPropertyChanging("PreferredServiceId"); + this.SetAttributeValue("preferredserviceid", value); + this.OnPropertyChanged("PreferredServiceId"); + } + } + + /// + /// Choose the preferred service representative for reference when you schedule service activities for the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredsystemuserid")] + public Microsoft.Xrm.Sdk.EntityReference PreferredSystemUserId + { + get + { + return this.GetAttributeValue("preferredsystemuserid"); + } + set + { + this.OnPropertyChanging("PreferredSystemUserId"); + this.SetAttributeValue("preferredsystemuserid", value); + this.OnPropertyChanged("PreferredSystemUserId"); + } + } + + /// + /// Choose the primary contact for the account to provide quick access to contact details. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primarycontactid")] + public Microsoft.Xrm.Sdk.EntityReference PrimaryContactId + { + get + { + return this.GetAttributeValue("primarycontactid"); + } + set + { + this.OnPropertyChanging("PrimaryContactId"); + this.SetAttributeValue("primarycontactid", value); + this.OnPropertyChanged("PrimaryContactId"); + } + } + + /// + /// Primary Satori ID for Account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primarysatoriid")] + public string PrimarySatoriId + { + get + { + return this.GetAttributeValue("primarysatoriid"); + } + set + { + this.OnPropertyChanging("PrimarySatoriId"); + this.SetAttributeValue("primarysatoriid", value); + this.OnPropertyChanged("PrimarySatoriId"); + } + } + + /// + /// Primary Twitter ID for Account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("primarytwitterid")] + public string PrimaryTwitterId + { + get + { + return this.GetAttributeValue("primarytwitterid"); + } + set + { + this.OnPropertyChanging("PrimaryTwitterId"); + this.SetAttributeValue("primarytwitterid", value); + this.OnPropertyChanged("PrimaryTwitterId"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Type the annual revenue for the account, used as an indicator in financial performance analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("revenue")] + public Microsoft.Xrm.Sdk.Money Revenue + { + get + { + return this.GetAttributeValue("revenue"); + } + set + { + this.OnPropertyChanging("Revenue"); + this.SetAttributeValue("revenue", value); + this.OnPropertyChanged("Revenue"); + } + } + + /// + /// Shows the annual revenue converted to the system's default base currency. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("revenue_base")] + public Microsoft.Xrm.Sdk.Money Revenue_Base + { + get + { + return this.GetAttributeValue("revenue_base"); + } + } + + /// + /// Type the number of shares available to the public for the account. This number is used as an indicator in financial performance analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharesoutstanding")] + public System.Nullable SharesOutstanding + { + get + { + return this.GetAttributeValue>("sharesoutstanding"); + } + set + { + this.OnPropertyChanging("SharesOutstanding"); + this.SetAttributeValue("sharesoutstanding", value); + this.OnPropertyChanged("SharesOutstanding"); + } + } + + /// + /// Select a shipping method for deliveries sent to the account's address to designate the preferred carrier or other delivery option. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shippingmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ShippingMethodCode + { + get + { + return this.GetAttributeValue("shippingmethodcode"); + } + set + { + this.OnPropertyChanging("ShippingMethodCode"); + this.SetAttributeValue("shippingmethodcode", value); + this.OnPropertyChanged("ShippingMethodCode"); + } + } + + /// + /// Select a shipping method for deliveries sent to the account's address to designate the preferred carrier or other delivery option. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shippingmethodcode")] + public virtual Account_ShippingMethodCode? ShippingMethodCodeEnum + { + get + { + return ((Account_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "shippingmethodcode"))); + } + set + { + this.OnPropertyChanging("ShippingMethodCode"); + this.SetAttributeValue("shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("ShippingMethodCode"); + } + } + + /// + /// Type the Standard Industrial Classification (SIC) code that indicates the account's primary industry of business, for use in marketing segmentation and demographic analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sic")] + public string SIC + { + get + { + return this.GetAttributeValue("sic"); + } + set + { + this.OnPropertyChanging("SIC"); + this.SetAttributeValue("sic", value); + this.OnPropertyChanged("SIC"); + } + } + + /// + /// Choose the service level agreement (SLA) that you want to apply to the Account record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("slaid")] + public Microsoft.Xrm.Sdk.EntityReference SLAId + { + get + { + return this.GetAttributeValue("slaid"); + } + set + { + this.OnPropertyChanging("SLAId"); + this.SetAttributeValue("slaid", value); + this.OnPropertyChanged("SLAId"); + } + } + + /// + /// Last SLA that was applied to this case. This field is for internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("slainvokedid")] + public Microsoft.Xrm.Sdk.EntityReference SLAInvokedId + { + get + { + return this.GetAttributeValue("slainvokedid"); + } + } + + /// + /// Shows the ID of the stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + public System.Nullable StageId + { + get + { + return this.GetAttributeValue>("stageid"); + } + set + { + this.OnPropertyChanging("StageId"); + this.SetAttributeValue("stageid", value); + this.OnPropertyChanged("StageId"); + } + } + + /// + /// Shows whether the account is active or inactive. Inactive accounts are read-only and can't be edited unless they are reactivated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((CrmSdk.AccountState)(System.Enum.ToObject(typeof(CrmSdk.AccountState), optionSet.Value))); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("StateCode"); + if ((value == null)) + { + this.SetAttributeValue("statecode", null); + } + else + { + this.SetAttributeValue("statecode", new Microsoft.Xrm.Sdk.OptionSetValue(((int)(value)))); + } + this.OnPropertyChanged("StateCode"); + } + } + + /// + /// Select the account's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Select the account's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual Account_StatusCode? StatusCodeEnum + { + get + { + return ((Account_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Type the stock exchange at which the account is listed to track their stock and financial performance of the company. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stockexchange")] + public string StockExchange + { + get + { + return this.GetAttributeValue("stockexchange"); + } + set + { + this.OnPropertyChanging("StockExchange"); + this.SetAttributeValue("stockexchange", value); + this.OnPropertyChanged("StockExchange"); + } + } + + /// + /// Number of users or conversations followed the record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamsfollowed")] + public System.Nullable TeamsFollowed + { + get + { + return this.GetAttributeValue>("teamsfollowed"); + } + set + { + this.OnPropertyChanging("TeamsFollowed"); + this.SetAttributeValue("teamsfollowed", value); + this.OnPropertyChanged("TeamsFollowed"); + } + } + + /// + /// Type the main phone number for this account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone1")] + public string Telephone1 + { + get + { + return this.GetAttributeValue("telephone1"); + } + set + { + this.OnPropertyChanging("Telephone1"); + this.SetAttributeValue("telephone1", value); + this.OnPropertyChanged("Telephone1"); + } + } + + /// + /// Type a second phone number for this account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone2")] + public string Telephone2 + { + get + { + return this.GetAttributeValue("telephone2"); + } + set + { + this.OnPropertyChanging("Telephone2"); + this.SetAttributeValue("telephone2", value); + this.OnPropertyChanged("Telephone2"); + } + } + + /// + /// Type a third phone number for this account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone3")] + public string Telephone3 + { + get + { + return this.GetAttributeValue("telephone3"); + } + set + { + this.OnPropertyChanging("Telephone3"); + this.SetAttributeValue("telephone3", value); + this.OnPropertyChanged("Telephone3"); + } + } + + /// + /// Select a region or territory for the account for use in segmentation and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territorycode")] + public Microsoft.Xrm.Sdk.OptionSetValue TerritoryCode + { + get + { + return this.GetAttributeValue("territorycode"); + } + set + { + this.OnPropertyChanging("TerritoryCode"); + this.SetAttributeValue("territorycode", value); + this.OnPropertyChanged("TerritoryCode"); + } + } + + /// + /// Select a region or territory for the account for use in segmentation and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territorycode")] + public virtual Account_TerritoryCode? TerritoryCodeEnum + { + get + { + return ((Account_TerritoryCode?)(EntityOptionSetEnum.GetEnum(this, "territorycode"))); + } + set + { + this.OnPropertyChanging("TerritoryCode"); + this.SetAttributeValue("territorycode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("TerritoryCode"); + } + } + + /// + /// Choose the sales region or territory for the account to make sure the account is assigned to the correct representative and for use in segmentation and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territoryid")] + public Microsoft.Xrm.Sdk.EntityReference TerritoryId + { + get + { + return this.GetAttributeValue("territoryid"); + } + set + { + this.OnPropertyChanging("TerritoryId"); + this.SetAttributeValue("territoryid", value); + this.OnPropertyChanged("TerritoryId"); + } + } + + /// + /// Type the stock exchange symbol for the account to track financial performance of the company. You can click the code entered in this field to access the latest trading information from MSN Money. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tickersymbol")] + public string TickerSymbol + { + get + { + return this.GetAttributeValue("tickersymbol"); + } + set + { + this.OnPropertyChanging("TickerSymbol"); + this.SetAttributeValue("tickersymbol", value); + this.OnPropertyChanged("TickerSymbol"); + } + } + + /// + /// Total time spent for emails (read and write) and meetings by me in relation to account record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timespentbymeonemailandmeetings")] + public string TimeSpentByMeOnEmailAndMeetings + { + get + { + return this.GetAttributeValue("timespentbymeonemailandmeetings"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Choose the local currency for the record to make sure budgets are reported in the correct currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traversedpath")] + public string TraversedPath + { + get + { + return this.GetAttributeValue("traversedpath"); + } + set + { + this.OnPropertyChanging("TraversedPath"); + this.SetAttributeValue("traversedpath", value); + this.OnPropertyChanged("TraversedPath"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version number of the account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Type the account's website URL to get quick details about the company profile. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("websiteurl")] + public string WebSiteURL + { + get + { + return this.GetAttributeValue("websiteurl"); + } + set + { + this.OnPropertyChanging("WebSiteURL"); + this.SetAttributeValue("websiteurl", value); + this.OnPropertyChanged("WebSiteURL"); + } + } + + /// + /// Type the phonetic spelling of the company name, if specified in Japanese, to make sure the name is pronounced correctly in phone calls and other communications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yominame")] + public string YomiName + { + get + { + return this.GetAttributeValue("yominame"); + } + set + { + this.OnPropertyChanging("YomiName"); + this.SetAttributeValue("yominame", value); + this.OnPropertyChanged("YomiName"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + public Account(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (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["accountid"] = base.Id; + break; + case "accountid": + 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; + } + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum ContactState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Person with whom a business unit has a relationship, such as customer, supplier, and colleague. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("contact")] + public partial class Contact : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + public static class Fields + { + public const string AccountId = "accountid"; + public const string AccountRoleCode = "accountrolecode"; + public const string Address1_AddressId = "address1_addressid"; + public const string Address1_AddressTypeCode = "address1_addresstypecode"; + public const string Address1_City = "address1_city"; + public const string Address1_Composite = "address1_composite"; + public const string Address1_Country = "address1_country"; + public const string Address1_County = "address1_county"; + public const string Address1_Fax = "address1_fax"; + public const string Address1_FreightTermsCode = "address1_freighttermscode"; + 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_PrimaryContactName = "address1_primarycontactname"; + public const string Address1_ShippingMethodCode = "address1_shippingmethodcode"; + public const string Address1_StateOrProvince = "address1_stateorprovince"; + public const string Address1_Telephone1 = "address1_telephone1"; + public const string Address1_Telephone2 = "address1_telephone2"; + public const string Address1_Telephone3 = "address1_telephone3"; + public const string Address1_UPSZone = "address1_upszone"; + public const string Address1_UTCOffset = "address1_utcoffset"; + public const string Address2_AddressId = "address2_addressid"; + public const string Address2_AddressTypeCode = "address2_addresstypecode"; + public const string Address2_City = "address2_city"; + public const string Address2_Composite = "address2_composite"; + public const string Address2_Country = "address2_country"; + public const string Address2_County = "address2_county"; + public const string Address2_Fax = "address2_fax"; + public const string Address2_FreightTermsCode = "address2_freighttermscode"; + 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_PrimaryContactName = "address2_primarycontactname"; + public const string Address2_ShippingMethodCode = "address2_shippingmethodcode"; + public const string Address2_StateOrProvince = "address2_stateorprovince"; + public const string Address2_Telephone1 = "address2_telephone1"; + public const string Address2_Telephone2 = "address2_telephone2"; + public const string Address2_Telephone3 = "address2_telephone3"; + public const string Address2_UPSZone = "address2_upszone"; + public const string Address2_UTCOffset = "address2_utcoffset"; + public const string Address3_AddressId = "address3_addressid"; + public const string Address3_AddressTypeCode = "address3_addresstypecode"; + public const string Address3_City = "address3_city"; + public const string Address3_Composite = "address3_composite"; + public const string Address3_Country = "address3_country"; + public const string Address3_County = "address3_county"; + public const string Address3_Fax = "address3_fax"; + public const string Address3_FreightTermsCode = "address3_freighttermscode"; + public const string Address3_Latitude = "address3_latitude"; + public const string Address3_Line1 = "address3_line1"; + public const string Address3_Line2 = "address3_line2"; + public const string Address3_Line3 = "address3_line3"; + public const string Address3_Longitude = "address3_longitude"; + public const string Address3_Name = "address3_name"; + public const string Address3_PostalCode = "address3_postalcode"; + public const string Address3_PostOfficeBox = "address3_postofficebox"; + public const string Address3_PrimaryContactName = "address3_primarycontactname"; + public const string Address3_ShippingMethodCode = "address3_shippingmethodcode"; + public const string Address3_StateOrProvince = "address3_stateorprovince"; + public const string Address3_Telephone1 = "address3_telephone1"; + public const string Address3_Telephone2 = "address3_telephone2"; + public const string Address3_Telephone3 = "address3_telephone3"; + public const string Address3_UPSZone = "address3_upszone"; + public const string Address3_UTCOffset = "address3_utcoffset"; + public const string adx_ConfirmRemovePassword = "adx_confirmremovepassword"; + public const string Adx_CreatedByIPAddress = "adx_createdbyipaddress"; + public const string Adx_CreatedByUsername = "adx_createdbyusername"; + public const string adx_identity_accessfailedcount = "adx_identity_accessfailedcount"; + public const string adx_identity_emailaddress1confirmed = "adx_identity_emailaddress1confirmed"; + public const string adx_identity_lastsuccessfullogin = "adx_identity_lastsuccessfullogin"; + public const string adx_identity_locallogindisabled = "adx_identity_locallogindisabled"; + public const string adx_identity_lockoutenabled = "adx_identity_lockoutenabled"; + public const string adx_identity_lockoutenddate = "adx_identity_lockoutenddate"; + public const string adx_identity_logonenabled = "adx_identity_logonenabled"; + public const string adx_identity_mobilephoneconfirmed = "adx_identity_mobilephoneconfirmed"; + public const string adx_identity_newpassword = "adx_identity_newpassword"; + public const string adx_identity_passwordhash = "adx_identity_passwordhash"; + public const string adx_identity_securitystamp = "adx_identity_securitystamp"; + public const string adx_identity_twofactorenabled = "adx_identity_twofactorenabled"; + public const string adx_identity_username = "adx_identity_username"; + public const string Adx_ModifiedByIPAddress = "adx_modifiedbyipaddress"; + public const string Adx_ModifiedByUsername = "adx_modifiedbyusername"; + public const string Adx_OrganizationName = "adx_organizationname"; + public const string adx_preferredlanguageid = "adx_preferredlanguageid"; + public const string adx_profilealert = "adx_profilealert"; + public const string adx_profilealertdate = "adx_profilealertdate"; + public const string adx_profilealertinstructions = "adx_profilealertinstructions"; + public const string Adx_ProfileIsAnonymous = "adx_profileisanonymous"; + public const string Adx_ProfileLastActivity = "adx_profilelastactivity"; + public const string adx_profilemodifiedon = "adx_profilemodifiedon"; + public const string adx_PublicProfileCopy = "adx_publicprofilecopy"; + public const string Adx_TimeZone = "adx_timezone"; + public const string Aging30 = "aging30"; + public const string Aging30_Base = "aging30_base"; + public const string Aging60 = "aging60"; + public const string Aging60_Base = "aging60_base"; + public const string Aging90 = "aging90"; + public const string Aging90_Base = "aging90_base"; + public const string Anniversary = "anniversary"; + public const string AnnualIncome = "annualincome"; + public const string AnnualIncome_Base = "annualincome_base"; + public const string AssistantName = "assistantname"; + public const string AssistantPhone = "assistantphone"; + public const string BirthDate = "birthdate"; + public const string Business2 = "business2"; + public const string BusinessCard = "businesscard"; + public const string BusinessCardAttributes = "businesscardattributes"; + public const string Callback = "callback"; + public const string ChildrensNames = "childrensnames"; + public const string Company = "company"; + public const string ContactId = "contactid"; + public const string Id = "contactid"; + public const string crae4_externalERKey = "crae4_externalerkey"; + public const string crae4_externalKeyId = "crae4_externalkeyid"; + public const string CreatedBy = "createdby"; + public const string CreatedByExternalParty = "createdbyexternalparty"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CreditLimit = "creditlimit"; + public const string CreditLimit_Base = "creditlimit_base"; + public const string CreditOnHold = "creditonhold"; + public const string CustomerSizeCode = "customersizecode"; + public const string CustomerTypeCode = "customertypecode"; + public const string DefaultPriceLevelId = "defaultpricelevelid"; + public const string Department = "department"; + public const string Description = "description"; + public const string DoNotBulkEMail = "donotbulkemail"; + public const string DoNotBulkPostalMail = "donotbulkpostalmail"; + public const string DoNotEMail = "donotemail"; + public const string DoNotFax = "donotfax"; + public const string DoNotPhone = "donotphone"; + public const string DoNotPostalMail = "donotpostalmail"; + public const string DoNotSendMM = "donotsendmm"; + public const string EducationCode = "educationcode"; + public const string EMailAddress1 = "emailaddress1"; + public const string EMailAddress2 = "emailaddress2"; + public const string EMailAddress3 = "emailaddress3"; + 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 ExternalUserIdentifier = "externaluseridentifier"; + public const string FamilyStatusCode = "familystatuscode"; + public const string Fax = "fax"; + public const string FirstName = "firstname"; + public const string FollowEmail = "followemail"; + public const string FtpSiteUrl = "ftpsiteurl"; + public const string FullName = "fullname"; + public const string GenderCode = "gendercode"; + public const string GovernmentId = "governmentid"; + public const string HasChildrenCode = "haschildrencode"; + public const string Home2 = "home2"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string IsBackofficeCustomer = "isbackofficecustomer"; + public const string JobTitle = "jobtitle"; + public const string LastName = "lastname"; + public const string LastOnHoldTime = "lastonholdtime"; + public const string LastUsedInCampaign = "lastusedincampaign"; + public const string LeadSourceCode = "leadsourcecode"; + public const string ManagerName = "managername"; + public const string ManagerPhone = "managerphone"; + public const string MarketingOnly = "marketingonly"; + public const string MasterId = "masterid"; + public const string Merged = "merged"; + public const string MiddleName = "middlename"; + public const string MobilePhone = "mobilephone"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedByExternalParty = "modifiedbyexternalparty"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string msa_managingpartnerid = "msa_managingpartnerid"; + public const string msdyn_disablewebtracking = "msdyn_disablewebtracking"; + public const string msdyn_gdproptout = "msdyn_gdproptout"; + public const string msdyn_isminor = "msdyn_isminor"; + public const string msdyn_isminorwithparentalconsent = "msdyn_isminorwithparentalconsent"; + public const string msdyn_orgchangestatus = "msdyn_orgchangestatus"; + public const string msdyn_portaltermsagreementdate = "msdyn_portaltermsagreementdate"; + public const string msdyncrm_ContactId = "msdyncrm_contactid"; + public const string msdyncrm_customerjourneyid = "msdyncrm_customerjourneyid"; + public const string msdyncrm_emailid = "msdyncrm_emailid"; + public const string msdyncrm_insights_placeholder = "msdyncrm_insights_placeholder"; + public const string msdyncrm_marketingformid = "msdyncrm_marketingformid"; + public const string msdyncrm_marketingpageid = "msdyncrm_marketingpageid"; + public const string msdyncrm_rememberMe = "msdyncrm_rememberme"; + public const string msdyncrm_SegmentMemberId = "msdyncrm_segmentmemberid"; + public const string msemr_ActivityStartDate = "msemr_activitystartdate"; + public const string msemr_Address1PeriodEndDate = "msemr_address1periodenddate"; + public const string msemr_Address1PeriodStartDate = "msemr_address1periodstartdate"; + public const string msemr_Address2PeriodEndDate = "msemr_address2periodenddate"; + public const string msemr_Address2PeriodStartDate = "msemr_address2periodstartdate"; + public const string msemr_Address3PeriodEndDate = "msemr_address3periodenddate"; + public const string msemr_Address3PeriodStartDate = "msemr_address3periodstartdate"; + public const string msemr_Animal = "msemr_animal"; + public const string msemr_AnimalBreed = "msemr_animalbreed"; + public const string msemr_AnimalGenderStatus = "msemr_animalgenderstatus"; + public const string msemr_AnimalSpecies = "msemr_animalspecies"; + public const string msemr_Communication1Language = "msemr_communication1language"; + public const string msemr_Communication1Preferred = "msemr_communication1preferred"; + public const string msemr_Communication2Language = "msemr_communication2language"; + public const string msemr_Communication2Preferred = "msemr_communication2preferred"; + public const string msemr_Contac1tEndDate = "msemr_contac1tenddate"; + public const string msemr_Contac2tEndDate = "msemr_contac2tenddate"; + public const string msemr_Contact1 = "msemr_contact1"; + public const string msemr_Contact1Relationship = "msemr_contact1relationship"; + public const string msemr_Contact1StartDate = "msemr_contact1startdate"; + public const string msemr_Contact2 = "msemr_contact2"; + public const string msemr_Contact2Relationship = "msemr_contact2relationship"; + public const string msemr_Contact2StartDate = "msemr_contact2startdate"; + public const string msemr_ContactType = "msemr_contacttype"; + public const string msemr_DeceasedDate = "msemr_deceaseddate"; + public const string msemr_GeneralPractioner = "msemr_generalpractioner"; + public const string msemr_Link1 = "msemr_link1"; + public const string msemr_Link1Type = "msemr_link1type"; + public const string msemr_Link2 = "msemr_link2"; + public const string msemr_Link2Type = "msemr_link2type"; + public const string msemr_ManagingOrganization = "msemr_managingorganization"; + public const string msemr_MedicalRecordNumber = "msemr_medicalrecordnumber"; + public const string msemr_MultipleBirth = "msemr_multiplebirth"; + public const string msemr_Name1EndDate = "msemr_name1enddate"; + public const string msemr_Name1StartDate = "msemr_name1startdate"; + public const string msemr_Name1Use = "msemr_name1use"; + public const string msemr_Name2 = "msemr_name2"; + public const string msemr_Name2EndDate = "msemr_name2enddate"; + public const string msemr_Name2FamilyName = "msemr_name2familyname"; + public const string msemr_Name2GivenName = "msemr_name2givenname"; + public const string msemr_Name2Prefix = "msemr_name2prefix"; + public const string msemr_Name2StartDate = "msemr_name2startdate"; + public const string msemr_Name2Suffix = "msemr_name2suffix"; + public const string msemr_Name2Use = "msemr_name2use"; + public const string msemr_Name3 = "msemr_name3"; + public const string msemr_Name3FamilyName = "msemr_name3familyname"; + public const string msemr_Name3GivenName = "msemr_name3givenname"; + public const string msemr_Name3NameEndDate = "msemr_name3nameenddate"; + public const string msemr_Name3NameStartDate = "msemr_name3namestartdate"; + public const string msemr_Name3Prefix = "msemr_name3prefix"; + public const string msemr_Name3Suffix = "msemr_name3suffix"; + public const string msemr_Name3Use = "msemr_name3use"; + public const string msemr_Qualification1Identifier = "msemr_qualification1identifier"; + public const string msemr_Qualification1Issuer = "msemr_qualification1issuer"; + public const string msemr_Qualification1PeriodEndDate = "msemr_qualification1periodenddate"; + public const string msemr_Qualification1PeriodStartDate = "msemr_qualification1periodstartdate"; + public const string msemr_Telecom1EndDate = "msemr_telecom1enddate"; + public const string msemr_Telecom1Rank = "msemr_telecom1rank"; + public const string msemr_Telecom1StartDate = "msemr_telecom1startdate"; + public const string msemr_Telecom1System = "msemr_telecom1system"; + public const string msemr_Telecom1Use = "msemr_telecom1use"; + public const string msemr_Telecom2EndDate = "msemr_telecom2enddate"; + public const string msemr_Telecom2Rank = "msemr_telecom2rank"; + public const string msemr_Telecom2StartDate = "msemr_telecom2startdate"; + public const string msemr_Telecom2System = "msemr_telecom2system"; + public const string msemr_Telecom2Use = "msemr_telecom2use"; + public const string msemr_Telecom3EndDate = "msemr_telecom3enddate"; + public const string msemr_Telecom3Rank = "msemr_telecom3rank"; + public const string msemr_Telecom3StartDate = "msemr_telecom3startdate"; + public const string msemr_Telecom3System = "msemr_telecom3system"; + public const string msemr_Telecom3Use = "msemr_telecom3use"; + public const string msevtmgt_aadobjectid = "msevtmgt_aadobjectid"; + public const string msevtmgt_ContactId = "msevtmgt_contactid"; + public const string msevtmgt_originatingeventid = "msevtmgt_originatingeventid"; + public const string msgdpr_consentchangesourceformId = "msgdpr_consentchangesourceformid"; + public const string msgdpr_donottrack = "msgdpr_donottrack"; + public const string msgdpr_gdprconsent = "msgdpr_gdprconsent"; + public const string msgdpr_gdprischild = "msgdpr_gdprischild"; + public const string msgdpr_GDPRParentId = "msgdpr_gdprparentid"; + public const string NickName = "nickname"; + public const string NumberOfChildren = "numberofchildren"; + public const string OnHoldTime = "onholdtime"; + public const string OriginatingLeadId = "originatingleadid"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OwnerId = "ownerid"; + public const string OwningBusinessUnit = "owningbusinessunit"; + public const string OwningTeam = "owningteam"; + public const string OwningUser = "owninguser"; + public const string Pager = "pager"; + public const string ParentContactId = "parentcontactid"; + public const string ParentCustomerId = "parentcustomerid"; + public const string ParticipatesInWorkflow = "participatesinworkflow"; + public const string PaymentTermsCode = "paymenttermscode"; + public const string PreferredAppointmentDayCode = "preferredappointmentdaycode"; + public const string PreferredAppointmentTimeCode = "preferredappointmenttimecode"; + public const string PreferredContactMethodCode = "preferredcontactmethodcode"; + public const string PreferredEquipmentId = "preferredequipmentid"; + public const string PreferredServiceId = "preferredserviceid"; + public const string PreferredSystemUserId = "preferredsystemuserid"; + public const string ProcessId = "processid"; + public const string Salutation = "salutation"; + public const string ShippingMethodCode = "shippingmethodcode"; + public const string SLAId = "slaid"; + public const string SLAInvokedId = "slainvokedid"; + public const string SpousesName = "spousesname"; + public const string StageId = "stageid"; + public const string StateCode = "statecode"; + public const string StatusCode = "statuscode"; + public const string SubscriptionId = "subscriptionid"; + public const string Suffix = "suffix"; + public const string TeamsFollowed = "teamsfollowed"; + public const string Telephone1 = "telephone1"; + public const string Telephone2 = "telephone2"; + public const string Telephone3 = "telephone3"; + public const string TerritoryCode = "territorycode"; + public const string TimeSpentByMeOnEmailAndMeetings = "timespentbymeonemailandmeetings"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string TransactionCurrencyId = "transactioncurrencyid"; + public const string TraversedPath = "traversedpath"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + public const string WebSiteUrl = "websiteurl"; + public const string YomiFirstName = "yomifirstname"; + public const string YomiFullName = "yomifullname"; + public const string YomiLastName = "yomilastname"; + public const string YomiMiddleName = "yomimiddlename"; + } + + /// + /// Default Constructor. + /// + public Contact() : + base(EntityLogicalName) + { + } + + public const string AlternateKeys = "msemr_medicalrecordnumber|crae4_externalkeyid|emailaddress1,firstname,lastname|cr" + + "ae4_externalerkey"; + + public const string EntityLogicalName = "contact"; + + public const string EntitySchemaName = "Contact"; + + public const string PrimaryIdAttribute = "contactid"; + + public const string PrimaryNameAttribute = "fullname"; + + public const string EntityLogicalCollectionName = "contacts"; + + public const string EntitySetName = "contacts"; + + public const int EntityTypeCode = 2; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier of the account with which the contact is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// Select the contact's role within the company or sales process, such as decision maker, employee, or influencer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountrolecode")] + public Microsoft.Xrm.Sdk.OptionSetValue AccountRoleCode + { + get + { + return this.GetAttributeValue("accountrolecode"); + } + set + { + this.OnPropertyChanging("AccountRoleCode"); + this.SetAttributeValue("accountrolecode", value); + this.OnPropertyChanged("AccountRoleCode"); + } + } + + /// + /// Select the contact's role within the company or sales process, such as decision maker, employee, or influencer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountrolecode")] + public virtual Contact_AccountRoleCode? AccountRoleCodeEnum + { + get + { + return ((Contact_AccountRoleCode?)(EntityOptionSetEnum.GetEnum(this, "accountrolecode"))); + } + set + { + this.OnPropertyChanging("AccountRoleCode"); + this.SetAttributeValue("accountrolecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("AccountRoleCode"); + } + } + + /// + /// Unique identifier for address 1. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] + public System.Nullable Address1_AddressId + { + get + { + return this.GetAttributeValue>("address1_addressid"); + } + set + { + this.OnPropertyChanging("Address1_AddressId"); + this.SetAttributeValue("address1_addressid", value); + this.OnPropertyChanged("Address1_AddressId"); + } + } + + /// + /// Select the primary address type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address1_AddressTypeCode + { + get + { + return this.GetAttributeValue("address1_addresstypecode"); + } + set + { + this.OnPropertyChanging("Address1_AddressTypeCode"); + this.SetAttributeValue("address1_addresstypecode", value); + this.OnPropertyChanged("Address1_AddressTypeCode"); + } + } + + /// + /// Select the primary address type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] + public virtual Contact_Address1_AddressTypeCode? Address1_AddressTypeCodeEnum + { + get + { + return ((Contact_Address1_AddressTypeCode?)(EntityOptionSetEnum.GetEnum(this, "address1_addresstypecode"))); + } + set + { + this.OnPropertyChanging("Address1_AddressTypeCode"); + this.SetAttributeValue("address1_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address1_AddressTypeCode"); + } + } + + /// + /// Type the city for the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] + public string Address1_City + { + get + { + return this.GetAttributeValue("address1_city"); + } + set + { + this.OnPropertyChanging("Address1_City"); + this.SetAttributeValue("address1_city", value); + this.OnPropertyChanged("Address1_City"); + } + } + + /// + /// Shows the complete primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_composite")] + public string Address1_Composite + { + get + { + return this.GetAttributeValue("address1_composite"); + } + } + + /// + /// Type the country or region for the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] + public string Address1_Country + { + get + { + return this.GetAttributeValue("address1_country"); + } + set + { + this.OnPropertyChanging("Address1_Country"); + this.SetAttributeValue("address1_country", value); + this.OnPropertyChanged("Address1_Country"); + } + } + + /// + /// Type the county for the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] + public string Address1_County + { + get + { + return this.GetAttributeValue("address1_county"); + } + set + { + this.OnPropertyChanging("Address1_County"); + this.SetAttributeValue("address1_county", value); + this.OnPropertyChanged("Address1_County"); + } + } + + /// + /// Type the fax number associated with the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] + public string Address1_Fax + { + get + { + return this.GetAttributeValue("address1_fax"); + } + set + { + this.OnPropertyChanging("Address1_Fax"); + this.SetAttributeValue("address1_fax", value); + this.OnPropertyChanged("Address1_Fax"); + } + } + + /// + /// Select the freight terms for the primary address to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_freighttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address1_FreightTermsCode + { + get + { + return this.GetAttributeValue("address1_freighttermscode"); + } + set + { + this.OnPropertyChanging("Address1_FreightTermsCode"); + this.SetAttributeValue("address1_freighttermscode", value); + this.OnPropertyChanged("Address1_FreightTermsCode"); + } + } + + /// + /// Select the freight terms for the primary address to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_freighttermscode")] + public virtual Contact_Address1_FreightTermsCode? Address1_FreightTermsCodeEnum + { + get + { + return ((Contact_Address1_FreightTermsCode?)(EntityOptionSetEnum.GetEnum(this, "address1_freighttermscode"))); + } + set + { + this.OnPropertyChanging("Address1_FreightTermsCode"); + this.SetAttributeValue("address1_freighttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address1_FreightTermsCode"); + } + } + + /// + /// Type the latitude value for the primary address for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] + public System.Nullable Address1_Latitude + { + get + { + return this.GetAttributeValue>("address1_latitude"); + } + set + { + this.OnPropertyChanging("Address1_Latitude"); + this.SetAttributeValue("address1_latitude", value); + this.OnPropertyChanged("Address1_Latitude"); + } + } + + /// + /// Type the first line of the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] + public string Address1_Line1 + { + get + { + return this.GetAttributeValue("address1_line1"); + } + set + { + this.OnPropertyChanging("Address1_Line1"); + this.SetAttributeValue("address1_line1", value); + this.OnPropertyChanged("Address1_Line1"); + } + } + + /// + /// Type the second line of the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] + public string Address1_Line2 + { + get + { + return this.GetAttributeValue("address1_line2"); + } + set + { + this.OnPropertyChanging("Address1_Line2"); + this.SetAttributeValue("address1_line2", value); + this.OnPropertyChanged("Address1_Line2"); + } + } + + /// + /// Type the third line of the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] + public string Address1_Line3 + { + get + { + return this.GetAttributeValue("address1_line3"); + } + set + { + this.OnPropertyChanging("Address1_Line3"); + this.SetAttributeValue("address1_line3", value); + this.OnPropertyChanged("Address1_Line3"); + } + } + + /// + /// Type the longitude value for the primary address for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] + public System.Nullable Address1_Longitude + { + get + { + return this.GetAttributeValue>("address1_longitude"); + } + set + { + this.OnPropertyChanging("Address1_Longitude"); + this.SetAttributeValue("address1_longitude", value); + this.OnPropertyChanged("Address1_Longitude"); + } + } + + /// + /// Type a descriptive name for the primary address, such as Corporate Headquarters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] + public string Address1_Name + { + get + { + return this.GetAttributeValue("address1_name"); + } + set + { + this.OnPropertyChanging("Address1_Name"); + this.SetAttributeValue("address1_name", value); + this.OnPropertyChanged("Address1_Name"); + } + } + + /// + /// Type the ZIP Code or postal code for the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] + public string Address1_PostalCode + { + get + { + return this.GetAttributeValue("address1_postalcode"); + } + set + { + this.OnPropertyChanging("Address1_PostalCode"); + this.SetAttributeValue("address1_postalcode", value); + this.OnPropertyChanged("Address1_PostalCode"); + } + } + + /// + /// Type the post office box number of the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] + public string Address1_PostOfficeBox + { + get + { + return this.GetAttributeValue("address1_postofficebox"); + } + set + { + this.OnPropertyChanging("Address1_PostOfficeBox"); + this.SetAttributeValue("address1_postofficebox", value); + this.OnPropertyChanged("Address1_PostOfficeBox"); + } + } + + /// + /// Type the name of the main contact at the account's primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_primarycontactname")] + public string Address1_PrimaryContactName + { + get + { + return this.GetAttributeValue("address1_primarycontactname"); + } + set + { + this.OnPropertyChanging("Address1_PrimaryContactName"); + this.SetAttributeValue("address1_primarycontactname", value); + this.OnPropertyChanged("Address1_PrimaryContactName"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address1_ShippingMethodCode + { + get + { + return this.GetAttributeValue("address1_shippingmethodcode"); + } + set + { + this.OnPropertyChanging("Address1_ShippingMethodCode"); + this.SetAttributeValue("address1_shippingmethodcode", value); + this.OnPropertyChanged("Address1_ShippingMethodCode"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] + public virtual Contact_Address1_ShippingMethodCode? Address1_ShippingMethodCodeEnum + { + get + { + return ((Contact_Address1_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "address1_shippingmethodcode"))); + } + set + { + this.OnPropertyChanging("Address1_ShippingMethodCode"); + this.SetAttributeValue("address1_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address1_ShippingMethodCode"); + } + } + + /// + /// Type the state or province of the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] + public string Address1_StateOrProvince + { + get + { + return this.GetAttributeValue("address1_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address1_StateOrProvince"); + this.SetAttributeValue("address1_stateorprovince", value); + this.OnPropertyChanged("Address1_StateOrProvince"); + } + } + + /// + /// Type the main phone number associated with the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] + public string Address1_Telephone1 + { + get + { + return this.GetAttributeValue("address1_telephone1"); + } + set + { + this.OnPropertyChanging("Address1_Telephone1"); + this.SetAttributeValue("address1_telephone1", value); + this.OnPropertyChanged("Address1_Telephone1"); + } + } + + /// + /// Type a second phone number associated with the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] + public string Address1_Telephone2 + { + get + { + return this.GetAttributeValue("address1_telephone2"); + } + set + { + this.OnPropertyChanging("Address1_Telephone2"); + this.SetAttributeValue("address1_telephone2", value); + this.OnPropertyChanged("Address1_Telephone2"); + } + } + + /// + /// Type a third phone number associated with the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] + public string Address1_Telephone3 + { + get + { + return this.GetAttributeValue("address1_telephone3"); + } + set + { + this.OnPropertyChanging("Address1_Telephone3"); + this.SetAttributeValue("address1_telephone3", value); + this.OnPropertyChanged("Address1_Telephone3"); + } + } + + /// + /// Type the UPS zone of the primary address to make sure shipping charges are calculated correctly and deliveries are made promptly, if shipped by UPS. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] + public string Address1_UPSZone + { + get + { + return this.GetAttributeValue("address1_upszone"); + } + set + { + this.OnPropertyChanging("Address1_UPSZone"); + this.SetAttributeValue("address1_upszone", value); + this.OnPropertyChanged("Address1_UPSZone"); + } + } + + /// + /// Select the time zone, or UTC offset, for this address so that other people can reference it when they contact someone at this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] + public System.Nullable Address1_UTCOffset + { + get + { + return this.GetAttributeValue>("address1_utcoffset"); + } + set + { + this.OnPropertyChanging("Address1_UTCOffset"); + this.SetAttributeValue("address1_utcoffset", value); + this.OnPropertyChanged("Address1_UTCOffset"); + } + } + + /// + /// Unique identifier for address 2. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] + public System.Nullable Address2_AddressId + { + get + { + return this.GetAttributeValue>("address2_addressid"); + } + set + { + this.OnPropertyChanging("Address2_AddressId"); + this.SetAttributeValue("address2_addressid", value); + this.OnPropertyChanged("Address2_AddressId"); + } + } + + /// + /// Select the secondary address type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address2_AddressTypeCode + { + get + { + return this.GetAttributeValue("address2_addresstypecode"); + } + set + { + this.OnPropertyChanging("Address2_AddressTypeCode"); + this.SetAttributeValue("address2_addresstypecode", value); + this.OnPropertyChanged("Address2_AddressTypeCode"); + } + } + + /// + /// Select the secondary address type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] + public virtual Contact_Address2_AddressTypeCode? Address2_AddressTypeCodeEnum + { + get + { + return ((Contact_Address2_AddressTypeCode?)(EntityOptionSetEnum.GetEnum(this, "address2_addresstypecode"))); + } + set + { + this.OnPropertyChanging("Address2_AddressTypeCode"); + this.SetAttributeValue("address2_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address2_AddressTypeCode"); + } + } + + /// + /// Type the city for the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] + public string Address2_City + { + get + { + return this.GetAttributeValue("address2_city"); + } + set + { + this.OnPropertyChanging("Address2_City"); + this.SetAttributeValue("address2_city", value); + this.OnPropertyChanged("Address2_City"); + } + } + + /// + /// Shows the complete secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_composite")] + public string Address2_Composite + { + get + { + return this.GetAttributeValue("address2_composite"); + } + } + + /// + /// Type the country or region for the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] + public string Address2_Country + { + get + { + return this.GetAttributeValue("address2_country"); + } + set + { + this.OnPropertyChanging("Address2_Country"); + this.SetAttributeValue("address2_country", value); + this.OnPropertyChanged("Address2_Country"); + } + } + + /// + /// Type the county for the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] + public string Address2_County + { + get + { + return this.GetAttributeValue("address2_county"); + } + set + { + this.OnPropertyChanging("Address2_County"); + this.SetAttributeValue("address2_county", value); + this.OnPropertyChanged("Address2_County"); + } + } + + /// + /// Type the fax number associated with the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] + public string Address2_Fax + { + get + { + return this.GetAttributeValue("address2_fax"); + } + set + { + this.OnPropertyChanging("Address2_Fax"); + this.SetAttributeValue("address2_fax", value); + this.OnPropertyChanged("Address2_Fax"); + } + } + + /// + /// Select the freight terms for the secondary address to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_freighttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address2_FreightTermsCode + { + get + { + return this.GetAttributeValue("address2_freighttermscode"); + } + set + { + this.OnPropertyChanging("Address2_FreightTermsCode"); + this.SetAttributeValue("address2_freighttermscode", value); + this.OnPropertyChanged("Address2_FreightTermsCode"); + } + } + + /// + /// Select the freight terms for the secondary address to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_freighttermscode")] + public virtual Contact_Address2_FreightTermsCode? Address2_FreightTermsCodeEnum + { + get + { + return ((Contact_Address2_FreightTermsCode?)(EntityOptionSetEnum.GetEnum(this, "address2_freighttermscode"))); + } + set + { + this.OnPropertyChanging("Address2_FreightTermsCode"); + this.SetAttributeValue("address2_freighttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address2_FreightTermsCode"); + } + } + + /// + /// Type the latitude value for the secondary address for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] + public System.Nullable Address2_Latitude + { + get + { + return this.GetAttributeValue>("address2_latitude"); + } + set + { + this.OnPropertyChanging("Address2_Latitude"); + this.SetAttributeValue("address2_latitude", value); + this.OnPropertyChanged("Address2_Latitude"); + } + } + + /// + /// Type the first line of the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] + public string Address2_Line1 + { + get + { + return this.GetAttributeValue("address2_line1"); + } + set + { + this.OnPropertyChanging("Address2_Line1"); + this.SetAttributeValue("address2_line1", value); + this.OnPropertyChanged("Address2_Line1"); + } + } + + /// + /// Type the second line of the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] + public string Address2_Line2 + { + get + { + return this.GetAttributeValue("address2_line2"); + } + set + { + this.OnPropertyChanging("Address2_Line2"); + this.SetAttributeValue("address2_line2", value); + this.OnPropertyChanged("Address2_Line2"); + } + } + + /// + /// Type the third line of the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] + public string Address2_Line3 + { + get + { + return this.GetAttributeValue("address2_line3"); + } + set + { + this.OnPropertyChanging("Address2_Line3"); + this.SetAttributeValue("address2_line3", value); + this.OnPropertyChanged("Address2_Line3"); + } + } + + /// + /// Type the longitude value for the secondary address for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] + public System.Nullable Address2_Longitude + { + get + { + return this.GetAttributeValue>("address2_longitude"); + } + set + { + this.OnPropertyChanging("Address2_Longitude"); + this.SetAttributeValue("address2_longitude", value); + this.OnPropertyChanged("Address2_Longitude"); + } + } + + /// + /// Type a descriptive name for the secondary address, such as Corporate Headquarters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] + public string Address2_Name + { + get + { + return this.GetAttributeValue("address2_name"); + } + set + { + this.OnPropertyChanging("Address2_Name"); + this.SetAttributeValue("address2_name", value); + this.OnPropertyChanged("Address2_Name"); + } + } + + /// + /// Type the ZIP Code or postal code for the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] + public string Address2_PostalCode + { + get + { + return this.GetAttributeValue("address2_postalcode"); + } + set + { + this.OnPropertyChanging("Address2_PostalCode"); + this.SetAttributeValue("address2_postalcode", value); + this.OnPropertyChanged("Address2_PostalCode"); + } + } + + /// + /// Type the post office box number of the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] + public string Address2_PostOfficeBox + { + get + { + return this.GetAttributeValue("address2_postofficebox"); + } + set + { + this.OnPropertyChanging("Address2_PostOfficeBox"); + this.SetAttributeValue("address2_postofficebox", value); + this.OnPropertyChanged("Address2_PostOfficeBox"); + } + } + + /// + /// Type the name of the main contact at the account's secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_primarycontactname")] + public string Address2_PrimaryContactName + { + get + { + return this.GetAttributeValue("address2_primarycontactname"); + } + set + { + this.OnPropertyChanging("Address2_PrimaryContactName"); + this.SetAttributeValue("address2_primarycontactname", value); + this.OnPropertyChanged("Address2_PrimaryContactName"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address2_ShippingMethodCode + { + get + { + return this.GetAttributeValue("address2_shippingmethodcode"); + } + set + { + this.OnPropertyChanging("Address2_ShippingMethodCode"); + this.SetAttributeValue("address2_shippingmethodcode", value); + this.OnPropertyChanged("Address2_ShippingMethodCode"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] + public virtual Contact_Address2_ShippingMethodCode? Address2_ShippingMethodCodeEnum + { + get + { + return ((Contact_Address2_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "address2_shippingmethodcode"))); + } + set + { + this.OnPropertyChanging("Address2_ShippingMethodCode"); + this.SetAttributeValue("address2_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address2_ShippingMethodCode"); + } + } + + /// + /// Type the state or province of the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] + public string Address2_StateOrProvince + { + get + { + return this.GetAttributeValue("address2_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address2_StateOrProvince"); + this.SetAttributeValue("address2_stateorprovince", value); + this.OnPropertyChanged("Address2_StateOrProvince"); + } + } + + /// + /// Type the main phone number associated with the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] + public string Address2_Telephone1 + { + get + { + return this.GetAttributeValue("address2_telephone1"); + } + set + { + this.OnPropertyChanging("Address2_Telephone1"); + this.SetAttributeValue("address2_telephone1", value); + this.OnPropertyChanged("Address2_Telephone1"); + } + } + + /// + /// Type a second phone number associated with the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] + public string Address2_Telephone2 + { + get + { + return this.GetAttributeValue("address2_telephone2"); + } + set + { + this.OnPropertyChanging("Address2_Telephone2"); + this.SetAttributeValue("address2_telephone2", value); + this.OnPropertyChanged("Address2_Telephone2"); + } + } + + /// + /// Type a third phone number associated with the secondary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] + public string Address2_Telephone3 + { + get + { + return this.GetAttributeValue("address2_telephone3"); + } + set + { + this.OnPropertyChanging("Address2_Telephone3"); + this.SetAttributeValue("address2_telephone3", value); + this.OnPropertyChanged("Address2_Telephone3"); + } + } + + /// + /// Type the UPS zone of the secondary address to make sure shipping charges are calculated correctly and deliveries are made promptly, if shipped by UPS. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] + public string Address2_UPSZone + { + get + { + return this.GetAttributeValue("address2_upszone"); + } + set + { + this.OnPropertyChanging("Address2_UPSZone"); + this.SetAttributeValue("address2_upszone", value); + this.OnPropertyChanged("Address2_UPSZone"); + } + } + + /// + /// Select the time zone, or UTC offset, for this address so that other people can reference it when they contact someone at this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] + public System.Nullable Address2_UTCOffset + { + get + { + return this.GetAttributeValue>("address2_utcoffset"); + } + set + { + this.OnPropertyChanging("Address2_UTCOffset"); + this.SetAttributeValue("address2_utcoffset", value); + this.OnPropertyChanged("Address2_UTCOffset"); + } + } + + /// + /// Unique identifier for address 3. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_addressid")] + public System.Nullable Address3_AddressId + { + get + { + return this.GetAttributeValue>("address3_addressid"); + } + set + { + this.OnPropertyChanging("Address3_AddressId"); + this.SetAttributeValue("address3_addressid", value); + this.OnPropertyChanged("Address3_AddressId"); + } + } + + /// + /// Select the third address type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_addresstypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address3_AddressTypeCode + { + get + { + return this.GetAttributeValue("address3_addresstypecode"); + } + set + { + this.OnPropertyChanging("Address3_AddressTypeCode"); + this.SetAttributeValue("address3_addresstypecode", value); + this.OnPropertyChanged("Address3_AddressTypeCode"); + } + } + + /// + /// Select the third address type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_addresstypecode")] + public virtual Contact_Address3_AddressTypeCode? Address3_AddressTypeCodeEnum + { + get + { + return ((Contact_Address3_AddressTypeCode?)(EntityOptionSetEnum.GetEnum(this, "address3_addresstypecode"))); + } + set + { + this.OnPropertyChanging("Address3_AddressTypeCode"); + this.SetAttributeValue("address3_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address3_AddressTypeCode"); + } + } + + /// + /// Type the city for the 3rd address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_city")] + public string Address3_City + { + get + { + return this.GetAttributeValue("address3_city"); + } + set + { + this.OnPropertyChanging("Address3_City"); + this.SetAttributeValue("address3_city", value); + this.OnPropertyChanged("Address3_City"); + } + } + + /// + /// Shows the complete third address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_composite")] + public string Address3_Composite + { + get + { + return this.GetAttributeValue("address3_composite"); + } + } + + /// + /// the country or region for the 3rd address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_country")] + public string Address3_Country + { + get + { + return this.GetAttributeValue("address3_country"); + } + set + { + this.OnPropertyChanging("Address3_Country"); + this.SetAttributeValue("address3_country", value); + this.OnPropertyChanged("Address3_Country"); + } + } + + /// + /// Type the county for the third address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_county")] + public string Address3_County + { + get + { + return this.GetAttributeValue("address3_county"); + } + set + { + this.OnPropertyChanging("Address3_County"); + this.SetAttributeValue("address3_county", value); + this.OnPropertyChanged("Address3_County"); + } + } + + /// + /// Type the fax number associated with the third address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_fax")] + public string Address3_Fax + { + get + { + return this.GetAttributeValue("address3_fax"); + } + set + { + this.OnPropertyChanging("Address3_Fax"); + this.SetAttributeValue("address3_fax", value); + this.OnPropertyChanged("Address3_Fax"); + } + } + + /// + /// Select the freight terms for the third address to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_freighttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address3_FreightTermsCode + { + get + { + return this.GetAttributeValue("address3_freighttermscode"); + } + set + { + this.OnPropertyChanging("Address3_FreightTermsCode"); + this.SetAttributeValue("address3_freighttermscode", value); + this.OnPropertyChanged("Address3_FreightTermsCode"); + } + } + + /// + /// Select the freight terms for the third address to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_freighttermscode")] + public virtual Contact_Address3_FreightTermsCode? Address3_FreightTermsCodeEnum + { + get + { + return ((Contact_Address3_FreightTermsCode?)(EntityOptionSetEnum.GetEnum(this, "address3_freighttermscode"))); + } + set + { + this.OnPropertyChanging("Address3_FreightTermsCode"); + this.SetAttributeValue("address3_freighttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address3_FreightTermsCode"); + } + } + + /// + /// Type the latitude value for the third address for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_latitude")] + public System.Nullable Address3_Latitude + { + get + { + return this.GetAttributeValue>("address3_latitude"); + } + set + { + this.OnPropertyChanging("Address3_Latitude"); + this.SetAttributeValue("address3_latitude", value); + this.OnPropertyChanged("Address3_Latitude"); + } + } + + /// + /// the first line of the 3rd address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_line1")] + public string Address3_Line1 + { + get + { + return this.GetAttributeValue("address3_line1"); + } + set + { + this.OnPropertyChanging("Address3_Line1"); + this.SetAttributeValue("address3_line1", value); + this.OnPropertyChanged("Address3_Line1"); + } + } + + /// + /// the second line of the 3rd address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_line2")] + public string Address3_Line2 + { + get + { + return this.GetAttributeValue("address3_line2"); + } + set + { + this.OnPropertyChanging("Address3_Line2"); + this.SetAttributeValue("address3_line2", value); + this.OnPropertyChanged("Address3_Line2"); + } + } + + /// + /// the third line of the 3rd address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_line3")] + public string Address3_Line3 + { + get + { + return this.GetAttributeValue("address3_line3"); + } + set + { + this.OnPropertyChanging("Address3_Line3"); + this.SetAttributeValue("address3_line3", value); + this.OnPropertyChanged("Address3_Line3"); + } + } + + /// + /// Type the longitude value for the third address for use in mapping and other applications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_longitude")] + public System.Nullable Address3_Longitude + { + get + { + return this.GetAttributeValue>("address3_longitude"); + } + set + { + this.OnPropertyChanging("Address3_Longitude"); + this.SetAttributeValue("address3_longitude", value); + this.OnPropertyChanged("Address3_Longitude"); + } + } + + /// + /// Type a descriptive name for the third address, such as Corporate Headquarters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_name")] + public string Address3_Name + { + get + { + return this.GetAttributeValue("address3_name"); + } + set + { + this.OnPropertyChanging("Address3_Name"); + this.SetAttributeValue("address3_name", value); + this.OnPropertyChanged("Address3_Name"); + } + } + + /// + /// the ZIP Code or postal code for the 3rd address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_postalcode")] + public string Address3_PostalCode + { + get + { + return this.GetAttributeValue("address3_postalcode"); + } + set + { + this.OnPropertyChanging("Address3_PostalCode"); + this.SetAttributeValue("address3_postalcode", value); + this.OnPropertyChanged("Address3_PostalCode"); + } + } + + /// + /// the post office box number of the 3rd address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_postofficebox")] + public string Address3_PostOfficeBox + { + get + { + return this.GetAttributeValue("address3_postofficebox"); + } + set + { + this.OnPropertyChanging("Address3_PostOfficeBox"); + this.SetAttributeValue("address3_postofficebox", value); + this.OnPropertyChanged("Address3_PostOfficeBox"); + } + } + + /// + /// Type the name of the main contact at the account's third address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_primarycontactname")] + public string Address3_PrimaryContactName + { + get + { + return this.GetAttributeValue("address3_primarycontactname"); + } + set + { + this.OnPropertyChanging("Address3_PrimaryContactName"); + this.SetAttributeValue("address3_primarycontactname", value); + this.OnPropertyChanged("Address3_PrimaryContactName"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_shippingmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue Address3_ShippingMethodCode + { + get + { + return this.GetAttributeValue("address3_shippingmethodcode"); + } + set + { + this.OnPropertyChanging("Address3_ShippingMethodCode"); + this.SetAttributeValue("address3_shippingmethodcode", value); + this.OnPropertyChanged("Address3_ShippingMethodCode"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_shippingmethodcode")] + public virtual Contact_Address3_ShippingMethodCode? Address3_ShippingMethodCodeEnum + { + get + { + return ((Contact_Address3_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "address3_shippingmethodcode"))); + } + set + { + this.OnPropertyChanging("Address3_ShippingMethodCode"); + this.SetAttributeValue("address3_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Address3_ShippingMethodCode"); + } + } + + /// + /// the state or province of the third address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_stateorprovince")] + public string Address3_StateOrProvince + { + get + { + return this.GetAttributeValue("address3_stateorprovince"); + } + set + { + this.OnPropertyChanging("Address3_StateOrProvince"); + this.SetAttributeValue("address3_stateorprovince", value); + this.OnPropertyChanged("Address3_StateOrProvince"); + } + } + + /// + /// Type the main phone number associated with the third address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_telephone1")] + public string Address3_Telephone1 + { + get + { + return this.GetAttributeValue("address3_telephone1"); + } + set + { + this.OnPropertyChanging("Address3_Telephone1"); + this.SetAttributeValue("address3_telephone1", value); + this.OnPropertyChanged("Address3_Telephone1"); + } + } + + /// + /// Type a second phone number associated with the third address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_telephone2")] + public string Address3_Telephone2 + { + get + { + return this.GetAttributeValue("address3_telephone2"); + } + set + { + this.OnPropertyChanging("Address3_Telephone2"); + this.SetAttributeValue("address3_telephone2", value); + this.OnPropertyChanged("Address3_Telephone2"); + } + } + + /// + /// Type a third phone number associated with the primary address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_telephone3")] + public string Address3_Telephone3 + { + get + { + return this.GetAttributeValue("address3_telephone3"); + } + set + { + this.OnPropertyChanging("Address3_Telephone3"); + this.SetAttributeValue("address3_telephone3", value); + this.OnPropertyChanged("Address3_Telephone3"); + } + } + + /// + /// Type the UPS zone of the third address to make sure shipping charges are calculated correctly and deliveries are made promptly, if shipped by UPS. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_upszone")] + public string Address3_UPSZone + { + get + { + return this.GetAttributeValue("address3_upszone"); + } + set + { + this.OnPropertyChanging("Address3_UPSZone"); + this.SetAttributeValue("address3_upszone", value); + this.OnPropertyChanged("Address3_UPSZone"); + } + } + + /// + /// Select the time zone, or UTC offset, for this address so that other people can reference it when they contact someone at this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address3_utcoffset")] + public System.Nullable Address3_UTCOffset + { + get + { + return this.GetAttributeValue>("address3_utcoffset"); + } + set + { + this.OnPropertyChanging("Address3_UTCOffset"); + this.SetAttributeValue("address3_utcoffset", value); + this.OnPropertyChanged("Address3_UTCOffset"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_confirmremovepassword")] + public System.Nullable adx_ConfirmRemovePassword + { + get + { + return this.GetAttributeValue>("adx_confirmremovepassword"); + } + set + { + this.OnPropertyChanging("adx_ConfirmRemovePassword"); + this.SetAttributeValue("adx_confirmremovepassword", value); + this.OnPropertyChanged("adx_ConfirmRemovePassword"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_createdbyipaddress")] + public string Adx_CreatedByIPAddress + { + get + { + return this.GetAttributeValue("adx_createdbyipaddress"); + } + set + { + this.OnPropertyChanging("Adx_CreatedByIPAddress"); + this.SetAttributeValue("adx_createdbyipaddress", value); + this.OnPropertyChanged("Adx_CreatedByIPAddress"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_createdbyusername")] + public string Adx_CreatedByUsername + { + get + { + return this.GetAttributeValue("adx_createdbyusername"); + } + set + { + this.OnPropertyChanging("Adx_CreatedByUsername"); + this.SetAttributeValue("adx_createdbyusername", value); + this.OnPropertyChanged("Adx_CreatedByUsername"); + } + } + + /// + /// Shows the current count of failed password attempts for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_identity_accessfailedcount")] + public System.Nullable adx_identity_accessfailedcount + { + get + { + return this.GetAttributeValue>("adx_identity_accessfailedcount"); + } + set + { + this.OnPropertyChanging("adx_identity_accessfailedcount"); + this.SetAttributeValue("adx_identity_accessfailedcount", value); + this.OnPropertyChanged("adx_identity_accessfailedcount"); + } + } + + /// + /// Determines if the email is confirmed by the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_identity_emailaddress1confirmed")] + public System.Nullable adx_identity_emailaddress1confirmed + { + get + { + return this.GetAttributeValue>("adx_identity_emailaddress1confirmed"); + } + set + { + this.OnPropertyChanging("adx_identity_emailaddress1confirmed"); + this.SetAttributeValue("adx_identity_emailaddress1confirmed", value); + this.OnPropertyChanged("adx_identity_emailaddress1confirmed"); + } + } + + /// + /// Indicates the last date and time the user successfully signed in to a portal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_identity_lastsuccessfullogin")] + public System.Nullable adx_identity_lastsuccessfullogin + { + get + { + return this.GetAttributeValue>("adx_identity_lastsuccessfullogin"); + } + set + { + this.OnPropertyChanging("adx_identity_lastsuccessfullogin"); + this.SetAttributeValue("adx_identity_lastsuccessfullogin", value); + this.OnPropertyChanged("adx_identity_lastsuccessfullogin"); + } + } + + /// + /// Indicates that the contact can no longer sign in to the portal using the local account. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_identity_locallogindisabled")] + public System.Nullable adx_identity_locallogindisabled + { + get + { + return this.GetAttributeValue>("adx_identity_locallogindisabled"); + } + set + { + this.OnPropertyChanging("adx_identity_locallogindisabled"); + this.SetAttributeValue("adx_identity_locallogindisabled", value); + this.OnPropertyChanged("adx_identity_locallogindisabled"); + } + } + + /// + /// Determines if this contact will track failed access attempts and become locked after too many failed attempts. To prevent the contact from becoming locked, you can disable this setting. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_identity_lockoutenabled")] + public System.Nullable adx_identity_lockoutenabled + { + get + { + return this.GetAttributeValue>("adx_identity_lockoutenabled"); + } + set + { + this.OnPropertyChanging("adx_identity_lockoutenabled"); + this.SetAttributeValue("adx_identity_lockoutenabled", value); + this.OnPropertyChanged("adx_identity_lockoutenabled"); + } + } + + /// + /// Shows the moment in time when the locked contact becomes unlocked again. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_identity_lockoutenddate")] + public System.Nullable adx_identity_lockoutenddate + { + get + { + return this.GetAttributeValue>("adx_identity_lockoutenddate"); + } + set + { + this.OnPropertyChanging("adx_identity_lockoutenddate"); + this.SetAttributeValue("adx_identity_lockoutenddate", value); + this.OnPropertyChanged("adx_identity_lockoutenddate"); + } + } + + /// + /// Determines if web authentication is enabled for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_identity_logonenabled")] + public System.Nullable adx_identity_logonenabled + { + get + { + return this.GetAttributeValue>("adx_identity_logonenabled"); + } + set + { + this.OnPropertyChanging("adx_identity_logonenabled"); + this.SetAttributeValue("adx_identity_logonenabled", value); + this.OnPropertyChanged("adx_identity_logonenabled"); + } + } + + /// + /// Determines if the phone number is confirmed by the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_identity_mobilephoneconfirmed")] + public System.Nullable adx_identity_mobilephoneconfirmed + { + get + { + return this.GetAttributeValue>("adx_identity_mobilephoneconfirmed"); + } + set + { + this.OnPropertyChanging("adx_identity_mobilephoneconfirmed"); + this.SetAttributeValue("adx_identity_mobilephoneconfirmed", value); + this.OnPropertyChanged("adx_identity_mobilephoneconfirmed"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_identity_newpassword")] + public string adx_identity_newpassword + { + get + { + return this.GetAttributeValue("adx_identity_newpassword"); + } + set + { + this.OnPropertyChanging("adx_identity_newpassword"); + this.SetAttributeValue("adx_identity_newpassword", value); + this.OnPropertyChanged("adx_identity_newpassword"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_identity_passwordhash")] + public string adx_identity_passwordhash + { + get + { + return this.GetAttributeValue("adx_identity_passwordhash"); + } + set + { + this.OnPropertyChanging("adx_identity_passwordhash"); + this.SetAttributeValue("adx_identity_passwordhash", value); + this.OnPropertyChanged("adx_identity_passwordhash"); + } + } + + /// + /// A token used to manage the web authentication session. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_identity_securitystamp")] + public string adx_identity_securitystamp + { + get + { + return this.GetAttributeValue("adx_identity_securitystamp"); + } + set + { + this.OnPropertyChanging("adx_identity_securitystamp"); + this.SetAttributeValue("adx_identity_securitystamp", value); + this.OnPropertyChanged("adx_identity_securitystamp"); + } + } + + /// + /// Determines if two-factor authentication is enabled for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_identity_twofactorenabled")] + public System.Nullable adx_identity_twofactorenabled + { + get + { + return this.GetAttributeValue>("adx_identity_twofactorenabled"); + } + set + { + this.OnPropertyChanging("adx_identity_twofactorenabled"); + this.SetAttributeValue("adx_identity_twofactorenabled", value); + this.OnPropertyChanged("adx_identity_twofactorenabled"); + } + } + + /// + /// Shows the user identity for local web authentication. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_identity_username")] + public string adx_identity_username + { + get + { + return this.GetAttributeValue("adx_identity_username"); + } + set + { + this.OnPropertyChanging("adx_identity_username"); + this.SetAttributeValue("adx_identity_username", value); + this.OnPropertyChanged("adx_identity_username"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_modifiedbyipaddress")] + public string Adx_ModifiedByIPAddress + { + get + { + return this.GetAttributeValue("adx_modifiedbyipaddress"); + } + set + { + this.OnPropertyChanging("Adx_ModifiedByIPAddress"); + this.SetAttributeValue("adx_modifiedbyipaddress", value); + this.OnPropertyChanged("Adx_ModifiedByIPAddress"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_modifiedbyusername")] + public string Adx_ModifiedByUsername + { + get + { + return this.GetAttributeValue("adx_modifiedbyusername"); + } + set + { + this.OnPropertyChanging("Adx_ModifiedByUsername"); + this.SetAttributeValue("adx_modifiedbyusername", value); + this.OnPropertyChanged("Adx_ModifiedByUsername"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_organizationname")] + public string Adx_OrganizationName + { + get + { + return this.GetAttributeValue("adx_organizationname"); + } + set + { + this.OnPropertyChanging("Adx_OrganizationName"); + this.SetAttributeValue("adx_organizationname", value); + this.OnPropertyChanged("Adx_OrganizationName"); + } + } + + /// + /// User’s preferred portal language + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_preferredlanguageid")] + public Microsoft.Xrm.Sdk.EntityReference adx_preferredlanguageid + { + get + { + return this.GetAttributeValue("adx_preferredlanguageid"); + } + set + { + this.OnPropertyChanging("adx_preferredlanguageid"); + this.SetAttributeValue("adx_preferredlanguageid", value); + this.OnPropertyChanged("adx_preferredlanguageid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_profilealert")] + public System.Nullable adx_profilealert + { + get + { + return this.GetAttributeValue>("adx_profilealert"); + } + set + { + this.OnPropertyChanging("adx_profilealert"); + this.SetAttributeValue("adx_profilealert", value); + this.OnPropertyChanged("adx_profilealert"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_profilealertdate")] + public System.Nullable adx_profilealertdate + { + get + { + return this.GetAttributeValue>("adx_profilealertdate"); + } + set + { + this.OnPropertyChanging("adx_profilealertdate"); + this.SetAttributeValue("adx_profilealertdate", value); + this.OnPropertyChanged("adx_profilealertdate"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_profilealertinstructions")] + public string adx_profilealertinstructions + { + get + { + return this.GetAttributeValue("adx_profilealertinstructions"); + } + set + { + this.OnPropertyChanging("adx_profilealertinstructions"); + this.SetAttributeValue("adx_profilealertinstructions", value); + this.OnPropertyChanged("adx_profilealertinstructions"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_profileisanonymous")] + public System.Nullable Adx_ProfileIsAnonymous + { + get + { + return this.GetAttributeValue>("adx_profileisanonymous"); + } + set + { + this.OnPropertyChanging("Adx_ProfileIsAnonymous"); + this.SetAttributeValue("adx_profileisanonymous", value); + this.OnPropertyChanged("Adx_ProfileIsAnonymous"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_profilelastactivity")] + public System.Nullable Adx_ProfileLastActivity + { + get + { + return this.GetAttributeValue>("adx_profilelastactivity"); + } + set + { + this.OnPropertyChanging("Adx_ProfileLastActivity"); + this.SetAttributeValue("adx_profilelastactivity", value); + this.OnPropertyChanged("Adx_ProfileLastActivity"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_profilemodifiedon")] + public System.Nullable adx_profilemodifiedon + { + get + { + return this.GetAttributeValue>("adx_profilemodifiedon"); + } + set + { + this.OnPropertyChanging("adx_profilemodifiedon"); + this.SetAttributeValue("adx_profilemodifiedon", value); + this.OnPropertyChanged("adx_profilemodifiedon"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_publicprofilecopy")] + public string adx_PublicProfileCopy + { + get + { + return this.GetAttributeValue("adx_publicprofilecopy"); + } + set + { + this.OnPropertyChanging("adx_PublicProfileCopy"); + this.SetAttributeValue("adx_publicprofilecopy", value); + this.OnPropertyChanged("adx_PublicProfileCopy"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("adx_timezone")] + public System.Nullable Adx_TimeZone + { + get + { + return this.GetAttributeValue>("adx_timezone"); + } + set + { + this.OnPropertyChanging("Adx_TimeZone"); + this.SetAttributeValue("adx_timezone", value); + this.OnPropertyChanged("Adx_TimeZone"); + } + } + + /// + /// For system use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("aging30")] + public Microsoft.Xrm.Sdk.Money Aging30 + { + get + { + return this.GetAttributeValue("aging30"); + } + } + + /// + /// Shows the Aging 30 field converted to the system's default base currency. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("aging30_base")] + public Microsoft.Xrm.Sdk.Money Aging30_Base + { + get + { + return this.GetAttributeValue("aging30_base"); + } + } + + /// + /// For system use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("aging60")] + public Microsoft.Xrm.Sdk.Money Aging60 + { + get + { + return this.GetAttributeValue("aging60"); + } + } + + /// + /// Shows the Aging 60 field converted to the system's default base currency. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("aging60_base")] + public Microsoft.Xrm.Sdk.Money Aging60_Base + { + get + { + return this.GetAttributeValue("aging60_base"); + } + } + + /// + /// For system use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("aging90")] + public Microsoft.Xrm.Sdk.Money Aging90 + { + get + { + return this.GetAttributeValue("aging90"); + } + } + + /// + /// Shows the Aging 90 field converted to the system's default base currency. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("aging90_base")] + public Microsoft.Xrm.Sdk.Money Aging90_Base + { + get + { + return this.GetAttributeValue("aging90_base"); + } + } + + /// + /// Enter the date of the contact's wedding or service anniversary for use in customer gift programs or other communications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("anniversary")] + public System.Nullable Anniversary + { + get + { + return this.GetAttributeValue>("anniversary"); + } + set + { + this.OnPropertyChanging("Anniversary"); + this.SetAttributeValue("anniversary", value); + this.OnPropertyChanged("Anniversary"); + } + } + + /// + /// Type the contact's annual income for use in profiling and financial analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("annualincome")] + public Microsoft.Xrm.Sdk.Money AnnualIncome + { + get + { + return this.GetAttributeValue("annualincome"); + } + set + { + this.OnPropertyChanging("AnnualIncome"); + this.SetAttributeValue("annualincome", value); + this.OnPropertyChanged("AnnualIncome"); + } + } + + /// + /// Shows the Annual Income field converted to the system's default base currency. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("annualincome_base")] + public Microsoft.Xrm.Sdk.Money AnnualIncome_Base + { + get + { + return this.GetAttributeValue("annualincome_base"); + } + } + + /// + /// Type the name of the contact's assistant. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("assistantname")] + public string AssistantName + { + get + { + return this.GetAttributeValue("assistantname"); + } + set + { + this.OnPropertyChanging("AssistantName"); + this.SetAttributeValue("assistantname", value); + this.OnPropertyChanged("AssistantName"); + } + } + + /// + /// Type the phone number for the contact's assistant. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("assistantphone")] + public string AssistantPhone + { + get + { + return this.GetAttributeValue("assistantphone"); + } + set + { + this.OnPropertyChanging("AssistantPhone"); + this.SetAttributeValue("assistantphone", value); + this.OnPropertyChanged("AssistantPhone"); + } + } + + /// + /// Enter the contact's birthday for use in customer gift programs or other communications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("birthdate")] + public System.Nullable BirthDate + { + get + { + return this.GetAttributeValue>("birthdate"); + } + set + { + this.OnPropertyChanging("BirthDate"); + this.SetAttributeValue("birthdate", value); + this.OnPropertyChanged("BirthDate"); + } + } + + /// + /// Type a second business phone number for this contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("business2")] + public string Business2 + { + get + { + return this.GetAttributeValue("business2"); + } + set + { + this.OnPropertyChanging("Business2"); + this.SetAttributeValue("business2", value); + this.OnPropertyChanged("Business2"); + } + } + + /// + /// Stores Image of the Business Card + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businesscard")] + public string BusinessCard + { + get + { + return this.GetAttributeValue("businesscard"); + } + set + { + this.OnPropertyChanging("BusinessCard"); + this.SetAttributeValue("businesscard", value); + this.OnPropertyChanged("BusinessCard"); + } + } + + /// + /// Stores Business Card Control Properties. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businesscardattributes")] + public string BusinessCardAttributes + { + get + { + return this.GetAttributeValue("businesscardattributes"); + } + set + { + this.OnPropertyChanging("BusinessCardAttributes"); + this.SetAttributeValue("businesscardattributes", value); + this.OnPropertyChanged("BusinessCardAttributes"); + } + } + + /// + /// Type a callback phone number for this contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("callback")] + public string Callback + { + get + { + return this.GetAttributeValue("callback"); + } + set + { + this.OnPropertyChanging("Callback"); + this.SetAttributeValue("callback", value); + this.OnPropertyChanged("Callback"); + } + } + + /// + /// Type the names of the contact's children for reference in communications and client programs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("childrensnames")] + public string ChildrensNames + { + get + { + return this.GetAttributeValue("childrensnames"); + } + set + { + this.OnPropertyChanging("ChildrensNames"); + this.SetAttributeValue("childrensnames", value); + this.OnPropertyChanged("ChildrensNames"); + } + } + + /// + /// Type the company phone of the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("company")] + public string Company + { + get + { + return this.GetAttributeValue("company"); + } + set + { + this.OnPropertyChanging("Company"); + this.SetAttributeValue("company", value); + this.OnPropertyChanged("Company"); + } + } + + /// + /// Unique identifier of the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public System.Nullable ContactId + { + get + { + return this.GetAttributeValue>("contactid"); + } + set + { + this.OnPropertyChanging("ContactId"); + this.SetAttributeValue("contactid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ContactId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ContactId = value; + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("crae4_externalerkey")] + public Microsoft.Xrm.Sdk.EntityReference crae4_externalERKey + { + get + { + return this.GetAttributeValue("crae4_externalerkey"); + } + set + { + this.OnPropertyChanging("crae4_externalERKey"); + this.SetAttributeValue("crae4_externalerkey", value); + this.OnPropertyChanged("crae4_externalERKey"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("crae4_externalkeyid")] + public string crae4_externalKeyId + { + get + { + return this.GetAttributeValue("crae4_externalkeyid"); + } + set + { + this.OnPropertyChanging("crae4_externalKeyId"); + this.SetAttributeValue("crae4_externalkeyid", value); + this.OnPropertyChanged("crae4_externalKeyId"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the external party who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyexternalparty")] + public Microsoft.Xrm.Sdk.EntityReference CreatedByExternalParty + { + get + { + return this.GetAttributeValue("createdbyexternalparty"); + } + } + + /// + /// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics 365 options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Shows who created the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + set + { + this.OnPropertyChanging("CreatedOnBehalfBy"); + this.SetAttributeValue("createdonbehalfby", value); + this.OnPropertyChanged("CreatedOnBehalfBy"); + } + } + + /// + /// Type the credit limit of the contact for reference when you address invoice and accounting issues with the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("creditlimit")] + public Microsoft.Xrm.Sdk.Money CreditLimit + { + get + { + return this.GetAttributeValue("creditlimit"); + } + set + { + this.OnPropertyChanging("CreditLimit"); + this.SetAttributeValue("creditlimit", value); + this.OnPropertyChanged("CreditLimit"); + } + } + + /// + /// Shows the Credit Limit field converted to the system's default base currency for reporting purposes. The calculations use the exchange rate specified in the Currencies area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("creditlimit_base")] + public Microsoft.Xrm.Sdk.Money CreditLimit_Base + { + get + { + return this.GetAttributeValue("creditlimit_base"); + } + } + + /// + /// Select whether the contact is on a credit hold, for reference when addressing invoice and accounting issues. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("creditonhold")] + public System.Nullable CreditOnHold + { + get + { + return this.GetAttributeValue>("creditonhold"); + } + set + { + this.OnPropertyChanging("CreditOnHold"); + this.SetAttributeValue("creditonhold", value); + this.OnPropertyChanged("CreditOnHold"); + } + } + + /// + /// Select the size of the contact's company for segmentation and reporting purposes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customersizecode")] + public Microsoft.Xrm.Sdk.OptionSetValue CustomerSizeCode + { + get + { + return this.GetAttributeValue("customersizecode"); + } + set + { + this.OnPropertyChanging("CustomerSizeCode"); + this.SetAttributeValue("customersizecode", value); + this.OnPropertyChanged("CustomerSizeCode"); + } + } + + /// + /// Select the size of the contact's company for segmentation and reporting purposes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customersizecode")] + public virtual Contact_CustomerSizeCode? CustomerSizeCodeEnum + { + get + { + return ((Contact_CustomerSizeCode?)(EntityOptionSetEnum.GetEnum(this, "customersizecode"))); + } + set + { + this.OnPropertyChanging("CustomerSizeCode"); + this.SetAttributeValue("customersizecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("CustomerSizeCode"); + } + } + + /// + /// Select the category that best describes the relationship between the contact and your organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customertypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue CustomerTypeCode + { + get + { + return this.GetAttributeValue("customertypecode"); + } + set + { + this.OnPropertyChanging("CustomerTypeCode"); + this.SetAttributeValue("customertypecode", value); + this.OnPropertyChanged("CustomerTypeCode"); + } + } + + /// + /// Select the category that best describes the relationship between the contact and your organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customertypecode")] + public virtual Contact_CustomerTypeCode? CustomerTypeCodeEnum + { + get + { + return ((Contact_CustomerTypeCode?)(EntityOptionSetEnum.GetEnum(this, "customertypecode"))); + } + set + { + this.OnPropertyChanging("CustomerTypeCode"); + this.SetAttributeValue("customertypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("CustomerTypeCode"); + } + } + + /// + /// Choose the default price list associated with the contact to make sure the correct product prices for this customer are applied in sales opportunities, quotes, and orders. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultpricelevelid")] + public Microsoft.Xrm.Sdk.EntityReference DefaultPriceLevelId + { + get + { + return this.GetAttributeValue("defaultpricelevelid"); + } + set + { + this.OnPropertyChanging("DefaultPriceLevelId"); + this.SetAttributeValue("defaultpricelevelid", value); + this.OnPropertyChanged("DefaultPriceLevelId"); + } + } + + /// + /// Type the department or business unit where the contact works in the parent company or business. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("department")] + public string Department + { + get + { + return this.GetAttributeValue("department"); + } + set + { + this.OnPropertyChanging("Department"); + this.SetAttributeValue("department", value); + this.OnPropertyChanged("Department"); + } + } + + /// + /// Type additional information to describe the contact, such as an excerpt from the company's website. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Select whether the contact accepts bulk email sent through marketing campaigns or quick campaigns. If Do Not Allow is selected, the contact can be added to marketing lists, but will be excluded from the email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotbulkemail")] + public System.Nullable DoNotBulkEMail + { + get + { + return this.GetAttributeValue>("donotbulkemail"); + } + set + { + this.OnPropertyChanging("DoNotBulkEMail"); + this.SetAttributeValue("donotbulkemail", value); + this.OnPropertyChanged("DoNotBulkEMail"); + } + } + + /// + /// Select whether the contact accepts bulk postal mail sent through marketing campaigns or quick campaigns. If Do Not Allow is selected, the contact can be added to marketing lists, but will be excluded from the letters. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotbulkpostalmail")] + public System.Nullable DoNotBulkPostalMail + { + get + { + return this.GetAttributeValue>("donotbulkpostalmail"); + } + set + { + this.OnPropertyChanging("DoNotBulkPostalMail"); + this.SetAttributeValue("donotbulkpostalmail", value); + this.OnPropertyChanged("DoNotBulkPostalMail"); + } + } + + /// + /// Select whether the contact allows direct email sent from Microsoft Dynamics 365. If Do Not Allow is selected, Microsoft Dynamics 365 will not send the email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotemail")] + public System.Nullable DoNotEMail + { + get + { + return this.GetAttributeValue>("donotemail"); + } + set + { + this.OnPropertyChanging("DoNotEMail"); + this.SetAttributeValue("donotemail", value); + this.OnPropertyChanged("DoNotEMail"); + } + } + + /// + /// Select whether the contact allows faxes. If Do Not Allow is selected, the contact will be excluded from any fax activities distributed in marketing campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotfax")] + public System.Nullable DoNotFax + { + get + { + return this.GetAttributeValue>("donotfax"); + } + set + { + this.OnPropertyChanging("DoNotFax"); + this.SetAttributeValue("donotfax", value); + this.OnPropertyChanged("DoNotFax"); + } + } + + /// + /// Select whether the contact accepts phone calls. If Do Not Allow is selected, the contact will be excluded from any phone call activities distributed in marketing campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotphone")] + public System.Nullable DoNotPhone + { + get + { + return this.GetAttributeValue>("donotphone"); + } + set + { + this.OnPropertyChanging("DoNotPhone"); + this.SetAttributeValue("donotphone", value); + this.OnPropertyChanged("DoNotPhone"); + } + } + + /// + /// Select whether the contact allows direct mail. If Do Not Allow is selected, the contact will be excluded from letter activities distributed in marketing campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotpostalmail")] + public System.Nullable DoNotPostalMail + { + get + { + return this.GetAttributeValue>("donotpostalmail"); + } + set + { + this.OnPropertyChanging("DoNotPostalMail"); + this.SetAttributeValue("donotpostalmail", value); + this.OnPropertyChanged("DoNotPostalMail"); + } + } + + /// + /// Select whether the contact accepts marketing materials, such as brochures or catalogs. Contacts that opt out can be excluded from marketing initiatives. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("donotsendmm")] + public System.Nullable DoNotSendMM + { + get + { + return this.GetAttributeValue>("donotsendmm"); + } + set + { + this.OnPropertyChanging("DoNotSendMM"); + this.SetAttributeValue("donotsendmm", value); + this.OnPropertyChanged("DoNotSendMM"); + } + } + + /// + /// Select the contact's highest level of education for use in segmentation and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("educationcode")] + public Microsoft.Xrm.Sdk.OptionSetValue EducationCode + { + get + { + return this.GetAttributeValue("educationcode"); + } + set + { + this.OnPropertyChanging("EducationCode"); + this.SetAttributeValue("educationcode", value); + this.OnPropertyChanged("EducationCode"); + } + } + + /// + /// Select the contact's highest level of education for use in segmentation and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("educationcode")] + public virtual Contact_EducationCode? EducationCodeEnum + { + get + { + return ((Contact_EducationCode?)(EntityOptionSetEnum.GetEnum(this, "educationcode"))); + } + set + { + this.OnPropertyChanging("EducationCode"); + this.SetAttributeValue("educationcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("EducationCode"); + } + } + + /// + /// Type the primary email address for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress1")] + public string EMailAddress1 + { + get + { + return this.GetAttributeValue("emailaddress1"); + } + set + { + this.OnPropertyChanging("EMailAddress1"); + this.SetAttributeValue("emailaddress1", value); + this.OnPropertyChanged("EMailAddress1"); + } + } + + /// + /// Type the secondary email address for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress2")] + public string EMailAddress2 + { + get + { + return this.GetAttributeValue("emailaddress2"); + } + set + { + this.OnPropertyChanging("EMailAddress2"); + this.SetAttributeValue("emailaddress2", value); + this.OnPropertyChanged("EMailAddress2"); + } + } + + /// + /// Type an alternate email address for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress3")] + public string EMailAddress3 + { + get + { + return this.GetAttributeValue("emailaddress3"); + } + set + { + this.OnPropertyChanging("EMailAddress3"); + this.SetAttributeValue("emailaddress3", value); + this.OnPropertyChanged("EMailAddress3"); + } + } + + /// + /// Type the employee ID or number for the contact for reference in orders, service cases, or other communications with the contact's organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("employeeid")] + public string EmployeeId + { + get + { + return this.GetAttributeValue("employeeid"); + } + set + { + this.OnPropertyChanging("EmployeeId"); + this.SetAttributeValue("employeeid", value); + this.OnPropertyChanged("EmployeeId"); + } + } + + /// + /// Shows the default image for the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] + public byte[] EntityImage + { + get + { + return this.GetAttributeValue("entityimage"); + } + set + { + this.OnPropertyChanging("EntityImage"); + this.SetAttributeValue("entityimage", value); + this.OnPropertyChanged("EntityImage"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] + public System.Nullable EntityImage_Timestamp + { + get + { + return this.GetAttributeValue>("entityimage_timestamp"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] + public string EntityImage_URL + { + get + { + return this.GetAttributeValue("entityimage_url"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Shows the conversion rate of the record's currency. The exchange rate is used to convert all money fields in the record from the local currency to the system's default currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Identifier for an external user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("externaluseridentifier")] + public string ExternalUserIdentifier + { + get + { + return this.GetAttributeValue("externaluseridentifier"); + } + set + { + this.OnPropertyChanging("ExternalUserIdentifier"); + this.SetAttributeValue("externaluseridentifier", value); + this.OnPropertyChanged("ExternalUserIdentifier"); + } + } + + /// + /// Select the marital status of the contact for reference in follow-up phone calls and other communications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("familystatuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue FamilyStatusCode + { + get + { + return this.GetAttributeValue("familystatuscode"); + } + set + { + this.OnPropertyChanging("FamilyStatusCode"); + this.SetAttributeValue("familystatuscode", value); + this.OnPropertyChanged("FamilyStatusCode"); + } + } + + /// + /// Select the marital status of the contact for reference in follow-up phone calls and other communications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("familystatuscode")] + public virtual Contact_FamilyStatusCode? FamilyStatusCodeEnum + { + get + { + return ((Contact_FamilyStatusCode?)(EntityOptionSetEnum.GetEnum(this, "familystatuscode"))); + } + set + { + this.OnPropertyChanging("FamilyStatusCode"); + this.SetAttributeValue("familystatuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("FamilyStatusCode"); + } + } + + /// + /// Type the fax number for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fax")] + public string Fax + { + get + { + return this.GetAttributeValue("fax"); + } + set + { + this.OnPropertyChanging("Fax"); + this.SetAttributeValue("fax", value); + this.OnPropertyChanged("Fax"); + } + } + + /// + /// Type the contact's first name to make sure the contact is addressed correctly in sales calls, email, and marketing campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("firstname")] + public string FirstName + { + get + { + return this.GetAttributeValue("firstname"); + } + set + { + this.OnPropertyChanging("FirstName"); + this.SetAttributeValue("firstname", value); + this.OnPropertyChanged("FirstName"); + } + } + + /// + /// Information about whether to allow following email activity like opens, attachment views and link clicks for emails sent to the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("followemail")] + public System.Nullable FollowEmail + { + get + { + return this.GetAttributeValue>("followemail"); + } + set + { + this.OnPropertyChanging("FollowEmail"); + this.SetAttributeValue("followemail", value); + this.OnPropertyChanged("FollowEmail"); + } + } + + /// + /// Type the URL for the contact's FTP site to enable users to access data and share documents. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ftpsiteurl")] + public string FtpSiteUrl + { + get + { + return this.GetAttributeValue("ftpsiteurl"); + } + set + { + this.OnPropertyChanging("FtpSiteUrl"); + this.SetAttributeValue("ftpsiteurl", value); + this.OnPropertyChanged("FtpSiteUrl"); + } + } + + /// + /// Combines and shows the contact's first and last names so that the full name can be displayed in views and reports. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fullname")] + public string FullName + { + get + { + return this.GetAttributeValue("fullname"); + } + } + + /// + /// Select the contact's gender to make sure the contact is addressed correctly in sales calls, email, and marketing campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("gendercode")] + public Microsoft.Xrm.Sdk.OptionSetValue GenderCode + { + get + { + return this.GetAttributeValue("gendercode"); + } + set + { + this.OnPropertyChanging("GenderCode"); + this.SetAttributeValue("gendercode", value); + this.OnPropertyChanged("GenderCode"); + } + } + + /// + /// Select the contact's gender to make sure the contact is addressed correctly in sales calls, email, and marketing campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("gendercode")] + public virtual Contact_GenderCode? GenderCodeEnum + { + get + { + return ((Contact_GenderCode?)(EntityOptionSetEnum.GetEnum(this, "gendercode"))); + } + set + { + this.OnPropertyChanging("GenderCode"); + this.SetAttributeValue("gendercode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("GenderCode"); + } + } + + /// + /// Type the passport number or other government ID for the contact for use in documents or reports. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("governmentid")] + public string GovernmentId + { + get + { + return this.GetAttributeValue("governmentid"); + } + set + { + this.OnPropertyChanging("GovernmentId"); + this.SetAttributeValue("governmentid", value); + this.OnPropertyChanged("GovernmentId"); + } + } + + /// + /// Select whether the contact has any children for reference in follow-up phone calls and other communications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("haschildrencode")] + public Microsoft.Xrm.Sdk.OptionSetValue HasChildrenCode + { + get + { + return this.GetAttributeValue("haschildrencode"); + } + set + { + this.OnPropertyChanging("HasChildrenCode"); + this.SetAttributeValue("haschildrencode", value); + this.OnPropertyChanged("HasChildrenCode"); + } + } + + /// + /// Select whether the contact has any children for reference in follow-up phone calls and other communications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("haschildrencode")] + public virtual Contact_HasChildrenCode? HasChildrenCodeEnum + { + get + { + return ((Contact_HasChildrenCode?)(EntityOptionSetEnum.GetEnum(this, "haschildrencode"))); + } + set + { + this.OnPropertyChanging("HasChildrenCode"); + this.SetAttributeValue("haschildrencode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("HasChildrenCode"); + } + } + + /// + /// Type a second home phone number for this contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("home2")] + public string Home2 + { + get + { + return this.GetAttributeValue("home2"); + } + set + { + this.OnPropertyChanging("Home2"); + this.SetAttributeValue("home2", value); + this.OnPropertyChanged("Home2"); + } + } + + /// + /// Unique identifier of the data import or data migration that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Select whether the contact exists in a separate accounting or other system, such as Microsoft Dynamics GP or another ERP database, for use in integration processes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isbackofficecustomer")] + public System.Nullable IsBackofficeCustomer + { + get + { + return this.GetAttributeValue>("isbackofficecustomer"); + } + set + { + this.OnPropertyChanging("IsBackofficeCustomer"); + this.SetAttributeValue("isbackofficecustomer", value); + this.OnPropertyChanged("IsBackofficeCustomer"); + } + } + + /// + /// Type the job title of the contact to make sure the contact is addressed correctly in sales calls, email, and marketing campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("jobtitle")] + public string JobTitle + { + get + { + return this.GetAttributeValue("jobtitle"); + } + set + { + this.OnPropertyChanging("JobTitle"); + this.SetAttributeValue("jobtitle", value); + this.OnPropertyChanged("JobTitle"); + } + } + + /// + /// Type the contact's last name to make sure the contact is addressed correctly in sales calls, email, and marketing campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastname")] + public string LastName + { + get + { + return this.GetAttributeValue("lastname"); + } + set + { + this.OnPropertyChanging("LastName"); + this.SetAttributeValue("lastname", value); + this.OnPropertyChanged("LastName"); + } + } + + /// + /// Contains the date and time stamp of the last on hold time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastonholdtime")] + public System.Nullable LastOnHoldTime + { + get + { + return this.GetAttributeValue>("lastonholdtime"); + } + set + { + this.OnPropertyChanging("LastOnHoldTime"); + this.SetAttributeValue("lastonholdtime", value); + this.OnPropertyChanged("LastOnHoldTime"); + } + } + + /// + /// Shows the date when the contact was last included in a marketing campaign or quick campaign. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastusedincampaign")] + public System.Nullable LastUsedInCampaign + { + get + { + return this.GetAttributeValue>("lastusedincampaign"); + } + set + { + this.OnPropertyChanging("LastUsedInCampaign"); + this.SetAttributeValue("lastusedincampaign", value); + this.OnPropertyChanged("LastUsedInCampaign"); + } + } + + /// + /// Select the primary marketing source that directed the contact to your organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadsourcecode")] + public Microsoft.Xrm.Sdk.OptionSetValue LeadSourceCode + { + get + { + return this.GetAttributeValue("leadsourcecode"); + } + set + { + this.OnPropertyChanging("LeadSourceCode"); + this.SetAttributeValue("leadsourcecode", value); + this.OnPropertyChanged("LeadSourceCode"); + } + } + + /// + /// Select the primary marketing source that directed the contact to your organization. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leadsourcecode")] + public virtual Contact_LeadSourceCode? LeadSourceCodeEnum + { + get + { + return ((Contact_LeadSourceCode?)(EntityOptionSetEnum.GetEnum(this, "leadsourcecode"))); + } + set + { + this.OnPropertyChanging("LeadSourceCode"); + this.SetAttributeValue("leadsourcecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("LeadSourceCode"); + } + } + + /// + /// Type the name of the contact's manager for use in escalating issues or other follow-up communications with the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("managername")] + public string ManagerName + { + get + { + return this.GetAttributeValue("managername"); + } + set + { + this.OnPropertyChanging("ManagerName"); + this.SetAttributeValue("managername", value); + this.OnPropertyChanged("ManagerName"); + } + } + + /// + /// Type the phone number for the contact's manager. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("managerphone")] + public string ManagerPhone + { + get + { + return this.GetAttributeValue("managerphone"); + } + set + { + this.OnPropertyChanging("ManagerPhone"); + this.SetAttributeValue("managerphone", value); + this.OnPropertyChanged("ManagerPhone"); + } + } + + /// + /// Whether is only for marketing + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("marketingonly")] + public System.Nullable MarketingOnly + { + get + { + return this.GetAttributeValue>("marketingonly"); + } + set + { + this.OnPropertyChanging("MarketingOnly"); + this.SetAttributeValue("marketingonly", value); + this.OnPropertyChanged("MarketingOnly"); + } + } + + /// + /// Unique identifier of the master contact for merge. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("masterid")] + public Microsoft.Xrm.Sdk.EntityReference MasterId + { + get + { + return this.GetAttributeValue("masterid"); + } + } + + /// + /// Shows whether the account has been merged with a master contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("merged")] + public System.Nullable Merged + { + get + { + return this.GetAttributeValue>("merged"); + } + } + + /// + /// Type the contact's middle name or initial to make sure the contact is addressed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("middlename")] + public string MiddleName + { + get + { + return this.GetAttributeValue("middlename"); + } + set + { + this.OnPropertyChanging("MiddleName"); + this.SetAttributeValue("middlename", value); + this.OnPropertyChanged("MiddleName"); + } + } + + /// + /// Type the mobile phone number for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("mobilephone")] + public string MobilePhone + { + get + { + return this.GetAttributeValue("mobilephone"); + } + set + { + this.OnPropertyChanging("MobilePhone"); + this.SetAttributeValue("mobilephone", value); + this.OnPropertyChanged("MobilePhone"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Shows the external party who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyexternalparty")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedByExternalParty + { + get + { + return this.GetAttributeValue("modifiedbyexternalparty"); + } + } + + /// + /// Shows the date and time when the record was last updated. The date and time are displayed in the time zone selected in Microsoft Dynamics 365 options. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Shows who last updated the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + set + { + this.OnPropertyChanging("ModifiedOnBehalfBy"); + this.SetAttributeValue("modifiedonbehalfby", value); + this.OnPropertyChanged("ModifiedOnBehalfBy"); + } + } + + /// + /// Unique identifier for Account associated with Contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msa_managingpartnerid")] + public Microsoft.Xrm.Sdk.EntityReference msa_managingpartnerid + { + get + { + return this.GetAttributeValue("msa_managingpartnerid"); + } + set + { + this.OnPropertyChanging("msa_managingpartnerid"); + this.SetAttributeValue("msa_managingpartnerid", value); + this.OnPropertyChanged("msa_managingpartnerid"); + } + } + + /// + /// Indicates that the contact has opted out of web tracking. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_disablewebtracking")] + public System.Nullable msdyn_disablewebtracking + { + get + { + return this.GetAttributeValue>("msdyn_disablewebtracking"); + } + set + { + this.OnPropertyChanging("msdyn_disablewebtracking"); + this.SetAttributeValue("msdyn_disablewebtracking", value); + this.OnPropertyChanged("msdyn_disablewebtracking"); + } + } + + /// + /// Describes whether contact is opted out or not + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_gdproptout")] + public System.Nullable msdyn_gdproptout + { + get + { + return this.GetAttributeValue>("msdyn_gdproptout"); + } + set + { + this.OnPropertyChanging("msdyn_gdproptout"); + this.SetAttributeValue("msdyn_gdproptout", value); + this.OnPropertyChanged("msdyn_gdproptout"); + } + } + + /// + /// Indicates that the contact is considered a minor in their jurisdiction. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isminor")] + public System.Nullable msdyn_isminor + { + get + { + return this.GetAttributeValue>("msdyn_isminor"); + } + set + { + this.OnPropertyChanging("msdyn_isminor"); + this.SetAttributeValue("msdyn_isminor", value); + this.OnPropertyChanged("msdyn_isminor"); + } + } + + /// + /// Indicates that the contact is considered a minor in their jurisdiction and has parental consent. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_isminorwithparentalconsent")] + public System.Nullable msdyn_isminorwithparentalconsent + { + get + { + return this.GetAttributeValue>("msdyn_isminorwithparentalconsent"); + } + set + { + this.OnPropertyChanging("msdyn_isminorwithparentalconsent"); + this.SetAttributeValue("msdyn_isminorwithparentalconsent", value); + this.OnPropertyChanged("msdyn_isminorwithparentalconsent"); + } + } + + /// + /// Whether or not the contact belongs to the associated account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_orgchangestatus")] + public Microsoft.Xrm.Sdk.OptionSetValue msdyn_orgchangestatus + { + get + { + return this.GetAttributeValue("msdyn_orgchangestatus"); + } + set + { + this.OnPropertyChanging("msdyn_orgchangestatus"); + this.SetAttributeValue("msdyn_orgchangestatus", value); + this.OnPropertyChanged("msdyn_orgchangestatus"); + } + } + + /// + /// Whether or not the contact belongs to the associated account + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_orgchangestatus")] + public virtual Contact_msdyn_orgchangestatus? msdyn_orgchangestatusEnum + { + get + { + return ((Contact_msdyn_orgchangestatus?)(EntityOptionSetEnum.GetEnum(this, "msdyn_orgchangestatus"))); + } + set + { + this.OnPropertyChanging("msdyn_orgchangestatus"); + this.SetAttributeValue("msdyn_orgchangestatus", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msdyn_orgchangestatus"); + } + } + + /// + /// Indicates the date and time that the person agreed to the portal terms and conditions. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_portaltermsagreementdate")] + public System.Nullable msdyn_portaltermsagreementdate + { + get + { + return this.GetAttributeValue>("msdyn_portaltermsagreementdate"); + } + set + { + this.OnPropertyChanging("msdyn_portaltermsagreementdate"); + this.SetAttributeValue("msdyn_portaltermsagreementdate", value); + this.OnPropertyChanged("msdyn_portaltermsagreementdate"); + } + } + + /// + /// Unique identifier for Quick Send Email associated with Contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyncrm_contactid")] + public Microsoft.Xrm.Sdk.EntityReference msdyncrm_ContactId + { + get + { + return this.GetAttributeValue("msdyncrm_contactid"); + } + set + { + this.OnPropertyChanging("msdyncrm_ContactId"); + this.SetAttributeValue("msdyncrm_contactid", value); + this.OnPropertyChanged("msdyncrm_ContactId"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyncrm_customerjourneyid")] + public Microsoft.Xrm.Sdk.EntityReference msdyncrm_customerjourneyid + { + get + { + return this.GetAttributeValue("msdyncrm_customerjourneyid"); + } + set + { + this.OnPropertyChanging("msdyncrm_customerjourneyid"); + this.SetAttributeValue("msdyncrm_customerjourneyid", value); + this.OnPropertyChanged("msdyncrm_customerjourneyid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyncrm_emailid")] + public Microsoft.Xrm.Sdk.EntityReference msdyncrm_emailid + { + get + { + return this.GetAttributeValue("msdyncrm_emailid"); + } + set + { + this.OnPropertyChanging("msdyncrm_emailid"); + this.SetAttributeValue("msdyncrm_emailid", value); + this.OnPropertyChanged("msdyncrm_emailid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyncrm_insights_placeholder")] + public string msdyncrm_insights_placeholder + { + get + { + return this.GetAttributeValue("msdyncrm_insights_placeholder"); + } + set + { + this.OnPropertyChanging("msdyncrm_insights_placeholder"); + this.SetAttributeValue("msdyncrm_insights_placeholder", value); + this.OnPropertyChanged("msdyncrm_insights_placeholder"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyncrm_marketingformid")] + public Microsoft.Xrm.Sdk.EntityReference msdyncrm_marketingformid + { + get + { + return this.GetAttributeValue("msdyncrm_marketingformid"); + } + set + { + this.OnPropertyChanging("msdyncrm_marketingformid"); + this.SetAttributeValue("msdyncrm_marketingformid", value); + this.OnPropertyChanged("msdyncrm_marketingformid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyncrm_marketingpageid")] + public Microsoft.Xrm.Sdk.EntityReference msdyncrm_marketingpageid + { + get + { + return this.GetAttributeValue("msdyncrm_marketingpageid"); + } + set + { + this.OnPropertyChanging("msdyncrm_marketingpageid"); + this.SetAttributeValue("msdyncrm_marketingpageid", value); + this.OnPropertyChanged("msdyncrm_marketingpageid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyncrm_rememberme")] + public System.Nullable msdyncrm_rememberMe + { + get + { + return this.GetAttributeValue>("msdyncrm_rememberme"); + } + set + { + this.OnPropertyChanging("msdyncrm_rememberMe"); + this.SetAttributeValue("msdyncrm_rememberme", value); + this.OnPropertyChanged("msdyncrm_rememberMe"); + } + } + + /// + /// Unique identifier for Segment associated with Contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyncrm_segmentmemberid")] + public Microsoft.Xrm.Sdk.EntityReference msdyncrm_SegmentMemberId + { + get + { + return this.GetAttributeValue("msdyncrm_segmentmemberid"); + } + set + { + this.OnPropertyChanging("msdyncrm_SegmentMemberId"); + this.SetAttributeValue("msdyncrm_segmentmemberid", value); + this.OnPropertyChanged("msdyncrm_SegmentMemberId"); + } + } + + /// + /// The date on which first activity occurred + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_activitystartdate")] + public System.Nullable msemr_ActivityStartDate + { + get + { + return this.GetAttributeValue>("msemr_activitystartdate"); + } + set + { + this.OnPropertyChanging("msemr_ActivityStartDate"); + this.SetAttributeValue("msemr_activitystartdate", value); + this.OnPropertyChanged("msemr_ActivityStartDate"); + } + } + + /// + /// Time period when address was/is in use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_address1periodenddate")] + public System.Nullable msemr_Address1PeriodEndDate + { + get + { + return this.GetAttributeValue>("msemr_address1periodenddate"); + } + set + { + this.OnPropertyChanging("msemr_Address1PeriodEndDate"); + this.SetAttributeValue("msemr_address1periodenddate", value); + this.OnPropertyChanged("msemr_Address1PeriodEndDate"); + } + } + + /// + /// Time period when address was/is in use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_address1periodstartdate")] + public System.Nullable msemr_Address1PeriodStartDate + { + get + { + return this.GetAttributeValue>("msemr_address1periodstartdate"); + } + set + { + this.OnPropertyChanging("msemr_Address1PeriodStartDate"); + this.SetAttributeValue("msemr_address1periodstartdate", value); + this.OnPropertyChanged("msemr_Address1PeriodStartDate"); + } + } + + /// + /// Time period when address was/is in use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_address2periodenddate")] + public System.Nullable msemr_Address2PeriodEndDate + { + get + { + return this.GetAttributeValue>("msemr_address2periodenddate"); + } + set + { + this.OnPropertyChanging("msemr_Address2PeriodEndDate"); + this.SetAttributeValue("msemr_address2periodenddate", value); + this.OnPropertyChanged("msemr_Address2PeriodEndDate"); + } + } + + /// + /// Time period when address was/is in use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_address2periodstartdate")] + public System.Nullable msemr_Address2PeriodStartDate + { + get + { + return this.GetAttributeValue>("msemr_address2periodstartdate"); + } + set + { + this.OnPropertyChanging("msemr_Address2PeriodStartDate"); + this.SetAttributeValue("msemr_address2periodstartdate", value); + this.OnPropertyChanged("msemr_Address2PeriodStartDate"); + } + } + + /// + /// Time period when address was/is in use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_address3periodenddate")] + public System.Nullable msemr_Address3PeriodEndDate + { + get + { + return this.GetAttributeValue>("msemr_address3periodenddate"); + } + set + { + this.OnPropertyChanging("msemr_Address3PeriodEndDate"); + this.SetAttributeValue("msemr_address3periodenddate", value); + this.OnPropertyChanged("msemr_Address3PeriodEndDate"); + } + } + + /// + /// Time period when address was/is in use. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_address3periodstartdate")] + public System.Nullable msemr_Address3PeriodStartDate + { + get + { + return this.GetAttributeValue>("msemr_address3periodstartdate"); + } + set + { + this.OnPropertyChanging("msemr_Address3PeriodStartDate"); + this.SetAttributeValue("msemr_address3periodstartdate", value); + this.OnPropertyChanged("msemr_Address3PeriodStartDate"); + } + } + + /// + /// This patient is known to be an animal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_animal")] + public System.Nullable msemr_Animal + { + get + { + return this.GetAttributeValue>("msemr_animal"); + } + set + { + this.OnPropertyChanging("msemr_Animal"); + this.SetAttributeValue("msemr_animal", value); + this.OnPropertyChanged("msemr_Animal"); + } + } + + /// + /// Identifies the detailed categorization of the kind of animal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_animalbreed")] + public Microsoft.Xrm.Sdk.EntityReference msemr_AnimalBreed + { + get + { + return this.GetAttributeValue("msemr_animalbreed"); + } + set + { + this.OnPropertyChanging("msemr_AnimalBreed"); + this.SetAttributeValue("msemr_animalbreed", value); + this.OnPropertyChanged("msemr_AnimalBreed"); + } + } + + /// + /// Indicates the current state of the animal's reproductive organs. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_animalgenderstatus")] + public Microsoft.Xrm.Sdk.EntityReference msemr_AnimalGenderStatus + { + get + { + return this.GetAttributeValue("msemr_animalgenderstatus"); + } + set + { + this.OnPropertyChanging("msemr_AnimalGenderStatus"); + this.SetAttributeValue("msemr_animalgenderstatus", value); + this.OnPropertyChanged("msemr_AnimalGenderStatus"); + } + } + + /// + /// Identifies the high level taxonomic categorization of the kind of animal. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_animalspecies")] + public Microsoft.Xrm.Sdk.EntityReference msemr_AnimalSpecies + { + get + { + return this.GetAttributeValue("msemr_animalspecies"); + } + set + { + this.OnPropertyChanging("msemr_AnimalSpecies"); + this.SetAttributeValue("msemr_animalspecies", value); + this.OnPropertyChanged("msemr_AnimalSpecies"); + } + } + + /// + /// Primary Language of the patient. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_communication1language")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Communication1Language + { + get + { + return this.GetAttributeValue("msemr_communication1language"); + } + set + { + this.OnPropertyChanging("msemr_Communication1Language"); + this.SetAttributeValue("msemr_communication1language", value); + this.OnPropertyChanged("msemr_Communication1Language"); + } + } + + /// + /// If Primary Language is preferred. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_communication1preferred")] + public System.Nullable msemr_Communication1Preferred + { + get + { + return this.GetAttributeValue>("msemr_communication1preferred"); + } + set + { + this.OnPropertyChanging("msemr_Communication1Preferred"); + this.SetAttributeValue("msemr_communication1preferred", value); + this.OnPropertyChanged("msemr_Communication1Preferred"); + } + } + + /// + /// Secondary Language of the patient. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_communication2language")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Communication2Language + { + get + { + return this.GetAttributeValue("msemr_communication2language"); + } + set + { + this.OnPropertyChanging("msemr_Communication2Language"); + this.SetAttributeValue("msemr_communication2language", value); + this.OnPropertyChanged("msemr_Communication2Language"); + } + } + + /// + /// If Secondary Language is preferred. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_communication2preferred")] + public System.Nullable msemr_Communication2Preferred + { + get + { + return this.GetAttributeValue>("msemr_communication2preferred"); + } + set + { + this.OnPropertyChanging("msemr_Communication2Preferred"); + this.SetAttributeValue("msemr_communication2preferred", value); + this.OnPropertyChanged("msemr_Communication2Preferred"); + } + } + + /// + /// Time period for this contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_contac1tenddate")] + public System.Nullable msemr_Contac1tEndDate + { + get + { + return this.GetAttributeValue>("msemr_contac1tenddate"); + } + set + { + this.OnPropertyChanging("msemr_Contac1tEndDate"); + this.SetAttributeValue("msemr_contac1tenddate", value); + this.OnPropertyChanged("msemr_Contac1tEndDate"); + } + } + + /// + /// Time period for this contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_contac2tenddate")] + public System.Nullable msemr_Contac2tEndDate + { + get + { + return this.GetAttributeValue>("msemr_contac2tenddate"); + } + set + { + this.OnPropertyChanging("msemr_Contac2tEndDate"); + this.SetAttributeValue("msemr_contac2tenddate", value); + this.OnPropertyChanged("msemr_Contac2tEndDate"); + } + } + + /// + /// A contact party (e.g. guardian, partner, friend) for the patient. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_contact1")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Contact1 + { + get + { + return this.GetAttributeValue("msemr_contact1"); + } + set + { + this.OnPropertyChanging("msemr_Contact1"); + this.SetAttributeValue("msemr_contact1", value); + this.OnPropertyChanged("msemr_Contact1"); + } + } + + /// + /// The nature of the relationship between the patient and the contact person. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_contact1relationship")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Contact1Relationship + { + get + { + return this.GetAttributeValue("msemr_contact1relationship"); + } + set + { + this.OnPropertyChanging("msemr_Contact1Relationship"); + this.SetAttributeValue("msemr_contact1relationship", value); + this.OnPropertyChanged("msemr_Contact1Relationship"); + } + } + + /// + /// Time period for this contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_contact1startdate")] + public System.Nullable msemr_Contact1StartDate + { + get + { + return this.GetAttributeValue>("msemr_contact1startdate"); + } + set + { + this.OnPropertyChanging("msemr_Contact1StartDate"); + this.SetAttributeValue("msemr_contact1startdate", value); + this.OnPropertyChanged("msemr_Contact1StartDate"); + } + } + + /// + /// A contact party (e.g. guardian, partner, friend) for the patient. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_contact2")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Contact2 + { + get + { + return this.GetAttributeValue("msemr_contact2"); + } + set + { + this.OnPropertyChanging("msemr_Contact2"); + this.SetAttributeValue("msemr_contact2", value); + this.OnPropertyChanged("msemr_Contact2"); + } + } + + /// + /// The nature of the relationship between the patient and the contact person. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_contact2relationship")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Contact2Relationship + { + get + { + return this.GetAttributeValue("msemr_contact2relationship"); + } + set + { + this.OnPropertyChanging("msemr_Contact2Relationship"); + this.SetAttributeValue("msemr_contact2relationship", value); + this.OnPropertyChanged("msemr_Contact2Relationship"); + } + } + + /// + /// Time period for this contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_contact2startdate")] + public System.Nullable msemr_Contact2StartDate + { + get + { + return this.GetAttributeValue>("msemr_contact2startdate"); + } + set + { + this.OnPropertyChanging("msemr_Contact2StartDate"); + this.SetAttributeValue("msemr_contact2startdate", value); + this.OnPropertyChanged("msemr_Contact2StartDate"); + } + } + + /// + /// Type of contact, either Patient, Practitioner or Related Person + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_contacttype")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_ContactType + { + get + { + return this.GetAttributeValue("msemr_contacttype"); + } + set + { + this.OnPropertyChanging("msemr_ContactType"); + this.SetAttributeValue("msemr_contacttype", value); + this.OnPropertyChanged("msemr_ContactType"); + } + } + + /// + /// Type of contact, either Patient, Practitioner or Related Person + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_contacttype")] + public virtual Contact_msemr_ContactType? msemr_ContactTypeEnum + { + get + { + return ((Contact_msemr_ContactType?)(EntityOptionSetEnum.GetEnum(this, "msemr_contacttype"))); + } + set + { + this.OnPropertyChanging("msemr_ContactType"); + this.SetAttributeValue("msemr_contacttype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_ContactType"); + } + } + + /// + /// Indicates if the individual is deceased or not. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_deceaseddate")] + public System.Nullable msemr_DeceasedDate + { + get + { + return this.GetAttributeValue>("msemr_deceaseddate"); + } + set + { + this.OnPropertyChanging("msemr_DeceasedDate"); + this.SetAttributeValue("msemr_deceaseddate", value); + this.OnPropertyChanged("msemr_DeceasedDate"); + } + } + + /// + /// Patient's nominated care provider. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_generalpractioner")] + public Microsoft.Xrm.Sdk.EntityReference msemr_GeneralPractioner + { + get + { + return this.GetAttributeValue("msemr_generalpractioner"); + } + set + { + this.OnPropertyChanging("msemr_GeneralPractioner"); + this.SetAttributeValue("msemr_generalpractioner", value); + this.OnPropertyChanged("msemr_GeneralPractioner"); + } + } + + /// + /// Link to another patient resource that concerns the same actual patient. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_link1")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Link1 + { + get + { + return this.GetAttributeValue("msemr_link1"); + } + set + { + this.OnPropertyChanging("msemr_Link1"); + this.SetAttributeValue("msemr_link1", value); + this.OnPropertyChanged("msemr_Link1"); + } + } + + /// + /// The type of link between this patient resource and another patient resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_link1type")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Link1Type + { + get + { + return this.GetAttributeValue("msemr_link1type"); + } + set + { + this.OnPropertyChanging("msemr_Link1Type"); + this.SetAttributeValue("msemr_link1type", value); + this.OnPropertyChanged("msemr_Link1Type"); + } + } + + /// + /// Link to another patient resource that concerns the same actual patient. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_link2")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Link2 + { + get + { + return this.GetAttributeValue("msemr_link2"); + } + set + { + this.OnPropertyChanging("msemr_Link2"); + this.SetAttributeValue("msemr_link2", value); + this.OnPropertyChanged("msemr_Link2"); + } + } + + /// + /// The type of link between this patient resource and another patient resource. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_link2type")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Link2Type + { + get + { + return this.GetAttributeValue("msemr_link2type"); + } + set + { + this.OnPropertyChanging("msemr_Link2Type"); + this.SetAttributeValue("msemr_link2type", value); + this.OnPropertyChanged("msemr_Link2Type"); + } + } + + /// + /// Organization that is the custodian of the patient record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_managingorganization")] + public Microsoft.Xrm.Sdk.EntityReference msemr_ManagingOrganization + { + get + { + return this.GetAttributeValue("msemr_managingorganization"); + } + set + { + this.OnPropertyChanging("msemr_ManagingOrganization"); + this.SetAttributeValue("msemr_managingorganization", value); + this.OnPropertyChanged("msemr_ManagingOrganization"); + } + } + + /// + /// An identifier for this patient. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_medicalrecordnumber")] + public string msemr_MedicalRecordNumber + { + get + { + return this.GetAttributeValue("msemr_medicalrecordnumber"); + } + set + { + this.OnPropertyChanging("msemr_MedicalRecordNumber"); + this.SetAttributeValue("msemr_medicalrecordnumber", value); + this.OnPropertyChanged("msemr_MedicalRecordNumber"); + } + } + + /// + /// Indicates the actual birth order (integer). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_multiplebirth")] + public System.Nullable msemr_MultipleBirth + { + get + { + return this.GetAttributeValue>("msemr_multiplebirth"); + } + set + { + this.OnPropertyChanging("msemr_MultipleBirth"); + this.SetAttributeValue("msemr_multiplebirth", value); + this.OnPropertyChanged("msemr_MultipleBirth"); + } + } + + /// + /// End time of validity of name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name1enddate")] + public System.Nullable msemr_Name1EndDate + { + get + { + return this.GetAttributeValue>("msemr_name1enddate"); + } + set + { + this.OnPropertyChanging("msemr_Name1EndDate"); + this.SetAttributeValue("msemr_name1enddate", value); + this.OnPropertyChanged("msemr_Name1EndDate"); + } + } + + /// + /// Start time of validity of name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name1startdate")] + public System.Nullable msemr_Name1StartDate + { + get + { + return this.GetAttributeValue>("msemr_name1startdate"); + } + set + { + this.OnPropertyChanging("msemr_Name1StartDate"); + this.SetAttributeValue("msemr_name1startdate", value); + this.OnPropertyChanged("msemr_Name1StartDate"); + } + } + + /// + /// The use of a human name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name1use")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Name1Use + { + get + { + return this.GetAttributeValue("msemr_name1use"); + } + set + { + this.OnPropertyChanging("msemr_Name1Use"); + this.SetAttributeValue("msemr_name1use", value); + this.OnPropertyChanged("msemr_Name1Use"); + } + } + + /// + /// The use of a human name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name1use")] + public virtual msemr_nameuse? msemr_Name1UseEnum + { + get + { + return ((msemr_nameuse?)(EntityOptionSetEnum.GetEnum(this, "msemr_name1use"))); + } + set + { + this.OnPropertyChanging("msemr_Name1Use"); + this.SetAttributeValue("msemr_name1use", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Name1Use"); + } + } + + /// + /// A name associated with the individual. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name2")] + public string msemr_Name2 + { + get + { + return this.GetAttributeValue("msemr_name2"); + } + set + { + this.OnPropertyChanging("msemr_Name2"); + this.SetAttributeValue("msemr_name2", value); + this.OnPropertyChanged("msemr_Name2"); + } + } + + /// + /// End time of validity of name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name2enddate")] + public System.Nullable msemr_Name2EndDate + { + get + { + return this.GetAttributeValue>("msemr_name2enddate"); + } + set + { + this.OnPropertyChanging("msemr_Name2EndDate"); + this.SetAttributeValue("msemr_name2enddate", value); + this.OnPropertyChanged("msemr_Name2EndDate"); + } + } + + /// + /// Family name (often called 'Surname'). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name2familyname")] + public string msemr_Name2FamilyName + { + get + { + return this.GetAttributeValue("msemr_name2familyname"); + } + set + { + this.OnPropertyChanging("msemr_Name2FamilyName"); + this.SetAttributeValue("msemr_name2familyname", value); + this.OnPropertyChanged("msemr_Name2FamilyName"); + } + } + + /// + /// Given names (not always 'first'). Includes middle names. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name2givenname")] + public string msemr_Name2GivenName + { + get + { + return this.GetAttributeValue("msemr_name2givenname"); + } + set + { + this.OnPropertyChanging("msemr_Name2GivenName"); + this.SetAttributeValue("msemr_name2givenname", value); + this.OnPropertyChanged("msemr_Name2GivenName"); + } + } + + /// + /// Parts that come before the name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name2prefix")] + public string msemr_Name2Prefix + { + get + { + return this.GetAttributeValue("msemr_name2prefix"); + } + set + { + this.OnPropertyChanging("msemr_Name2Prefix"); + this.SetAttributeValue("msemr_name2prefix", value); + this.OnPropertyChanged("msemr_Name2Prefix"); + } + } + + /// + /// Start time of validity of name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name2startdate")] + public System.Nullable msemr_Name2StartDate + { + get + { + return this.GetAttributeValue>("msemr_name2startdate"); + } + set + { + this.OnPropertyChanging("msemr_Name2StartDate"); + this.SetAttributeValue("msemr_name2startdate", value); + this.OnPropertyChanged("msemr_Name2StartDate"); + } + } + + /// + /// Parts that come after the name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name2suffix")] + public string msemr_Name2Suffix + { + get + { + return this.GetAttributeValue("msemr_name2suffix"); + } + set + { + this.OnPropertyChanging("msemr_Name2Suffix"); + this.SetAttributeValue("msemr_name2suffix", value); + this.OnPropertyChanged("msemr_Name2Suffix"); + } + } + + /// + /// The use of a human name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name2use")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Name2Use + { + get + { + return this.GetAttributeValue("msemr_name2use"); + } + set + { + this.OnPropertyChanging("msemr_Name2Use"); + this.SetAttributeValue("msemr_name2use", value); + this.OnPropertyChanged("msemr_Name2Use"); + } + } + + /// + /// The use of a human name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name2use")] + public virtual msemr_nameuse? msemr_Name2UseEnum + { + get + { + return ((msemr_nameuse?)(EntityOptionSetEnum.GetEnum(this, "msemr_name2use"))); + } + set + { + this.OnPropertyChanging("msemr_Name2Use"); + this.SetAttributeValue("msemr_name2use", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Name2Use"); + } + } + + /// + /// A name associated with the individual. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name3")] + public string msemr_Name3 + { + get + { + return this.GetAttributeValue("msemr_name3"); + } + set + { + this.OnPropertyChanging("msemr_Name3"); + this.SetAttributeValue("msemr_name3", value); + this.OnPropertyChanged("msemr_Name3"); + } + } + + /// + /// Family name (often called 'Surname'). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name3familyname")] + public string msemr_Name3FamilyName + { + get + { + return this.GetAttributeValue("msemr_name3familyname"); + } + set + { + this.OnPropertyChanging("msemr_Name3FamilyName"); + this.SetAttributeValue("msemr_name3familyname", value); + this.OnPropertyChanged("msemr_Name3FamilyName"); + } + } + + /// + /// Given names (not always 'first'). Includes middle names. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name3givenname")] + public string msemr_Name3GivenName + { + get + { + return this.GetAttributeValue("msemr_name3givenname"); + } + set + { + this.OnPropertyChanging("msemr_Name3GivenName"); + this.SetAttributeValue("msemr_name3givenname", value); + this.OnPropertyChanged("msemr_Name3GivenName"); + } + } + + /// + /// End time of validity of name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name3nameenddate")] + public System.Nullable msemr_Name3NameEndDate + { + get + { + return this.GetAttributeValue>("msemr_name3nameenddate"); + } + set + { + this.OnPropertyChanging("msemr_Name3NameEndDate"); + this.SetAttributeValue("msemr_name3nameenddate", value); + this.OnPropertyChanged("msemr_Name3NameEndDate"); + } + } + + /// + /// Start time of validity of name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name3namestartdate")] + public System.Nullable msemr_Name3NameStartDate + { + get + { + return this.GetAttributeValue>("msemr_name3namestartdate"); + } + set + { + this.OnPropertyChanging("msemr_Name3NameStartDate"); + this.SetAttributeValue("msemr_name3namestartdate", value); + this.OnPropertyChanged("msemr_Name3NameStartDate"); + } + } + + /// + /// Parts that come before the name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name3prefix")] + public string msemr_Name3Prefix + { + get + { + return this.GetAttributeValue("msemr_name3prefix"); + } + set + { + this.OnPropertyChanging("msemr_Name3Prefix"); + this.SetAttributeValue("msemr_name3prefix", value); + this.OnPropertyChanged("msemr_Name3Prefix"); + } + } + + /// + /// Parts that come after the name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name3suffix")] + public string msemr_Name3Suffix + { + get + { + return this.GetAttributeValue("msemr_name3suffix"); + } + set + { + this.OnPropertyChanging("msemr_Name3Suffix"); + this.SetAttributeValue("msemr_name3suffix", value); + this.OnPropertyChanged("msemr_Name3Suffix"); + } + } + + /// + /// The use of a human name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name3use")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Name3Use + { + get + { + return this.GetAttributeValue("msemr_name3use"); + } + set + { + this.OnPropertyChanging("msemr_Name3Use"); + this.SetAttributeValue("msemr_name3use", value); + this.OnPropertyChanged("msemr_Name3Use"); + } + } + + /// + /// The use of a human name. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_name3use")] + public virtual msemr_nameuse? msemr_Name3UseEnum + { + get + { + return ((msemr_nameuse?)(EntityOptionSetEnum.GetEnum(this, "msemr_name3use"))); + } + set + { + this.OnPropertyChanging("msemr_Name3Use"); + this.SetAttributeValue("msemr_name3use", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Name3Use"); + } + } + + /// + /// An identifier for this qualification for the practitioner. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_qualification1identifier")] + public string msemr_Qualification1Identifier + { + get + { + return this.GetAttributeValue("msemr_qualification1identifier"); + } + set + { + this.OnPropertyChanging("msemr_Qualification1Identifier"); + this.SetAttributeValue("msemr_qualification1identifier", value); + this.OnPropertyChanged("msemr_Qualification1Identifier"); + } + } + + /// + /// Organization that regulates and issues the qualification. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_qualification1issuer")] + public Microsoft.Xrm.Sdk.EntityReference msemr_Qualification1Issuer + { + get + { + return this.GetAttributeValue("msemr_qualification1issuer"); + } + set + { + this.OnPropertyChanging("msemr_Qualification1Issuer"); + this.SetAttributeValue("msemr_qualification1issuer", value); + this.OnPropertyChanged("msemr_Qualification1Issuer"); + } + } + + /// + /// Qualification Expiry Date. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_qualification1periodenddate")] + public System.Nullable msemr_Qualification1PeriodEndDate + { + get + { + return this.GetAttributeValue>("msemr_qualification1periodenddate"); + } + set + { + this.OnPropertyChanging("msemr_Qualification1PeriodEndDate"); + this.SetAttributeValue("msemr_qualification1periodenddate", value); + this.OnPropertyChanged("msemr_Qualification1PeriodEndDate"); + } + } + + /// + /// Qualification Issue Date. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_qualification1periodstartdate")] + public System.Nullable msemr_Qualification1PeriodStartDate + { + get + { + return this.GetAttributeValue>("msemr_qualification1periodstartdate"); + } + set + { + this.OnPropertyChanging("msemr_Qualification1PeriodStartDate"); + this.SetAttributeValue("msemr_qualification1periodstartdate", value); + this.OnPropertyChanged("msemr_Qualification1PeriodStartDate"); + } + } + + /// + /// End time of validity of telecom. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1enddate")] + public System.Nullable msemr_Telecom1EndDate + { + get + { + return this.GetAttributeValue>("msemr_telecom1enddate"); + } + set + { + this.OnPropertyChanging("msemr_Telecom1EndDate"); + this.SetAttributeValue("msemr_telecom1enddate", value); + this.OnPropertyChanged("msemr_Telecom1EndDate"); + } + } + + /// + /// Specify preferred order of use (1 = highest). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1rank")] + public System.Nullable msemr_Telecom1Rank + { + get + { + return this.GetAttributeValue>("msemr_telecom1rank"); + } + set + { + this.OnPropertyChanging("msemr_Telecom1Rank"); + this.SetAttributeValue("msemr_telecom1rank", value); + this.OnPropertyChanged("msemr_Telecom1Rank"); + } + } + + /// + /// Start time of validity of telecom. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1startdate")] + public System.Nullable msemr_Telecom1StartDate + { + get + { + return this.GetAttributeValue>("msemr_telecom1startdate"); + } + set + { + this.OnPropertyChanging("msemr_Telecom1StartDate"); + this.SetAttributeValue("msemr_telecom1startdate", value); + this.OnPropertyChanged("msemr_Telecom1StartDate"); + } + } + + /// + /// Type of Technology mediated contact point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1system")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Telecom1System + { + get + { + return this.GetAttributeValue("msemr_telecom1system"); + } + set + { + this.OnPropertyChanging("msemr_Telecom1System"); + this.SetAttributeValue("msemr_telecom1system", value); + this.OnPropertyChanged("msemr_Telecom1System"); + } + } + + /// + /// Type of Technology mediated contact point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1system")] + public virtual msemr_TelecomSystem? msemr_Telecom1SystemEnum + { + get + { + return ((msemr_TelecomSystem?)(EntityOptionSetEnum.GetEnum(this, "msemr_telecom1system"))); + } + set + { + this.OnPropertyChanging("msemr_Telecom1System"); + this.SetAttributeValue("msemr_telecom1system", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Telecom1System"); + } + } + + /// + /// Purpose of this contact point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1use")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Telecom1Use + { + get + { + return this.GetAttributeValue("msemr_telecom1use"); + } + set + { + this.OnPropertyChanging("msemr_Telecom1Use"); + this.SetAttributeValue("msemr_telecom1use", value); + this.OnPropertyChanged("msemr_Telecom1Use"); + } + } + + /// + /// Purpose of this contact point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom1use")] + public virtual msemr_telecomuse? msemr_Telecom1UseEnum + { + get + { + return ((msemr_telecomuse?)(EntityOptionSetEnum.GetEnum(this, "msemr_telecom1use"))); + } + set + { + this.OnPropertyChanging("msemr_Telecom1Use"); + this.SetAttributeValue("msemr_telecom1use", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Telecom1Use"); + } + } + + /// + /// End time of validity of telecom. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2enddate")] + public System.Nullable msemr_Telecom2EndDate + { + get + { + return this.GetAttributeValue>("msemr_telecom2enddate"); + } + set + { + this.OnPropertyChanging("msemr_Telecom2EndDate"); + this.SetAttributeValue("msemr_telecom2enddate", value); + this.OnPropertyChanged("msemr_Telecom2EndDate"); + } + } + + /// + /// Specify preferred order of use (1 = highest). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2rank")] + public System.Nullable msemr_Telecom2Rank + { + get + { + return this.GetAttributeValue>("msemr_telecom2rank"); + } + set + { + this.OnPropertyChanging("msemr_Telecom2Rank"); + this.SetAttributeValue("msemr_telecom2rank", value); + this.OnPropertyChanged("msemr_Telecom2Rank"); + } + } + + /// + /// Start time of validity of telecom. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2startdate")] + public System.Nullable msemr_Telecom2StartDate + { + get + { + return this.GetAttributeValue>("msemr_telecom2startdate"); + } + set + { + this.OnPropertyChanging("msemr_Telecom2StartDate"); + this.SetAttributeValue("msemr_telecom2startdate", value); + this.OnPropertyChanged("msemr_Telecom2StartDate"); + } + } + + /// + /// Type of Technology mediated contact point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2system")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Telecom2System + { + get + { + return this.GetAttributeValue("msemr_telecom2system"); + } + set + { + this.OnPropertyChanging("msemr_Telecom2System"); + this.SetAttributeValue("msemr_telecom2system", value); + this.OnPropertyChanged("msemr_Telecom2System"); + } + } + + /// + /// Type of Technology mediated contact point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2system")] + public virtual msemr_TelecomSystem? msemr_Telecom2SystemEnum + { + get + { + return ((msemr_TelecomSystem?)(EntityOptionSetEnum.GetEnum(this, "msemr_telecom2system"))); + } + set + { + this.OnPropertyChanging("msemr_Telecom2System"); + this.SetAttributeValue("msemr_telecom2system", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Telecom2System"); + } + } + + /// + /// Purpose of this contact point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2use")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Telecom2Use + { + get + { + return this.GetAttributeValue("msemr_telecom2use"); + } + set + { + this.OnPropertyChanging("msemr_Telecom2Use"); + this.SetAttributeValue("msemr_telecom2use", value); + this.OnPropertyChanged("msemr_Telecom2Use"); + } + } + + /// + /// Purpose of this contact point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom2use")] + public virtual msemr_telecomuse? msemr_Telecom2UseEnum + { + get + { + return ((msemr_telecomuse?)(EntityOptionSetEnum.GetEnum(this, "msemr_telecom2use"))); + } + set + { + this.OnPropertyChanging("msemr_Telecom2Use"); + this.SetAttributeValue("msemr_telecom2use", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Telecom2Use"); + } + } + + /// + /// End time of validity of telecom. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3enddate")] + public System.Nullable msemr_Telecom3EndDate + { + get + { + return this.GetAttributeValue>("msemr_telecom3enddate"); + } + set + { + this.OnPropertyChanging("msemr_Telecom3EndDate"); + this.SetAttributeValue("msemr_telecom3enddate", value); + this.OnPropertyChanged("msemr_Telecom3EndDate"); + } + } + + /// + /// Specify preferred order of use (1 = highest). + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3rank")] + public System.Nullable msemr_Telecom3Rank + { + get + { + return this.GetAttributeValue>("msemr_telecom3rank"); + } + set + { + this.OnPropertyChanging("msemr_Telecom3Rank"); + this.SetAttributeValue("msemr_telecom3rank", value); + this.OnPropertyChanged("msemr_Telecom3Rank"); + } + } + + /// + /// Start time of validity of telecom. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3startdate")] + public System.Nullable msemr_Telecom3StartDate + { + get + { + return this.GetAttributeValue>("msemr_telecom3startdate"); + } + set + { + this.OnPropertyChanging("msemr_Telecom3StartDate"); + this.SetAttributeValue("msemr_telecom3startdate", value); + this.OnPropertyChanged("msemr_Telecom3StartDate"); + } + } + + /// + /// Type of Technology mediated contact point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3system")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Telecom3System + { + get + { + return this.GetAttributeValue("msemr_telecom3system"); + } + set + { + this.OnPropertyChanging("msemr_Telecom3System"); + this.SetAttributeValue("msemr_telecom3system", value); + this.OnPropertyChanged("msemr_Telecom3System"); + } + } + + /// + /// Type of Technology mediated contact point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3system")] + public virtual msemr_TelecomSystem? msemr_Telecom3SystemEnum + { + get + { + return ((msemr_TelecomSystem?)(EntityOptionSetEnum.GetEnum(this, "msemr_telecom3system"))); + } + set + { + this.OnPropertyChanging("msemr_Telecom3System"); + this.SetAttributeValue("msemr_telecom3system", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Telecom3System"); + } + } + + /// + /// Purpose of this Contact Point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3use")] + public Microsoft.Xrm.Sdk.OptionSetValue msemr_Telecom3Use + { + get + { + return this.GetAttributeValue("msemr_telecom3use"); + } + set + { + this.OnPropertyChanging("msemr_Telecom3Use"); + this.SetAttributeValue("msemr_telecom3use", value); + this.OnPropertyChanged("msemr_Telecom3Use"); + } + } + + /// + /// Purpose of this Contact Point. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msemr_telecom3use")] + public virtual msemr_telecomuse? msemr_Telecom3UseEnum + { + get + { + return ((msemr_telecomuse?)(EntityOptionSetEnum.GetEnum(this, "msemr_telecom3use"))); + } + set + { + this.OnPropertyChanging("msemr_Telecom3Use"); + this.SetAttributeValue("msemr_telecom3use", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msemr_Telecom3Use"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msevtmgt_aadobjectid")] + public string msevtmgt_aadobjectid + { + get + { + return this.GetAttributeValue("msevtmgt_aadobjectid"); + } + set + { + this.OnPropertyChanging("msevtmgt_aadobjectid"); + this.SetAttributeValue("msevtmgt_aadobjectid", value); + this.OnPropertyChanged("msevtmgt_aadobjectid"); + } + } + + /// + /// Unique identifier for the check-in associated with the contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msevtmgt_contactid")] + public Microsoft.Xrm.Sdk.EntityReference msevtmgt_ContactId + { + get + { + return this.GetAttributeValue("msevtmgt_contactid"); + } + set + { + this.OnPropertyChanging("msevtmgt_ContactId"); + this.SetAttributeValue("msevtmgt_contactid", value); + this.OnPropertyChanged("msevtmgt_ContactId"); + } + } + + /// + /// For contacts created by registering for an event in Microsoft Dynamics 365, this identifies the relevant event. This is used to relate the contact to the data on the originating event. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msevtmgt_originatingeventid")] + public Microsoft.Xrm.Sdk.EntityReference msevtmgt_originatingeventid + { + get + { + return this.GetAttributeValue("msevtmgt_originatingeventid"); + } + set + { + this.OnPropertyChanging("msevtmgt_originatingeventid"); + this.SetAttributeValue("msevtmgt_originatingeventid", value); + this.OnPropertyChanged("msevtmgt_originatingeventid"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msgdpr_consentchangesourceformid")] + public Microsoft.Xrm.Sdk.EntityReference msgdpr_consentchangesourceformId + { + get + { + return this.GetAttributeValue("msgdpr_consentchangesourceformid"); + } + set + { + this.OnPropertyChanging("msgdpr_consentchangesourceformId"); + this.SetAttributeValue("msgdpr_consentchangesourceformid", value); + this.OnPropertyChanged("msgdpr_consentchangesourceformId"); + } + } + + /// + /// Select whether contact allows tracking interaction data. If Do Not Allow is selected, Microsoft Dynamics 365 will not save interaction data for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msgdpr_donottrack")] + public System.Nullable msgdpr_donottrack + { + get + { + return this.GetAttributeValue>("msgdpr_donottrack"); + } + set + { + this.OnPropertyChanging("msgdpr_donottrack"); + this.SetAttributeValue("msgdpr_donottrack", value); + this.OnPropertyChanged("msgdpr_donottrack"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msgdpr_gdprconsent")] + public Microsoft.Xrm.Sdk.OptionSetValue msgdpr_gdprconsent + { + get + { + return this.GetAttributeValue("msgdpr_gdprconsent"); + } + set + { + this.OnPropertyChanging("msgdpr_gdprconsent"); + this.SetAttributeValue("msgdpr_gdprconsent", value); + this.OnPropertyChanged("msgdpr_gdprconsent"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msgdpr_gdprconsent")] + public virtual msgdpr_gdpr_Consent_option_set? msgdpr_gdprconsentEnum + { + get + { + return ((msgdpr_gdpr_Consent_option_set?)(EntityOptionSetEnum.GetEnum(this, "msgdpr_gdprconsent"))); + } + set + { + this.OnPropertyChanging("msgdpr_gdprconsent"); + this.SetAttributeValue("msgdpr_gdprconsent", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("msgdpr_gdprconsent"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msgdpr_gdprischild")] + public System.Nullable msgdpr_gdprischild + { + get + { + return this.GetAttributeValue>("msgdpr_gdprischild"); + } + set + { + this.OnPropertyChanging("msgdpr_gdprischild"); + this.SetAttributeValue("msgdpr_gdprischild", value); + this.OnPropertyChanged("msgdpr_gdprischild"); + } + } + + /// + /// Unique identifier for the contact associated with the contact + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msgdpr_gdprparentid")] + public Microsoft.Xrm.Sdk.EntityReference msgdpr_GDPRParentId + { + get + { + return this.GetAttributeValue("msgdpr_gdprparentid"); + } + set + { + this.OnPropertyChanging("msgdpr_GDPRParentId"); + this.SetAttributeValue("msgdpr_gdprparentid", value); + this.OnPropertyChanged("msgdpr_GDPRParentId"); + } + } + + /// + /// Type the contact's nickname. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("nickname")] + public string NickName + { + get + { + return this.GetAttributeValue("nickname"); + } + set + { + this.OnPropertyChanging("NickName"); + this.SetAttributeValue("nickname", value); + this.OnPropertyChanged("NickName"); + } + } + + /// + /// Type the number of children the contact has for reference in follow-up phone calls and other communications. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("numberofchildren")] + public System.Nullable NumberOfChildren + { + get + { + return this.GetAttributeValue>("numberofchildren"); + } + set + { + this.OnPropertyChanging("NumberOfChildren"); + this.SetAttributeValue("numberofchildren", value); + this.OnPropertyChanged("NumberOfChildren"); + } + } + + /// + /// Shows how long, in minutes, that the record was on hold. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("onholdtime")] + public System.Nullable OnHoldTime + { + get + { + return this.GetAttributeValue>("onholdtime"); + } + } + + /// + /// Shows the lead that the contact was created if the contact was created by converting a lead in Microsoft Dynamics 365. This is used to relate the contact to the data on the originating lead for use in reporting and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("originatingleadid")] + public Microsoft.Xrm.Sdk.EntityReference OriginatingLeadId + { + get + { + return this.GetAttributeValue("originatingleadid"); + } + set + { + this.OnPropertyChanging("OriginatingLeadId"); + this.SetAttributeValue("originatingleadid", value); + this.OnPropertyChanged("OriginatingLeadId"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Enter the user or team who is assigned to manage the record. This field is updated every time the record is assigned to a different user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + set + { + this.OnPropertyChanging("OwnerId"); + this.SetAttributeValue("ownerid", value); + this.OnPropertyChanged("OwnerId"); + } + } + + /// + /// Unique identifier of the business unit that owns the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team who owns the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user who owns the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Type the pager number for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pager")] + public string Pager + { + get + { + return this.GetAttributeValue("pager"); + } + set + { + this.OnPropertyChanging("Pager"); + this.SetAttributeValue("pager", value); + this.OnPropertyChanged("Pager"); + } + } + + /// + /// Unique identifier of the parent contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcontactid")] + public Microsoft.Xrm.Sdk.EntityReference ParentContactId + { + get + { + return this.GetAttributeValue("parentcontactid"); + } + } + + /// + /// Select the parent account or parent contact for the contact to provide a quick link to additional details, such as financial information, activities, and opportunities. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentcustomerid")] + public Microsoft.Xrm.Sdk.EntityReference ParentCustomerId + { + get + { + return this.GetAttributeValue("parentcustomerid"); + } + set + { + this.OnPropertyChanging("ParentCustomerId"); + this.SetAttributeValue("parentcustomerid", value); + this.OnPropertyChanged("ParentCustomerId"); + } + } + + /// + /// Shows whether the contact participates in workflow rules. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("participatesinworkflow")] + public System.Nullable ParticipatesInWorkflow + { + get + { + return this.GetAttributeValue>("participatesinworkflow"); + } + set + { + this.OnPropertyChanging("ParticipatesInWorkflow"); + this.SetAttributeValue("participatesinworkflow", value); + this.OnPropertyChanged("ParticipatesInWorkflow"); + } + } + + /// + /// Select the payment terms to indicate when the customer needs to pay the total amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("paymenttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue PaymentTermsCode + { + get + { + return this.GetAttributeValue("paymenttermscode"); + } + set + { + this.OnPropertyChanging("PaymentTermsCode"); + this.SetAttributeValue("paymenttermscode", value); + this.OnPropertyChanged("PaymentTermsCode"); + } + } + + /// + /// Select the payment terms to indicate when the customer needs to pay the total amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("paymenttermscode")] + public virtual Contact_PaymentTermsCode? PaymentTermsCodeEnum + { + get + { + return ((Contact_PaymentTermsCode?)(EntityOptionSetEnum.GetEnum(this, "paymenttermscode"))); + } + set + { + this.OnPropertyChanging("PaymentTermsCode"); + this.SetAttributeValue("paymenttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PaymentTermsCode"); + } + } + + /// + /// Select the preferred day of the week for service appointments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredappointmentdaycode")] + public Microsoft.Xrm.Sdk.OptionSetValue PreferredAppointmentDayCode + { + get + { + return this.GetAttributeValue("preferredappointmentdaycode"); + } + set + { + this.OnPropertyChanging("PreferredAppointmentDayCode"); + this.SetAttributeValue("preferredappointmentdaycode", value); + this.OnPropertyChanged("PreferredAppointmentDayCode"); + } + } + + /// + /// Select the preferred day of the week for service appointments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredappointmentdaycode")] + public virtual Contact_PreferredAppointmentDayCode? PreferredAppointmentDayCodeEnum + { + get + { + return ((Contact_PreferredAppointmentDayCode?)(EntityOptionSetEnum.GetEnum(this, "preferredappointmentdaycode"))); + } + set + { + this.OnPropertyChanging("PreferredAppointmentDayCode"); + this.SetAttributeValue("preferredappointmentdaycode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PreferredAppointmentDayCode"); + } + } + + /// + /// Select the preferred time of day for service appointments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredappointmenttimecode")] + public Microsoft.Xrm.Sdk.OptionSetValue PreferredAppointmentTimeCode + { + get + { + return this.GetAttributeValue("preferredappointmenttimecode"); + } + set + { + this.OnPropertyChanging("PreferredAppointmentTimeCode"); + this.SetAttributeValue("preferredappointmenttimecode", value); + this.OnPropertyChanged("PreferredAppointmentTimeCode"); + } + } + + /// + /// Select the preferred time of day for service appointments. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredappointmenttimecode")] + public virtual Contact_PreferredAppointmentTimeCode? PreferredAppointmentTimeCodeEnum + { + get + { + return ((Contact_PreferredAppointmentTimeCode?)(EntityOptionSetEnum.GetEnum(this, "preferredappointmenttimecode"))); + } + set + { + this.OnPropertyChanging("PreferredAppointmentTimeCode"); + this.SetAttributeValue("preferredappointmenttimecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PreferredAppointmentTimeCode"); + } + } + + /// + /// Select the preferred method of contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredcontactmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue PreferredContactMethodCode + { + get + { + return this.GetAttributeValue("preferredcontactmethodcode"); + } + set + { + this.OnPropertyChanging("PreferredContactMethodCode"); + this.SetAttributeValue("preferredcontactmethodcode", value); + this.OnPropertyChanged("PreferredContactMethodCode"); + } + } + + /// + /// Select the preferred method of contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredcontactmethodcode")] + public virtual Contact_PreferredContactMethodCode? PreferredContactMethodCodeEnum + { + get + { + return ((Contact_PreferredContactMethodCode?)(EntityOptionSetEnum.GetEnum(this, "preferredcontactmethodcode"))); + } + set + { + this.OnPropertyChanging("PreferredContactMethodCode"); + this.SetAttributeValue("preferredcontactmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PreferredContactMethodCode"); + } + } + + /// + /// Choose the contact's preferred service facility or equipment to make sure services are scheduled correctly for the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredequipmentid")] + public Microsoft.Xrm.Sdk.EntityReference PreferredEquipmentId + { + get + { + return this.GetAttributeValue("preferredequipmentid"); + } + set + { + this.OnPropertyChanging("PreferredEquipmentId"); + this.SetAttributeValue("preferredequipmentid", value); + this.OnPropertyChanged("PreferredEquipmentId"); + } + } + + /// + /// Choose the contact's preferred service to make sure services are scheduled correctly for the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredserviceid")] + public Microsoft.Xrm.Sdk.EntityReference PreferredServiceId + { + get + { + return this.GetAttributeValue("preferredserviceid"); + } + set + { + this.OnPropertyChanging("PreferredServiceId"); + this.SetAttributeValue("preferredserviceid", value); + this.OnPropertyChanged("PreferredServiceId"); + } + } + + /// + /// Choose the regular or preferred customer service representative for reference when scheduling service activities for the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("preferredsystemuserid")] + public Microsoft.Xrm.Sdk.EntityReference PreferredSystemUserId + { + get + { + return this.GetAttributeValue("preferredsystemuserid"); + } + set + { + this.OnPropertyChanging("PreferredSystemUserId"); + this.SetAttributeValue("preferredsystemuserid", value); + this.OnPropertyChanged("PreferredSystemUserId"); + } + } + + /// + /// Shows the ID of the process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Type the salutation of the contact to make sure the contact is addressed correctly in sales calls, email messages, and marketing campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salutation")] + public string Salutation + { + get + { + return this.GetAttributeValue("salutation"); + } + set + { + this.OnPropertyChanging("Salutation"); + this.SetAttributeValue("salutation", value); + this.OnPropertyChanged("Salutation"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shippingmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ShippingMethodCode + { + get + { + return this.GetAttributeValue("shippingmethodcode"); + } + set + { + this.OnPropertyChanging("ShippingMethodCode"); + this.SetAttributeValue("shippingmethodcode", value); + this.OnPropertyChanged("ShippingMethodCode"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shippingmethodcode")] + public virtual Contact_ShippingMethodCode? ShippingMethodCodeEnum + { + get + { + return ((Contact_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "shippingmethodcode"))); + } + set + { + this.OnPropertyChanging("ShippingMethodCode"); + this.SetAttributeValue("shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("ShippingMethodCode"); + } + } + + /// + /// Choose the service level agreement (SLA) that you want to apply to the Contact record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("slaid")] + public Microsoft.Xrm.Sdk.EntityReference SLAId + { + get + { + return this.GetAttributeValue("slaid"); + } + set + { + this.OnPropertyChanging("SLAId"); + this.SetAttributeValue("slaid", value); + this.OnPropertyChanged("SLAId"); + } + } + + /// + /// Last SLA that was applied to this case. This field is for internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("slainvokedid")] + public Microsoft.Xrm.Sdk.EntityReference SLAInvokedId + { + get + { + return this.GetAttributeValue("slainvokedid"); + } + } + + /// + /// Type the name of the contact's spouse or partner for reference during calls, events, or other communications with the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("spousesname")] + public string SpousesName + { + get + { + return this.GetAttributeValue("spousesname"); + } + set + { + this.OnPropertyChanging("SpousesName"); + this.SetAttributeValue("spousesname", value); + this.OnPropertyChanged("SpousesName"); + } + } + + /// + /// Shows the ID of the stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + public System.Nullable StageId + { + get + { + return this.GetAttributeValue>("stageid"); + } + set + { + this.OnPropertyChanging("StageId"); + this.SetAttributeValue("stageid", value); + this.OnPropertyChanged("StageId"); + } + } + + /// + /// Shows whether the contact is active or inactive. Inactive contacts are read-only and can't be edited unless they are reactivated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((CrmSdk.ContactState)(System.Enum.ToObject(typeof(CrmSdk.ContactState), optionSet.Value))); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("StateCode"); + if ((value == null)) + { + this.SetAttributeValue("statecode", null); + } + else + { + this.SetAttributeValue("statecode", new Microsoft.Xrm.Sdk.OptionSetValue(((int)(value)))); + } + this.OnPropertyChanged("StateCode"); + } + } + + /// + /// Select the contact's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Select the contact's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual Contact_StatusCode? StatusCodeEnum + { + get + { + return ((Contact_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subscriptionid")] + public System.Nullable SubscriptionId + { + get + { + return this.GetAttributeValue>("subscriptionid"); + } + set + { + this.OnPropertyChanging("SubscriptionId"); + this.SetAttributeValue("subscriptionid", value); + this.OnPropertyChanged("SubscriptionId"); + } + } + + /// + /// Type the suffix used in the contact's name, such as Jr. or Sr. to make sure the contact is addressed correctly in sales calls, email, and marketing campaigns. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("suffix")] + public string Suffix + { + get + { + return this.GetAttributeValue("suffix"); + } + set + { + this.OnPropertyChanging("Suffix"); + this.SetAttributeValue("suffix", value); + this.OnPropertyChanged("Suffix"); + } + } + + /// + /// Number of users or conversations followed the record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamsfollowed")] + public System.Nullable TeamsFollowed + { + get + { + return this.GetAttributeValue>("teamsfollowed"); + } + set + { + this.OnPropertyChanging("TeamsFollowed"); + this.SetAttributeValue("teamsfollowed", value); + this.OnPropertyChanged("TeamsFollowed"); + } + } + + /// + /// Type the main phone number for this contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone1")] + public string Telephone1 + { + get + { + return this.GetAttributeValue("telephone1"); + } + set + { + this.OnPropertyChanging("Telephone1"); + this.SetAttributeValue("telephone1", value); + this.OnPropertyChanged("Telephone1"); + } + } + + /// + /// Type a second phone number for this contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone2")] + public string Telephone2 + { + get + { + return this.GetAttributeValue("telephone2"); + } + set + { + this.OnPropertyChanging("Telephone2"); + this.SetAttributeValue("telephone2", value); + this.OnPropertyChanged("Telephone2"); + } + } + + /// + /// Type a third phone number for this contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("telephone3")] + public string Telephone3 + { + get + { + return this.GetAttributeValue("telephone3"); + } + set + { + this.OnPropertyChanging("Telephone3"); + this.SetAttributeValue("telephone3", value); + this.OnPropertyChanged("Telephone3"); + } + } + + /// + /// Select a region or territory for the contact for use in segmentation and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territorycode")] + public Microsoft.Xrm.Sdk.OptionSetValue TerritoryCode + { + get + { + return this.GetAttributeValue("territorycode"); + } + set + { + this.OnPropertyChanging("TerritoryCode"); + this.SetAttributeValue("territorycode", value); + this.OnPropertyChanged("TerritoryCode"); + } + } + + /// + /// Select a region or territory for the contact for use in segmentation and analysis. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("territorycode")] + public virtual Contact_TerritoryCode? TerritoryCodeEnum + { + get + { + return ((Contact_TerritoryCode?)(EntityOptionSetEnum.GetEnum(this, "territorycode"))); + } + set + { + this.OnPropertyChanging("TerritoryCode"); + this.SetAttributeValue("territorycode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("TerritoryCode"); + } + } + + /// + /// Total time spent for emails (read and write) and meetings by me in relation to the contact record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timespentbymeonemailandmeetings")] + public string TimeSpentByMeOnEmailAndMeetings + { + get + { + return this.GetAttributeValue("timespentbymeonemailandmeetings"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Choose the local currency for the record to make sure budgets are reported in the correct currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traversedpath")] + public string TraversedPath + { + get + { + return this.GetAttributeValue("traversedpath"); + } + set + { + this.OnPropertyChanging("TraversedPath"); + this.SetAttributeValue("traversedpath", value); + this.OnPropertyChanged("TraversedPath"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version number of the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Type the contact's professional or personal website or blog URL. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("websiteurl")] + public string WebSiteUrl + { + get + { + return this.GetAttributeValue("websiteurl"); + } + set + { + this.OnPropertyChanging("WebSiteUrl"); + this.SetAttributeValue("websiteurl", value); + this.OnPropertyChanged("WebSiteUrl"); + } + } + + /// + /// Type the phonetic spelling of the contact's first name, if the name is specified in Japanese, to make sure the name is pronounced correctly in phone calls with the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifirstname")] + public string YomiFirstName + { + get + { + return this.GetAttributeValue("yomifirstname"); + } + set + { + this.OnPropertyChanging("YomiFirstName"); + this.SetAttributeValue("yomifirstname", value); + this.OnPropertyChanged("YomiFirstName"); + } + } + + /// + /// Shows the combined Yomi first and last names of the contact so that the full phonetic name can be displayed in views and reports. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomifullname")] + public string YomiFullName + { + get + { + return this.GetAttributeValue("yomifullname"); + } + } + + /// + /// Type the phonetic spelling of the contact's last name, if the name is specified in Japanese, to make sure the name is pronounced correctly in phone calls with the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomilastname")] + public string YomiLastName + { + get + { + return this.GetAttributeValue("yomilastname"); + } + set + { + this.OnPropertyChanging("YomiLastName"); + this.SetAttributeValue("yomilastname", value); + this.OnPropertyChanged("YomiLastName"); + } + } + + /// + /// Type the phonetic spelling of the contact's middle name, if the name is specified in Japanese, to make sure the name is pronounced correctly in phone calls with the contact. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yomimiddlename")] + public string YomiMiddleName + { + get + { + return this.GetAttributeValue("yomimiddlename"); + } + set + { + this.OnPropertyChanging("YomiMiddleName"); + this.SetAttributeValue("yomimiddlename", value); + this.OnPropertyChanged("YomiMiddleName"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + public Contact(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (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["contactid"] = base.Id; + break; + case "contactid": + 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; + } + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum DynamicPropertyState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Draft = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Retired = 2, + } + + /// + /// Information about a product property. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("dynamicproperty")] + public partial class DynamicProperty : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + public static class Fields + { + public const string BaseDynamicPropertyId = "basedynamicpropertyid"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string DataType = "datatype"; + public const string DefaultAttributeValue = "defaultattributevalue"; + public const string DefaultValueDecimal = "defaultvaluedecimal"; + public const string DefaultValueDouble = "defaultvaluedouble"; + public const string DefaultValueInteger = "defaultvalueinteger"; + public const string DefaultValueOptionSet = "defaultvalueoptionset"; + public const string DefaultValueString = "defaultvaluestring"; + public const string Description = "description"; + public const string DMTImportState = "dmtimportstate"; + public const string DynamicPropertyId = "dynamicpropertyid"; + public const string Id = "dynamicpropertyid"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string IsHidden = "ishidden"; + public const string IsReadOnly = "isreadonly"; + public const string IsRequired = "isrequired"; + public const string MaxLengthString = "maxlengthstring"; + public const string MaxValueDecimal = "maxvaluedecimal"; + public const string MaxValueDouble = "maxvaluedouble"; + public const string MaxValueInteger = "maxvalueinteger"; + public const string MinValueDecimal = "minvaluedecimal"; + public const string MinValueDouble = "minvaluedouble"; + public const string MinValueInteger = "minvalueinteger"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OrganizationId = "organizationid"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OverwrittenDynamicPropertyId = "overwrittendynamicpropertyid"; + public const string Precision = "precision"; + public const string RegardingObjectId = "regardingobjectid"; + public const string RootDynamicPropertyId = "rootdynamicpropertyid"; + public const string StateCode = "statecode"; + public const string StatusCode = "statuscode"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + } + + /// + /// Default Constructor. + /// + public DynamicProperty() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "dynamicproperty"; + + public const string EntitySchemaName = "DynamicProperty"; + + public const string PrimaryIdAttribute = "dynamicpropertyid"; + + public const string PrimaryNameAttribute = "name"; + + public const string EntityLogicalCollectionName = "dynamicproperties"; + + public const string EntitySetName = "dynamicproperties"; + + public const int EntityTypeCode = 1048; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Shows the property in the product family that this property is being inherited from. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("basedynamicpropertyid")] + public Microsoft.Xrm.Sdk.EntityReference BaseDynamicPropertyId + { + get + { + return this.GetAttributeValue("basedynamicpropertyid"); + } + set + { + this.OnPropertyChanging("BaseDynamicPropertyId"); + this.SetAttributeValue("basedynamicpropertyid", value); + this.OnPropertyChanged("BaseDynamicPropertyId"); + } + } + + /// + /// Unique identifier of the user who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + set + { + this.OnPropertyChanging("CreatedOnBehalfBy"); + this.SetAttributeValue("createdonbehalfby", value); + this.OnPropertyChanged("CreatedOnBehalfBy"); + } + } + + /// + /// Select the data type of the property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datatype")] + public Microsoft.Xrm.Sdk.OptionSetValue DataType + { + get + { + return this.GetAttributeValue("datatype"); + } + set + { + this.OnPropertyChanging("DataType"); + this.SetAttributeValue("datatype", value); + this.OnPropertyChanged("DataType"); + } + } + + /// + /// Select the data type of the property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datatype")] + public virtual DynamicProperty_DataType? DataTypeEnum + { + get + { + return ((DynamicProperty_DataType?)(EntityOptionSetEnum.GetEnum(this, "datatype"))); + } + set + { + this.OnPropertyChanging("DataType"); + this.SetAttributeValue("datatype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("DataType"); + } + } + + /// + /// Default Value + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultattributevalue")] + public string DefaultAttributeValue + { + get + { + return this.GetAttributeValue("defaultattributevalue"); + } + set + { + this.OnPropertyChanging("DefaultAttributeValue"); + this.SetAttributeValue("defaultattributevalue", value); + this.OnPropertyChanged("DefaultAttributeValue"); + } + } + + /// + /// Shows the default value of the property for a decimal data type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultvaluedecimal")] + public System.Nullable DefaultValueDecimal + { + get + { + return this.GetAttributeValue>("defaultvaluedecimal"); + } + set + { + this.OnPropertyChanging("DefaultValueDecimal"); + this.SetAttributeValue("defaultvaluedecimal", value); + this.OnPropertyChanged("DefaultValueDecimal"); + } + } + + /// + /// Shows the default value of the property for a double data type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultvaluedouble")] + public System.Nullable DefaultValueDouble + { + get + { + return this.GetAttributeValue>("defaultvaluedouble"); + } + set + { + this.OnPropertyChanging("DefaultValueDouble"); + this.SetAttributeValue("defaultvaluedouble", value); + this.OnPropertyChanged("DefaultValueDouble"); + } + } + + /// + /// Shows the default value of the property for a whole number data type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultvalueinteger")] + public System.Nullable DefaultValueInteger + { + get + { + return this.GetAttributeValue>("defaultvalueinteger"); + } + set + { + this.OnPropertyChanging("DefaultValueInteger"); + this.SetAttributeValue("defaultvalueinteger", value); + this.OnPropertyChanged("DefaultValueInteger"); + } + } + + /// + /// Shows the default value of the property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultvalueoptionset")] + public Microsoft.Xrm.Sdk.EntityReference DefaultValueOptionSet + { + get + { + return this.GetAttributeValue("defaultvalueoptionset"); + } + set + { + this.OnPropertyChanging("DefaultValueOptionSet"); + this.SetAttributeValue("defaultvalueoptionset", value); + this.OnPropertyChanged("DefaultValueOptionSet"); + } + } + + /// + /// Shows the default value of the property for a string data type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultvaluestring")] + public string DefaultValueString + { + get + { + return this.GetAttributeValue("defaultvaluestring"); + } + set + { + this.OnPropertyChanging("DefaultValueString"); + this.SetAttributeValue("defaultvaluestring", value); + this.OnPropertyChanged("DefaultValueString"); + } + } + + /// + /// Type a description for the property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Internal Use Only + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dmtimportstate")] + public System.Nullable DMTImportState + { + get + { + return this.GetAttributeValue>("dmtimportstate"); + } + set + { + this.OnPropertyChanging("DMTImportState"); + this.SetAttributeValue("dmtimportstate", value); + this.OnPropertyChanged("DMTImportState"); + } + } + + /// + /// Shows the unique identifier of the property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dynamicpropertyid")] + public System.Nullable DynamicPropertyId + { + get + { + return this.GetAttributeValue>("dynamicpropertyid"); + } + set + { + this.OnPropertyChanging("DynamicPropertyId"); + this.SetAttributeValue("dynamicpropertyid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DynamicPropertyId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dynamicpropertyid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DynamicPropertyId = value; + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Defines whether the attribute is hidden or shown. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ishidden")] + public System.Nullable IsHidden + { + get + { + return this.GetAttributeValue>("ishidden"); + } + set + { + this.OnPropertyChanging("IsHidden"); + this.SetAttributeValue("ishidden", value); + this.OnPropertyChanged("IsHidden"); + } + } + + /// + /// Defines whether the attribute is read-only or if it can be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isreadonly")] + public System.Nullable IsReadOnly + { + get + { + return this.GetAttributeValue>("isreadonly"); + } + set + { + this.OnPropertyChanging("IsReadOnly"); + this.SetAttributeValue("isreadonly", value); + this.OnPropertyChanged("IsReadOnly"); + } + } + + /// + /// Defines whether the attribute is mandatory. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isrequired")] + public System.Nullable IsRequired + { + get + { + return this.GetAttributeValue>("isrequired"); + } + set + { + this.OnPropertyChanging("IsRequired"); + this.SetAttributeValue("isrequired", value); + this.OnPropertyChanged("IsRequired"); + } + } + + /// + /// Shows the maximum allowed length of the property for a string data type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxlengthstring")] + public System.Nullable MaxLengthString + { + get + { + return this.GetAttributeValue>("maxlengthstring"); + } + set + { + this.OnPropertyChanging("MaxLengthString"); + this.SetAttributeValue("maxlengthstring", value); + this.OnPropertyChanged("MaxLengthString"); + } + } + + /// + /// Shows the maximum allowed value of the property for a decimal data type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxvaluedecimal")] + public System.Nullable MaxValueDecimal + { + get + { + return this.GetAttributeValue>("maxvaluedecimal"); + } + set + { + this.OnPropertyChanging("MaxValueDecimal"); + this.SetAttributeValue("maxvaluedecimal", value); + this.OnPropertyChanged("MaxValueDecimal"); + } + } + + /// + /// Shows the maximum allowed value of the property for a double data type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxvaluedouble")] + public System.Nullable MaxValueDouble + { + get + { + return this.GetAttributeValue>("maxvaluedouble"); + } + set + { + this.OnPropertyChanging("MaxValueDouble"); + this.SetAttributeValue("maxvaluedouble", value); + this.OnPropertyChanged("MaxValueDouble"); + } + } + + /// + /// Shows the maximum allowed value of the property for a whole number data type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("maxvalueinteger")] + public System.Nullable MaxValueInteger + { + get + { + return this.GetAttributeValue>("maxvalueinteger"); + } + set + { + this.OnPropertyChanging("MaxValueInteger"); + this.SetAttributeValue("maxvalueinteger", value); + this.OnPropertyChanged("MaxValueInteger"); + } + } + + /// + /// Shows the minimum allowed value of the property for a decimal data type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minvaluedecimal")] + public System.Nullable MinValueDecimal + { + get + { + return this.GetAttributeValue>("minvaluedecimal"); + } + set + { + this.OnPropertyChanging("MinValueDecimal"); + this.SetAttributeValue("minvaluedecimal", value); + this.OnPropertyChanged("MinValueDecimal"); + } + } + + /// + /// Shows the minimum allowed value of the property for a double data type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minvaluedouble")] + public System.Nullable MinValueDouble + { + get + { + return this.GetAttributeValue>("minvaluedouble"); + } + set + { + this.OnPropertyChanging("MinValueDouble"); + this.SetAttributeValue("minvaluedouble", value); + this.OnPropertyChanged("MinValueDouble"); + } + } + + /// + /// Shows the minimum allowed value of the property for a whole number data type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("minvalueinteger")] + public System.Nullable MinValueInteger + { + get + { + return this.GetAttributeValue>("minvalueinteger"); + } + set + { + this.OnPropertyChanging("MinValueInteger"); + this.SetAttributeValue("minvalueinteger", value); + this.OnPropertyChanged("MinValueInteger"); + } + } + + /// + /// Unique identifier of the user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + set + { + this.OnPropertyChanging("ModifiedOnBehalfBy"); + this.SetAttributeValue("modifiedonbehalfby", value); + this.OnPropertyChanged("ModifiedOnBehalfBy"); + } + } + + /// + /// Type the name of the property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier for the organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Shows the related overwritten property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwrittendynamicpropertyid")] + public System.Nullable OverwrittenDynamicPropertyId + { + get + { + return this.GetAttributeValue>("overwrittendynamicpropertyid"); + } + set + { + this.OnPropertyChanging("OverwrittenDynamicPropertyId"); + this.SetAttributeValue("overwrittendynamicpropertyid", value); + this.OnPropertyChanged("OverwrittenDynamicPropertyId"); + } + } + + /// + /// Shows the allowed precision of the property for a whole number data type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("precision")] + public System.Nullable Precision + { + get + { + return this.GetAttributeValue>("precision"); + } + set + { + this.OnPropertyChanging("Precision"); + this.SetAttributeValue("precision", value); + this.OnPropertyChanged("Precision"); + } + } + + /// + /// Choose the product that the property is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + set + { + this.OnPropertyChanging("RegardingObjectId"); + this.SetAttributeValue("regardingobjectid", value); + this.OnPropertyChanged("RegardingObjectId"); + } + } + + /// + /// Shows the root property that this property is derived from. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("rootdynamicpropertyid")] + public System.Nullable RootDynamicPropertyId + { + get + { + return this.GetAttributeValue>("rootdynamicpropertyid"); + } + set + { + this.OnPropertyChanging("RootDynamicPropertyId"); + this.SetAttributeValue("rootdynamicpropertyid", value); + this.OnPropertyChanged("RootDynamicPropertyId"); + } + } + + /// + /// Shows the state of the property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((CrmSdk.DynamicPropertyState)(System.Enum.ToObject(typeof(CrmSdk.DynamicPropertyState), optionSet.Value))); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("StateCode"); + if ((value == null)) + { + this.SetAttributeValue("statecode", null); + } + else + { + this.SetAttributeValue("statecode", new Microsoft.Xrm.Sdk.OptionSetValue(((int)(value)))); + } + this.OnPropertyChanged("StateCode"); + } + } + + /// + /// Shows whether the property is active or inactive. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Shows whether the property is active or inactive. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual DynamicProperty_StatusCode? StatusCodeEnum + { + get + { + return ((DynamicProperty_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + public DynamicProperty(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (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["dynamicpropertyid"] = base.Id; + break; + case "dynamicpropertyid": + 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; + } + } + } + } + + /// + /// Association of a property definition with another entity in the system. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("dynamicpropertyassociation")] + public partial class DynamicPropertyAssociation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + public static class Fields + { + public const string AssociationStatus = "associationstatus"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string DMTImportState = "dmtimportstate"; + public const string DynamicPropertyAssociationId = "dynamicpropertyassociationid"; + public const string Id = "dynamicpropertyassociationid"; + public const string DynamicPropertyId = "dynamicpropertyid"; + public const string ExchangeRate = "exchangerate"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string InheritanceState = "inheritancestate"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OrganizationId = "organizationid"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string RegardingObjectid = "regardingobjectid"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string TransactionCurrencyId = "transactioncurrencyid"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + } + + /// + /// Default Constructor. + /// + public DynamicPropertyAssociation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "dynamicpropertyassociation"; + + public const string EntitySchemaName = "DynamicPropertyAssociation"; + + public const string PrimaryIdAttribute = "dynamicpropertyassociationid"; + + public const string PrimaryNameAttribute = "name"; + + public const string EntityLogicalCollectionName = "dynamicpropertyassociations"; + + public const string EntitySetName = "dynamicpropertyassociations"; + + public const int EntityTypeCode = 1235; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Shows the status of the property association. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("associationstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue AssociationStatus + { + get + { + return this.GetAttributeValue("associationstatus"); + } + set + { + this.OnPropertyChanging("AssociationStatus"); + this.SetAttributeValue("associationstatus", value); + this.OnPropertyChanged("AssociationStatus"); + } + } + + /// + /// Shows the status of the property association. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("associationstatus")] + public virtual DynamicPropertyAssociation_AssociationStatus? AssociationStatusEnum + { + get + { + return ((DynamicPropertyAssociation_AssociationStatus?)(EntityOptionSetEnum.GetEnum(this, "associationstatus"))); + } + set + { + this.OnPropertyChanging("AssociationStatus"); + this.SetAttributeValue("associationstatus", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("AssociationStatus"); + } + } + + /// + /// Unique identifier of the user who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + set + { + this.OnPropertyChanging("CreatedOnBehalfBy"); + this.SetAttributeValue("createdonbehalfby", value); + this.OnPropertyChanged("CreatedOnBehalfBy"); + } + } + + /// + /// Internal Use Only + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dmtimportstate")] + public System.Nullable DMTImportState + { + get + { + return this.GetAttributeValue>("dmtimportstate"); + } + set + { + this.OnPropertyChanging("DMTImportState"); + this.SetAttributeValue("dmtimportstate", value); + this.OnPropertyChanged("DMTImportState"); + } + } + + /// + /// Shows the unique identifier of the property association. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dynamicpropertyassociationid")] + public System.Nullable DynamicPropertyAssociationId + { + get + { + return this.GetAttributeValue>("dynamicpropertyassociationid"); + } + set + { + this.OnPropertyChanging("DynamicPropertyAssociationId"); + this.SetAttributeValue("dynamicpropertyassociationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DynamicPropertyAssociationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dynamicpropertyassociationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DynamicPropertyAssociationId = value; + } + } + + /// + /// Shows the property that uses this option set item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dynamicpropertyid")] + public Microsoft.Xrm.Sdk.EntityReference DynamicPropertyId + { + get + { + return this.GetAttributeValue("dynamicpropertyid"); + } + set + { + this.OnPropertyChanging("DynamicPropertyId"); + this.SetAttributeValue("dynamicpropertyid", value); + this.OnPropertyChanged("DynamicPropertyId"); + } + } + + /// + /// Shows the conversion rate of the record's currency. The exchange rate is used to convert all money fields in the record from the local currency to the system's default currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Shows the inheritance state in relationship to the parent property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inheritancestate")] + public Microsoft.Xrm.Sdk.OptionSetValue InheritanceState + { + get + { + return this.GetAttributeValue("inheritancestate"); + } + set + { + this.OnPropertyChanging("InheritanceState"); + this.SetAttributeValue("inheritancestate", value); + this.OnPropertyChanged("InheritanceState"); + } + } + + /// + /// Shows the inheritance state in relationship to the parent property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inheritancestate")] + public virtual DynamicPropertyAssociation_InheritanceState? InheritanceStateEnum + { + get + { + return ((DynamicPropertyAssociation_InheritanceState?)(EntityOptionSetEnum.GetEnum(this, "inheritancestate"))); + } + set + { + this.OnPropertyChanging("InheritanceState"); + this.SetAttributeValue("inheritancestate", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("InheritanceState"); + } + } + + /// + /// Unique identifier of the user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + set + { + this.OnPropertyChanging("ModifiedOnBehalfBy"); + this.SetAttributeValue("modifiedonbehalfby", value); + this.OnPropertyChanged("ModifiedOnBehalfBy"); + } + } + + /// + /// name + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier for the organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Shows the object that the property is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectid + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + set + { + this.OnPropertyChanging("RegardingObjectid"); + this.SetAttributeValue("regardingobjectid", value); + this.OnPropertyChanged("RegardingObjectid"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Shows the currency associated with the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + public DynamicPropertyAssociation(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (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["dynamicpropertyassociationid"] = base.Id; + break; + case "dynamicpropertyassociationid": + 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; + } + } + } + } + + /// + /// Instance of a property with its value. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("dynamicpropertyinstance")] + public partial class DynamicPropertyInstance : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + public static class Fields + { + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string DMTImportState = "dmtimportstate"; + public const string DynamicPropertyId = "dynamicpropertyid"; + public const string DynamicPropertyInstanceid = "dynamicpropertyinstanceid"; + public const string Id = "dynamicpropertyinstanceid"; + public const string ExchangeRate = "exchangerate"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OwnerId = "ownerid"; + public const string OwningBusinessUnit = "owningbusinessunit"; + public const string OwningTeam = "owningteam"; + public const string OwningUser = "owninguser"; + public const string RegardingObjectId = "regardingobjectid"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string TransactionCurrencyId = "transactioncurrencyid"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string validationstatus = "validationstatus"; + public const string ValueDecimal = "valuedecimal"; + public const string ValueDouble = "valuedouble"; + public const string ValueInteger = "valueinteger"; + public const string ValueString = "valuestring"; + public const string VersionNumber = "versionnumber"; + } + + /// + /// Default Constructor. + /// + public DynamicPropertyInstance() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "dynamicpropertyinstance"; + + public const string EntitySchemaName = "DynamicPropertyInstance"; + + public const string PrimaryIdAttribute = "dynamicpropertyinstanceid"; + + public const string PrimaryNameAttribute = "name"; + + public const string EntityLogicalCollectionName = "dynamicpropertyinstances"; + + public const string EntitySetName = "dynamicpropertyinstances"; + + public const int EntityTypeCode = 1333; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier of the user who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + set + { + this.OnPropertyChanging("CreatedOnBehalfBy"); + this.SetAttributeValue("createdonbehalfby", value); + this.OnPropertyChanged("CreatedOnBehalfBy"); + } + } + + /// + /// Internal Use Only + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dmtimportstate")] + public System.Nullable DMTImportState + { + get + { + return this.GetAttributeValue>("dmtimportstate"); + } + set + { + this.OnPropertyChanging("DMTImportState"); + this.SetAttributeValue("dmtimportstate", value); + this.OnPropertyChanged("DMTImportState"); + } + } + + /// + /// Shows the property that this record is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dynamicpropertyid")] + public Microsoft.Xrm.Sdk.EntityReference DynamicPropertyId + { + get + { + return this.GetAttributeValue("dynamicpropertyid"); + } + set + { + this.OnPropertyChanging("DynamicPropertyId"); + this.SetAttributeValue("dynamicpropertyid", value); + this.OnPropertyChanged("DynamicPropertyId"); + } + } + + /// + /// Shows the unique identifier of the property instance. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dynamicpropertyinstanceid")] + public System.Nullable DynamicPropertyInstanceid + { + get + { + return this.GetAttributeValue>("dynamicpropertyinstanceid"); + } + set + { + this.OnPropertyChanging("DynamicPropertyInstanceid"); + this.SetAttributeValue("dynamicpropertyinstanceid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("DynamicPropertyInstanceid"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dynamicpropertyinstanceid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.DynamicPropertyInstanceid = value; + } + } + + /// + /// Shows the conversion rate of the record's currency. The exchange rate is used to convert all money fields in the record from the local currency to the system's default currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Unique identifier of the user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + set + { + this.OnPropertyChanging("ModifiedOnBehalfBy"); + this.SetAttributeValue("modifiedonbehalfby", value); + this.OnPropertyChanged("ModifiedOnBehalfBy"); + } + } + + /// + /// name + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Owner Id + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + set + { + this.OnPropertyChanging("OwnerId"); + this.SetAttributeValue("ownerid", value); + this.OnPropertyChanged("OwnerId"); + } + } + + /// + /// Unique identifier for the business unit that owns the record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + 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 + { + 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 + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Shows the object that the property is associated with. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + set + { + this.OnPropertyChanging("RegardingObjectId"); + this.SetAttributeValue("regardingobjectid", value); + this.OnPropertyChanged("RegardingObjectId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Shows the currency associated with the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Shows whether the property value is valid. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("validationstatus")] + public System.Nullable validationstatus + { + get + { + return this.GetAttributeValue>("validationstatus"); + } + set + { + this.OnPropertyChanging("validationstatus"); + this.SetAttributeValue("validationstatus", value); + this.OnPropertyChanged("validationstatus"); + } + } + + /// + /// Shows the decimal value of the property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("valuedecimal")] + public System.Nullable ValueDecimal + { + get + { + return this.GetAttributeValue>("valuedecimal"); + } + set + { + this.OnPropertyChanging("ValueDecimal"); + this.SetAttributeValue("valuedecimal", value); + this.OnPropertyChanged("ValueDecimal"); + } + } + + /// + /// Shows the double value of the property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("valuedouble")] + public System.Nullable ValueDouble + { + get + { + return this.GetAttributeValue>("valuedouble"); + } + set + { + this.OnPropertyChanging("ValueDouble"); + this.SetAttributeValue("valuedouble", value); + this.OnPropertyChanged("ValueDouble"); + } + } + + /// + /// Shows the integer value of the property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("valueinteger")] + public System.Nullable ValueInteger + { + get + { + return this.GetAttributeValue>("valueinteger"); + } + set + { + this.OnPropertyChanging("ValueInteger"); + this.SetAttributeValue("valueinteger", value); + this.OnPropertyChanged("ValueInteger"); + } + } + + /// + /// Shows the string value of the property. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("valuestring")] + public string ValueString + { + get + { + return this.GetAttributeValue("valuestring"); + } + set + { + this.OnPropertyChanging("ValueString"); + this.SetAttributeValue("valuestring", value); + this.OnPropertyChanged("ValueString"); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + public DynamicPropertyInstance(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (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["dynamicpropertyinstanceid"] = base.Id; + break; + case "dynamicpropertyinstanceid": + 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; + } + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum ProductState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Draft = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + UnderRevision = 3, + } + + /// + /// Information about products and their pricing information. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("product")] + public partial class Product : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + public static class Fields + { + public const string CreatedBy = "createdby"; + public const string CreatedByExternalParty = "createdbyexternalparty"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CurrentCost = "currentcost"; + public const string CurrentCost_Base = "currentcost_base"; + public const string DefaultUoMId = "defaultuomid"; + public const string DefaultUoMScheduleId = "defaultuomscheduleid"; + public const string Description = "description"; + public const string DMTImportState = "dmtimportstate"; + 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 HierarchyPath = "hierarchypath"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string IsKit = "iskit"; + public const string IsReparented = "isreparented"; + public const string IsStockItem = "isstockitem"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedByExternalParty = "modifiedbyexternalparty"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OrganizationId = "organizationid"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string ParentProductId = "parentproductid"; + public const string Price = "price"; + public const string Price_Base = "price_base"; + public const string PriceLevelId = "pricelevelid"; + public const string ProcessId = "processid"; + public const string ProductId = "productid"; + public const string Id = "productid"; + public const string ProductNumber = "productnumber"; + public const string ProductStructure = "productstructure"; + public const string ProductTypeCode = "producttypecode"; + public const string ProductUrl = "producturl"; + public const string QuantityDecimal = "quantitydecimal"; + public const string QuantityOnHand = "quantityonhand"; + public const string Size = "size"; + public const string StageId = "stageid"; + public const string StandardCost = "standardcost"; + public const string StandardCost_Base = "standardcost_base"; + public const string StateCode = "statecode"; + public const string StatusCode = "statuscode"; + public const string StockVolume = "stockvolume"; + public const string StockWeight = "stockweight"; + public const string SubjectId = "subjectid"; + public const string SupplierName = "suppliername"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string TransactionCurrencyId = "transactioncurrencyid"; + public const string TraversedPath = "traversedpath"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string ValidFromDate = "validfromdate"; + public const string ValidToDate = "validtodate"; + public const string VendorID = "vendorid"; + public const string VendorName = "vendorname"; + public const string VendorPartNumber = "vendorpartnumber"; + public const string VersionNumber = "versionnumber"; + } + + /// + /// Default Constructor. + /// + public Product() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "product"; + + public const string EntitySchemaName = "Product"; + + public const string PrimaryIdAttribute = "productid"; + + public const string PrimaryNameAttribute = "name"; + + public const string EntityLogicalCollectionName = "products"; + + public const string EntitySetName = "products"; + + public const int EntityTypeCode = 1024; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier of the user who created the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the external party who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyexternalparty")] + public Microsoft.Xrm.Sdk.EntityReference CreatedByExternalParty + { + get + { + return this.GetAttributeValue("createdbyexternalparty"); + } + } + + /// + /// Date and time when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + set + { + this.OnPropertyChanging("CreatedOnBehalfBy"); + this.SetAttributeValue("createdonbehalfby", value); + this.OnPropertyChanged("CreatedOnBehalfBy"); + } + } + + /// + /// Current cost for the product item. Used in price calculations. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentcost")] + public Microsoft.Xrm.Sdk.Money CurrentCost + { + get + { + return this.GetAttributeValue("currentcost"); + } + set + { + this.OnPropertyChanging("CurrentCost"); + this.SetAttributeValue("currentcost", value); + this.OnPropertyChanged("CurrentCost"); + } + } + + /// + /// Value of the Current Cost in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("currentcost_base")] + public Microsoft.Xrm.Sdk.Money CurrentCost_Base + { + get + { + return this.GetAttributeValue("currentcost_base"); + } + } + + /// + /// Default unit for the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultuomid")] + public Microsoft.Xrm.Sdk.EntityReference DefaultUoMId + { + get + { + return this.GetAttributeValue("defaultuomid"); + } + set + { + this.OnPropertyChanging("DefaultUoMId"); + this.SetAttributeValue("defaultuomid", value); + this.OnPropertyChanged("DefaultUoMId"); + } + } + + /// + /// Default unit group for the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("defaultuomscheduleid")] + public Microsoft.Xrm.Sdk.EntityReference DefaultUoMScheduleId + { + get + { + return this.GetAttributeValue("defaultuomscheduleid"); + } + set + { + this.OnPropertyChanging("DefaultUoMScheduleId"); + this.SetAttributeValue("defaultuomscheduleid", value); + this.OnPropertyChanged("DefaultUoMScheduleId"); + } + } + + /// + /// Description of the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Internal Use Only + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dmtimportstate")] + public System.Nullable DMTImportState + { + get + { + return this.GetAttributeValue>("dmtimportstate"); + } + set + { + this.OnPropertyChanging("DMTImportState"); + this.SetAttributeValue("dmtimportstate", value); + this.OnPropertyChanged("DMTImportState"); + } + } + + /// + /// Shows the default image for the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] + public byte[] EntityImage + { + get + { + return this.GetAttributeValue("entityimage"); + } + set + { + this.OnPropertyChanging("EntityImage"); + this.SetAttributeValue("entityimage", value); + this.OnPropertyChanged("EntityImage"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] + public System.Nullable EntityImage_Timestamp + { + get + { + return this.GetAttributeValue>("entityimage_timestamp"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] + public string EntityImage_URL + { + get + { + return this.GetAttributeValue("entityimage_url"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Exchange rate for the currency associated with the product with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Hierarchy path of the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("hierarchypath")] + public string HierarchyPath + { + get + { + return this.GetAttributeValue("hierarchypath"); + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Information that specifies whether the product is a kit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iskit")] + public System.Nullable IsKit + { + get + { + return this.GetAttributeValue>("iskit"); + } + set + { + this.OnPropertyChanging("IsKit"); + this.SetAttributeValue("iskit", value); + this.OnPropertyChanged("IsKit"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isreparented")] + public System.Nullable IsReparented + { + get + { + return this.GetAttributeValue>("isreparented"); + } + set + { + this.OnPropertyChanging("IsReparented"); + this.SetAttributeValue("isreparented", value); + this.OnPropertyChanged("IsReparented"); + } + } + + /// + /// Information about whether the product is a stock item. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isstockitem")] + public System.Nullable IsStockItem + { + get + { + return this.GetAttributeValue>("isstockitem"); + } + set + { + this.OnPropertyChanging("IsStockItem"); + this.SetAttributeValue("isstockitem", value); + this.OnPropertyChanged("IsStockItem"); + } + } + + /// + /// Unique identifier of the user who last modified the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Shows the external party who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyexternalparty")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedByExternalParty + { + get + { + return this.GetAttributeValue("modifiedbyexternalparty"); + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + set + { + this.OnPropertyChanging("ModifiedOnBehalfBy"); + this.SetAttributeValue("modifiedonbehalfby", value); + this.OnPropertyChanged("ModifiedOnBehalfBy"); + } + } + + /// + /// Name of the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier for the organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Specifies the parent product family hierarchy. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentproductid")] + public Microsoft.Xrm.Sdk.EntityReference ParentProductId + { + get + { + return this.GetAttributeValue("parentproductid"); + } + set + { + this.OnPropertyChanging("ParentProductId"); + this.SetAttributeValue("parentproductid", value); + this.OnPropertyChanged("ParentProductId"); + } + } + + /// + /// List price for the product item. Used in price calculations. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("price")] + public Microsoft.Xrm.Sdk.Money Price + { + get + { + return this.GetAttributeValue("price"); + } + set + { + this.OnPropertyChanging("Price"); + this.SetAttributeValue("price", value); + this.OnPropertyChanged("Price"); + } + } + + /// + /// Value of the List Price in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("price_base")] + public Microsoft.Xrm.Sdk.Money Price_Base + { + get + { + return this.GetAttributeValue("price_base"); + } + } + + /// + /// Select the default price list for the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + public Microsoft.Xrm.Sdk.EntityReference PriceLevelId + { + get + { + return this.GetAttributeValue("pricelevelid"); + } + set + { + this.OnPropertyChanging("PriceLevelId"); + this.SetAttributeValue("pricelevelid", value); + this.OnPropertyChanged("PriceLevelId"); + } + } + + /// + /// Contains the id of the process associated with the entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public System.Nullable ProductId + { + get + { + return this.GetAttributeValue>("productid"); + } + set + { + this.OnPropertyChanging("ProductId"); + this.SetAttributeValue("productid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ProductId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ProductId = value; + } + } + + /// + /// User-defined product ID. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productnumber")] + public string ProductNumber + { + get + { + return this.GetAttributeValue("productnumber"); + } + set + { + this.OnPropertyChanging("ProductNumber"); + this.SetAttributeValue("productnumber", value); + this.OnPropertyChanged("ProductNumber"); + } + } + + /// + /// Product Structure. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productstructure")] + public Microsoft.Xrm.Sdk.OptionSetValue ProductStructure + { + get + { + return this.GetAttributeValue("productstructure"); + } + set + { + this.OnPropertyChanging("ProductStructure"); + this.SetAttributeValue("productstructure", value); + this.OnPropertyChanged("ProductStructure"); + } + } + + /// + /// Product Structure. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productstructure")] + public virtual Product_ProductStructure? ProductStructureEnum + { + get + { + return ((Product_ProductStructure?)(EntityOptionSetEnum.GetEnum(this, "productstructure"))); + } + set + { + this.OnPropertyChanging("ProductStructure"); + this.SetAttributeValue("productstructure", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("ProductStructure"); + } + } + + /// + /// Type of product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("producttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProductTypeCode + { + get + { + return this.GetAttributeValue("producttypecode"); + } + set + { + this.OnPropertyChanging("ProductTypeCode"); + this.SetAttributeValue("producttypecode", value); + this.OnPropertyChanged("ProductTypeCode"); + } + } + + /// + /// Type of product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("producttypecode")] + public virtual Product_ProductTypeCode? ProductTypeCodeEnum + { + get + { + return ((Product_ProductTypeCode?)(EntityOptionSetEnum.GetEnum(this, "producttypecode"))); + } + set + { + this.OnPropertyChanging("ProductTypeCode"); + this.SetAttributeValue("producttypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("ProductTypeCode"); + } + } + + /// + /// URL for the Website associated with the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("producturl")] + public string ProductUrl + { + get + { + return this.GetAttributeValue("producturl"); + } + set + { + this.OnPropertyChanging("ProductUrl"); + this.SetAttributeValue("producturl", value); + this.OnPropertyChanged("ProductUrl"); + } + } + + /// + /// Number of decimal places that can be used in monetary amounts for the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quantitydecimal")] + public System.Nullable QuantityDecimal + { + get + { + return this.GetAttributeValue>("quantitydecimal"); + } + set + { + this.OnPropertyChanging("QuantityDecimal"); + this.SetAttributeValue("quantitydecimal", value); + this.OnPropertyChanged("QuantityDecimal"); + } + } + + /// + /// Quantity of the product in stock. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quantityonhand")] + public System.Nullable QuantityOnHand + { + get + { + return this.GetAttributeValue>("quantityonhand"); + } + set + { + this.OnPropertyChanging("QuantityOnHand"); + this.SetAttributeValue("quantityonhand", value); + this.OnPropertyChanged("QuantityOnHand"); + } + } + + /// + /// Product size. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("size")] + public string Size + { + get + { + return this.GetAttributeValue("size"); + } + set + { + this.OnPropertyChanging("Size"); + this.SetAttributeValue("size", value); + this.OnPropertyChanged("Size"); + } + } + + /// + /// Contains the id of the stage where the entity is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + public System.Nullable StageId + { + get + { + return this.GetAttributeValue>("stageid"); + } + set + { + this.OnPropertyChanging("StageId"); + this.SetAttributeValue("stageid", value); + this.OnPropertyChanged("StageId"); + } + } + + /// + /// Standard cost for the product item. Used in price calculations. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardcost")] + public Microsoft.Xrm.Sdk.Money StandardCost + { + get + { + return this.GetAttributeValue("standardcost"); + } + set + { + this.OnPropertyChanging("StandardCost"); + this.SetAttributeValue("standardcost", value); + this.OnPropertyChanged("StandardCost"); + } + } + + /// + /// Value of the Standard Cost in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("standardcost_base")] + public Microsoft.Xrm.Sdk.Money StandardCost_Base + { + get + { + return this.GetAttributeValue("standardcost_base"); + } + } + + /// + /// Status of the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((CrmSdk.ProductState)(System.Enum.ToObject(typeof(CrmSdk.ProductState), optionSet.Value))); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("StateCode"); + if ((value == null)) + { + this.SetAttributeValue("statecode", null); + } + else + { + this.SetAttributeValue("statecode", new Microsoft.Xrm.Sdk.OptionSetValue(((int)(value)))); + } + this.OnPropertyChanged("StateCode"); + } + } + + /// + /// Reason for the status of the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Reason for the status of the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual Product_StatusCode? StatusCodeEnum + { + get + { + return ((Product_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Stock volume of the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stockvolume")] + public System.Nullable StockVolume + { + get + { + return this.GetAttributeValue>("stockvolume"); + } + set + { + this.OnPropertyChanging("StockVolume"); + this.SetAttributeValue("stockvolume", value); + this.OnPropertyChanged("StockVolume"); + } + } + + /// + /// Stock weight of the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stockweight")] + public System.Nullable StockWeight + { + get + { + return this.GetAttributeValue>("stockweight"); + } + set + { + this.OnPropertyChanging("StockWeight"); + this.SetAttributeValue("stockweight", value); + this.OnPropertyChanged("StockWeight"); + } + } + + /// + /// Select a category for the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subjectid")] + public Microsoft.Xrm.Sdk.EntityReference SubjectId + { + get + { + return this.GetAttributeValue("subjectid"); + } + set + { + this.OnPropertyChanging("SubjectId"); + this.SetAttributeValue("subjectid", value); + this.OnPropertyChanged("SubjectId"); + } + } + + /// + /// Name of the product's supplier. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("suppliername")] + public string SupplierName + { + get + { + return this.GetAttributeValue("suppliername"); + } + set + { + this.OnPropertyChanging("SupplierName"); + this.SetAttributeValue("suppliername", value); + this.OnPropertyChanged("SupplierName"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Unique identifier of the currency associated with the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// A comma separated list of string values representing the unique identifiers of stages in a Business Process Flow Instance in the order that they occur. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traversedpath")] + public string TraversedPath + { + get + { + return this.GetAttributeValue("traversedpath"); + } + set + { + this.OnPropertyChanging("TraversedPath"); + this.SetAttributeValue("traversedpath", value); + this.OnPropertyChanged("TraversedPath"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Date from which this product is valid. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("validfromdate")] + public System.Nullable ValidFromDate + { + get + { + return this.GetAttributeValue>("validfromdate"); + } + set + { + this.OnPropertyChanging("ValidFromDate"); + this.SetAttributeValue("validfromdate", value); + this.OnPropertyChanged("ValidFromDate"); + } + } + + /// + /// Date to which this product is valid. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("validtodate")] + public System.Nullable ValidToDate + { + get + { + return this.GetAttributeValue>("validtodate"); + } + set + { + this.OnPropertyChanging("ValidToDate"); + this.SetAttributeValue("validtodate", value); + this.OnPropertyChanged("ValidToDate"); + } + } + + /// + /// Unique identifier of vendor supplying the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("vendorid")] + public string VendorID + { + get + { + return this.GetAttributeValue("vendorid"); + } + set + { + this.OnPropertyChanging("VendorID"); + this.SetAttributeValue("vendorid", value); + this.OnPropertyChanged("VendorID"); + } + } + + /// + /// Name of the product vendor. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("vendorname")] + public string VendorName + { + get + { + return this.GetAttributeValue("vendorname"); + } + set + { + this.OnPropertyChanging("VendorName"); + this.SetAttributeValue("vendorname", value); + this.OnPropertyChanged("VendorName"); + } + } + + /// + /// Unique part identifier in vendor catalog of this product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("vendorpartnumber")] + public string VendorPartNumber + { + get + { + return this.GetAttributeValue("vendorpartnumber"); + } + set + { + this.OnPropertyChanging("VendorPartNumber"); + this.SetAttributeValue("vendorpartnumber", value); + this.OnPropertyChanged("VendorPartNumber"); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + public Product(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (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["productid"] = base.Id; + break; + case "productid": + 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; + } + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum ProductAssociationState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Draft = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + UnderRevision = 3, + } + + /// + /// Instance of a product added to a bundle or kit. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("productassociation")] + public partial class ProductAssociation : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + public static class Fields + { + public const string AssociatedProduct = "associatedproduct"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string DMTImportState = "dmtimportstate"; + public const string ExchangeRate = "exchangerate"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string OrganizationId = "organizationid"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string ProductAssociationId = "productassociationid"; + public const string Id = "productassociationid"; + public const string ProductId = "productid"; + public const string ProductIsRequired = "productisrequired"; + public const string PropertyCustomizationStatus = "propertycustomizationstatus"; + public const string Quantity = "quantity"; + public const string StateCode = "statecode"; + public const string StatusCode = "statuscode"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string TransactionCurrencyId = "transactioncurrencyid"; + public const string UoMId = "uomid"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + } + + /// + /// Default Constructor. + /// + public ProductAssociation() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "productassociation"; + + public const string EntitySchemaName = "ProductAssociation"; + + public const string PrimaryIdAttribute = "productassociationid"; + + public const string PrimaryNameAttribute = "productidname"; + + public const string EntityLogicalCollectionName = "productassociations"; + + public const string EntitySetName = "productassociations"; + + public const int EntityTypeCode = 1025; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Select a product to add to the bundle or kit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("associatedproduct")] + public Microsoft.Xrm.Sdk.EntityReference AssociatedProduct + { + get + { + return this.GetAttributeValue("associatedproduct"); + } + set + { + this.OnPropertyChanging("AssociatedProduct"); + this.SetAttributeValue("associatedproduct", value); + this.OnPropertyChanged("AssociatedProduct"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Shows who created the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + set + { + this.OnPropertyChanging("CreatedOnBehalfBy"); + this.SetAttributeValue("createdonbehalfby", value); + this.OnPropertyChanged("CreatedOnBehalfBy"); + } + } + + /// + /// Internal Use Only + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dmtimportstate")] + public System.Nullable DMTImportState + { + get + { + return this.GetAttributeValue>("dmtimportstate"); + } + set + { + this.OnPropertyChanging("DMTImportState"); + this.SetAttributeValue("dmtimportstate", value); + this.OnPropertyChanged("DMTImportState"); + } + } + + /// + /// Shows the conversion rate of the record's currency. The exchange rate is used to convert all money fields in the record from the local currency to the system's default currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Shows who created the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + set + { + this.OnPropertyChanging("ModifiedOnBehalfBy"); + this.SetAttributeValue("modifiedonbehalfby", value); + this.OnPropertyChanged("ModifiedOnBehalfBy"); + } + } + + /// + /// Unique identifier for the organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Shows the unique identifier of the product association. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productassociationid")] + public System.Nullable ProductAssociationId + { + get + { + return this.GetAttributeValue>("productassociationid"); + } + set + { + this.OnPropertyChanging("ProductAssociationId"); + this.SetAttributeValue("productassociationid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ProductAssociationId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productassociationid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ProductAssociationId = value; + } + } + + /// + /// Select a bundle or a kit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public Microsoft.Xrm.Sdk.EntityReference ProductId + { + get + { + return this.GetAttributeValue("productid"); + } + set + { + this.OnPropertyChanging("ProductId"); + this.SetAttributeValue("productid", value); + this.OnPropertyChanged("ProductId"); + } + } + + /// + /// Select whether the associated product is required or optional. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productisrequired")] + public Microsoft.Xrm.Sdk.OptionSetValue ProductIsRequired + { + get + { + return this.GetAttributeValue("productisrequired"); + } + set + { + this.OnPropertyChanging("ProductIsRequired"); + this.SetAttributeValue("productisrequired", value); + this.OnPropertyChanged("ProductIsRequired"); + } + } + + /// + /// Select whether the associated product is required or optional. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productisrequired")] + public virtual ProductAssociation_ProductIsRequired? ProductIsRequiredEnum + { + get + { + return ((ProductAssociation_ProductIsRequired?)(EntityOptionSetEnum.GetEnum(this, "productisrequired"))); + } + set + { + this.OnPropertyChanging("ProductIsRequired"); + this.SetAttributeValue("productisrequired", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("ProductIsRequired"); + } + } + + /// + /// Shows whether the item has properties that can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("propertycustomizationstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue PropertyCustomizationStatus + { + get + { + return this.GetAttributeValue("propertycustomizationstatus"); + } + set + { + this.OnPropertyChanging("PropertyCustomizationStatus"); + this.SetAttributeValue("propertycustomizationstatus", value); + this.OnPropertyChanged("PropertyCustomizationStatus"); + } + } + + /// + /// Shows whether the item has properties that can be customized. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("propertycustomizationstatus")] + public virtual ProductAssociation_PropertyCustomizationStatus? PropertyCustomizationStatusEnum + { + get + { + return ((ProductAssociation_PropertyCustomizationStatus?)(EntityOptionSetEnum.GetEnum(this, "propertycustomizationstatus"))); + } + set + { + this.OnPropertyChanging("PropertyCustomizationStatus"); + this.SetAttributeValue("propertycustomizationstatus", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PropertyCustomizationStatus"); + } + } + + /// + /// Type the quantity of the products added to the bundle or kit. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quantity")] + public System.Nullable Quantity + { + get + { + return this.GetAttributeValue>("quantity"); + } + set + { + this.OnPropertyChanging("Quantity"); + this.SetAttributeValue("quantity", value); + this.OnPropertyChanged("Quantity"); + } + } + + /// + /// Shows whether the associated product is active or inactive. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((CrmSdk.ProductAssociationState)(System.Enum.ToObject(typeof(CrmSdk.ProductAssociationState), optionSet.Value))); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("StateCode"); + if ((value == null)) + { + this.SetAttributeValue("statecode", null); + } + else + { + this.SetAttributeValue("statecode", new Microsoft.Xrm.Sdk.OptionSetValue(((int)(value)))); + } + this.OnPropertyChanged("StateCode"); + } + } + + /// + /// Select the associated product's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Select the associated product's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual ProductAssociation_StatusCode? StatusCodeEnum + { + get + { + return ((ProductAssociation_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Shows the currency associated with the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// Shows the unit of the product association. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + public Microsoft.Xrm.Sdk.EntityReference UoMId + { + get + { + return this.GetAttributeValue("uomid"); + } + set + { + this.OnPropertyChanging("UoMId"); + this.SetAttributeValue("uomid", value); + this.OnPropertyChanged("UoMId"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + public ProductAssociation(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (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["productassociationid"] = base.Id; + break; + case "productassociationid": + 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; + } + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum ProductSubstituteState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Information about the selling relationship between two products, including the relationship type, such as up-sell, cross-sell, substitute, or accessory. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("productsubstitute")] + public partial class ProductSubstitute : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + public static class Fields + { + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string Direction = "direction"; + public const string ExchangeRate = "exchangerate"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OrganizationId = "organizationid"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string ProductId = "productid"; + public const string ProductSubstituteId = "productsubstituteid"; + public const string Id = "productsubstituteid"; + public const string SalesRelationshipType = "salesrelationshiptype"; + public const string StateCode = "statecode"; + public const string StatusCode = "statuscode"; + public const string SubstitutedProductId = "substitutedproductid"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string TransactionCurrencyId = "transactioncurrencyid"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + } + + /// + /// Default Constructor. + /// + public ProductSubstitute() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "productsubstitute"; + + public const string EntitySchemaName = "ProductSubstitute"; + + public const string PrimaryIdAttribute = "productsubstituteid"; + + public const string PrimaryNameAttribute = "name"; + + public const string EntityLogicalCollectionName = "productsubstitutes"; + + public const string EntitySetName = "productsubstitutes"; + + public const int EntityTypeCode = 1028; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Shows who created the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + set + { + this.OnPropertyChanging("CreatedOnBehalfBy"); + this.SetAttributeValue("createdonbehalfby", value); + this.OnPropertyChanged("CreatedOnBehalfBy"); + } + } + + /// + /// Select whether the relationship is unidirectional or bidirectional. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("direction")] + public Microsoft.Xrm.Sdk.OptionSetValue Direction + { + get + { + return this.GetAttributeValue("direction"); + } + set + { + this.OnPropertyChanging("Direction"); + this.SetAttributeValue("direction", value); + this.OnPropertyChanged("Direction"); + } + } + + /// + /// Select whether the relationship is unidirectional or bidirectional. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("direction")] + public virtual ProductSubstitute_Direction? DirectionEnum + { + get + { + return ((ProductSubstitute_Direction?)(EntityOptionSetEnum.GetEnum(this, "direction"))); + } + set + { + this.OnPropertyChanging("Direction"); + this.SetAttributeValue("direction", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Direction"); + } + } + + /// + /// Shows the conversion rate of the record's currency. The exchange rate is used to convert all money fields in the record from the local currency to the system's default currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Shows who created the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + set + { + this.OnPropertyChanging("ModifiedOnBehalfBy"); + this.SetAttributeValue("modifiedonbehalfby", value); + this.OnPropertyChanged("ModifiedOnBehalfBy"); + } + } + + /// + /// name + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Unique identifier for the organization + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] + public Microsoft.Xrm.Sdk.EntityReference OrganizationId + { + get + { + return this.GetAttributeValue("organizationid"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Shows the product that the relationship is defined for. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public Microsoft.Xrm.Sdk.EntityReference ProductId + { + get + { + return this.GetAttributeValue("productid"); + } + set + { + this.OnPropertyChanging("ProductId"); + this.SetAttributeValue("productid", value); + this.OnPropertyChanged("ProductId"); + } + } + + /// + /// Shows the unique identifier of the product relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productsubstituteid")] + public System.Nullable ProductSubstituteId + { + get + { + return this.GetAttributeValue>("productsubstituteid"); + } + set + { + this.OnPropertyChanging("ProductSubstituteId"); + this.SetAttributeValue("productsubstituteid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ProductSubstituteId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productsubstituteid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ProductSubstituteId = value; + } + } + + /// + /// Select the type of the product relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesrelationshiptype")] + public Microsoft.Xrm.Sdk.OptionSetValue SalesRelationshipType + { + get + { + return this.GetAttributeValue("salesrelationshiptype"); + } + set + { + this.OnPropertyChanging("SalesRelationshipType"); + this.SetAttributeValue("salesrelationshiptype", value); + this.OnPropertyChanged("SalesRelationshipType"); + } + } + + /// + /// Select the type of the product relationship. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesrelationshiptype")] + public virtual ProductSubstitute_SalesRelationshipType? SalesRelationshipTypeEnum + { + get + { + return ((ProductSubstitute_SalesRelationshipType?)(EntityOptionSetEnum.GetEnum(this, "salesrelationshiptype"))); + } + set + { + this.OnPropertyChanging("SalesRelationshipType"); + this.SetAttributeValue("salesrelationshiptype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("SalesRelationshipType"); + } + } + + /// + /// Select the product relationship's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((CrmSdk.ProductSubstituteState)(System.Enum.ToObject(typeof(CrmSdk.ProductSubstituteState), optionSet.Value))); + } + else + { + return null; + } + } + } + + /// + /// Shows whether the product relationship is active or inactive. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Shows whether the product relationship is active or inactive. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual ProductSubstitute_StatusCode? StatusCodeEnum + { + get + { + return ((ProductSubstitute_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Select the related product that the relationship needs to be defined for. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("substitutedproductid")] + public Microsoft.Xrm.Sdk.EntityReference SubstitutedProductId + { + get + { + return this.GetAttributeValue("substitutedproductid"); + } + set + { + this.OnPropertyChanging("SubstitutedProductId"); + this.SetAttributeValue("substitutedproductid", value); + this.OnPropertyChanged("SubstitutedProductId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Shows the currency associated with the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + public ProductSubstitute(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (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["productsubstituteid"] = base.Id; + break; + case "productsubstituteid": + 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; + } + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum QuoteState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Draft = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Won = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Closed = 3, + } + + /// + /// Formal offer for products and/or services, proposed at specific prices and related payment terms, which is sent to a prospective customer. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("quote")] + public partial class Quote : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + public static class Fields + { + public const string AccountId = "accountid"; + public const string BillTo_AddressId = "billto_addressid"; + public const string BillTo_City = "billto_city"; + public const string BillTo_Composite = "billto_composite"; + public const string BillTo_ContactName = "billto_contactname"; + public const string BillTo_Country = "billto_country"; + public const string BillTo_Fax = "billto_fax"; + public const string BillTo_Line1 = "billto_line1"; + public const string BillTo_Line2 = "billto_line2"; + public const string BillTo_Line3 = "billto_line3"; + public const string BillTo_Name = "billto_name"; + public const string BillTo_PostalCode = "billto_postalcode"; + public const string BillTo_StateOrProvince = "billto_stateorprovince"; + public const string BillTo_Telephone = "billto_telephone"; + public const string CampaignId = "campaignid"; + public const string ClosedOn = "closedon"; + public const string ContactId = "contactid"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CustomerId = "customerid"; + public const string Description = "description"; + public const string DiscountAmount = "discountamount"; + public const string DiscountAmount_Base = "discountamount_base"; + public const string DiscountPercentage = "discountpercentage"; + public const string EffectiveFrom = "effectivefrom"; + public const string EffectiveTo = "effectiveto"; + public const string EmailAddress = "emailaddress"; + public const string ExchangeRate = "exchangerate"; + public const string ExpiresOn = "expireson"; + public const string FreightAmount = "freightamount"; + public const string FreightAmount_Base = "freightamount_base"; + public const string FreightTermsCode = "freighttermscode"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string LastOnHoldTime = "lastonholdtime"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OnHoldTime = "onholdtime"; + public const string OpportunityId = "opportunityid"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OwnerId = "ownerid"; + public const string OwningBusinessUnit = "owningbusinessunit"; + public const string OwningTeam = "owningteam"; + public const string OwningUser = "owninguser"; + public const string PaymentTermsCode = "paymenttermscode"; + public const string PriceLevelId = "pricelevelid"; + public const string PricingErrorCode = "pricingerrorcode"; + public const string ProcessId = "processid"; + public const string QuoteId = "quoteid"; + public const string Id = "quoteid"; + public const string QuoteNumber = "quotenumber"; + public const string RequestDeliveryBy = "requestdeliveryby"; + public const string RevisionNumber = "revisionnumber"; + public const string ShippingMethodCode = "shippingmethodcode"; + public const string ShipTo_AddressId = "shipto_addressid"; + public const string ShipTo_City = "shipto_city"; + public const string ShipTo_Composite = "shipto_composite"; + public const string ShipTo_ContactName = "shipto_contactname"; + public const string ShipTo_Country = "shipto_country"; + public const string ShipTo_Fax = "shipto_fax"; + public const string ShipTo_FreightTermsCode = "shipto_freighttermscode"; + public const string ShipTo_Line1 = "shipto_line1"; + public const string ShipTo_Line2 = "shipto_line2"; + public const string ShipTo_Line3 = "shipto_line3"; + public const string ShipTo_Name = "shipto_name"; + public const string ShipTo_PostalCode = "shipto_postalcode"; + public const string ShipTo_StateOrProvince = "shipto_stateorprovince"; + public const string ShipTo_Telephone = "shipto_telephone"; + public const string SkipPriceCalculation = "skippricecalculation"; + public const string SLAId = "slaid"; + public const string SLAInvokedId = "slainvokedid"; + public const string StageId = "stageid"; + public const string StateCode = "statecode"; + public const string StatusCode = "statuscode"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string TotalAmount = "totalamount"; + public const string TotalAmount_Base = "totalamount_base"; + public const string TotalAmountLessFreight = "totalamountlessfreight"; + public const string TotalAmountLessFreight_Base = "totalamountlessfreight_base"; + public const string TotalDiscountAmount = "totaldiscountamount"; + public const string TotalDiscountAmount_Base = "totaldiscountamount_base"; + public const string TotalLineItemAmount = "totallineitemamount"; + public const string TotalLineItemAmount_Base = "totallineitemamount_base"; + public const string TotalLineItemDiscountAmount = "totallineitemdiscountamount"; + public const string TotalLineItemDiscountAmount_Base = "totallineitemdiscountamount_base"; + public const string TotalTax = "totaltax"; + public const string TotalTax_Base = "totaltax_base"; + public const string TransactionCurrencyId = "transactioncurrencyid"; + public const string TraversedPath = "traversedpath"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + public const string WillCall = "willcall"; + } + + /// + /// Default Constructor. + /// + public Quote() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "quote"; + + public const string EntitySchemaName = "Quote"; + + public const string PrimaryIdAttribute = "quoteid"; + + public const string PrimaryNameAttribute = "name"; + + public const string EntityLogicalCollectionName = "quotes"; + + public const string EntitySetName = "quotes"; + + public const int EntityTypeCode = 1084; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Unique identifier of the account with which the quote is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// Unique identifier of the billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_addressid")] + public System.Nullable BillTo_AddressId + { + get + { + return this.GetAttributeValue>("billto_addressid"); + } + set + { + this.OnPropertyChanging("BillTo_AddressId"); + this.SetAttributeValue("billto_addressid", value); + this.OnPropertyChanged("BillTo_AddressId"); + } + } + + /// + /// Type the city for the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_city")] + public string BillTo_City + { + get + { + return this.GetAttributeValue("billto_city"); + } + set + { + this.OnPropertyChanging("BillTo_City"); + this.SetAttributeValue("billto_city", value); + this.OnPropertyChanged("BillTo_City"); + } + } + + /// + /// Shows the complete Bill To address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_composite")] + public string BillTo_Composite + { + get + { + return this.GetAttributeValue("billto_composite"); + } + } + + /// + /// Type the primary contact name at the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_contactname")] + public string BillTo_ContactName + { + get + { + return this.GetAttributeValue("billto_contactname"); + } + set + { + this.OnPropertyChanging("BillTo_ContactName"); + this.SetAttributeValue("billto_contactname", value); + this.OnPropertyChanged("BillTo_ContactName"); + } + } + + /// + /// Type the country or region for the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_country")] + public string BillTo_Country + { + get + { + return this.GetAttributeValue("billto_country"); + } + set + { + this.OnPropertyChanging("BillTo_Country"); + this.SetAttributeValue("billto_country", value); + this.OnPropertyChanged("BillTo_Country"); + } + } + + /// + /// Type the fax number for the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_fax")] + public string BillTo_Fax + { + get + { + return this.GetAttributeValue("billto_fax"); + } + set + { + this.OnPropertyChanging("BillTo_Fax"); + this.SetAttributeValue("billto_fax", value); + this.OnPropertyChanged("BillTo_Fax"); + } + } + + /// + /// Type the first line of the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_line1")] + public string BillTo_Line1 + { + get + { + return this.GetAttributeValue("billto_line1"); + } + set + { + this.OnPropertyChanging("BillTo_Line1"); + this.SetAttributeValue("billto_line1", value); + this.OnPropertyChanged("BillTo_Line1"); + } + } + + /// + /// Type the second line of the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_line2")] + public string BillTo_Line2 + { + get + { + return this.GetAttributeValue("billto_line2"); + } + set + { + this.OnPropertyChanging("BillTo_Line2"); + this.SetAttributeValue("billto_line2", value); + this.OnPropertyChanged("BillTo_Line2"); + } + } + + /// + /// Type the third line of the billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_line3")] + public string BillTo_Line3 + { + get + { + return this.GetAttributeValue("billto_line3"); + } + set + { + this.OnPropertyChanging("BillTo_Line3"); + this.SetAttributeValue("billto_line3", value); + this.OnPropertyChanged("BillTo_Line3"); + } + } + + /// + /// Type a name for the customer's billing address, such as "Headquarters" or "Field office", to identify the address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_name")] + public string BillTo_Name + { + get + { + return this.GetAttributeValue("billto_name"); + } + set + { + this.OnPropertyChanging("BillTo_Name"); + this.SetAttributeValue("billto_name", value); + this.OnPropertyChanged("BillTo_Name"); + } + } + + /// + /// Type the ZIP Code or postal code for the billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_postalcode")] + public string BillTo_PostalCode + { + get + { + return this.GetAttributeValue("billto_postalcode"); + } + set + { + this.OnPropertyChanging("BillTo_PostalCode"); + this.SetAttributeValue("billto_postalcode", value); + this.OnPropertyChanged("BillTo_PostalCode"); + } + } + + /// + /// Type the state or province for the billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_stateorprovince")] + public string BillTo_StateOrProvince + { + get + { + return this.GetAttributeValue("billto_stateorprovince"); + } + set + { + this.OnPropertyChanging("BillTo_StateOrProvince"); + this.SetAttributeValue("billto_stateorprovince", value); + this.OnPropertyChanged("BillTo_StateOrProvince"); + } + } + + /// + /// Type the phone number for the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_telephone")] + public string BillTo_Telephone + { + get + { + return this.GetAttributeValue("billto_telephone"); + } + set + { + this.OnPropertyChanging("BillTo_Telephone"); + this.SetAttributeValue("billto_telephone", value); + this.OnPropertyChanged("BillTo_Telephone"); + } + } + + /// + /// Shows the campaign that the order was created from. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + public Microsoft.Xrm.Sdk.EntityReference CampaignId + { + get + { + return this.GetAttributeValue("campaignid"); + } + set + { + this.OnPropertyChanging("CampaignId"); + this.SetAttributeValue("campaignid", value); + this.OnPropertyChanged("CampaignId"); + } + } + + /// + /// Enter the date when the quote was closed to indicate the expiration, revision, or cancellation date. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("closedon")] + public System.Nullable ClosedOn + { + get + { + return this.GetAttributeValue>("closedon"); + } + set + { + this.OnPropertyChanging("ClosedOn"); + this.SetAttributeValue("closedon", value); + this.OnPropertyChanged("ClosedOn"); + } + } + + /// + /// Unique identifier of the contact associated with the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public Microsoft.Xrm.Sdk.EntityReference ContactId + { + get + { + return this.GetAttributeValue("contactid"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Shows who created the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + set + { + this.OnPropertyChanging("CreatedOnBehalfBy"); + this.SetAttributeValue("createdonbehalfby", value); + this.OnPropertyChanged("CreatedOnBehalfBy"); + } + } + + /// + /// Select the customer account or contact to provide a quick link to additional customer details, such as account information, activities, and opportunities. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + public Microsoft.Xrm.Sdk.EntityReference CustomerId + { + get + { + return this.GetAttributeValue("customerid"); + } + set + { + this.OnPropertyChanging("CustomerId"); + this.SetAttributeValue("customerid", value); + this.OnPropertyChanged("CustomerId"); + } + } + + /// + /// Type additional information to describe the quote, such as the products or services offered or details about the customer's product preferences. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Type the discount amount for the quote if the customer is eligible for special savings. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discountamount")] + public Microsoft.Xrm.Sdk.Money DiscountAmount + { + get + { + return this.GetAttributeValue("discountamount"); + } + set + { + this.OnPropertyChanging("DiscountAmount"); + this.SetAttributeValue("discountamount", value); + this.OnPropertyChanged("DiscountAmount"); + } + } + + /// + /// Value of the Quote Discount Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discountamount_base")] + public Microsoft.Xrm.Sdk.Money DiscountAmount_Base + { + get + { + return this.GetAttributeValue("discountamount_base"); + } + } + + /// + /// Type the discount rate that should be applied to the Detail Amount field to include additional savings for the customer in the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discountpercentage")] + public System.Nullable DiscountPercentage + { + get + { + return this.GetAttributeValue>("discountpercentage"); + } + set + { + this.OnPropertyChanging("DiscountPercentage"); + this.SetAttributeValue("discountpercentage", value); + this.OnPropertyChanged("DiscountPercentage"); + } + } + + /// + /// Enter the date when the quote pricing is effective or was first communicated to the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectivefrom")] + public System.Nullable EffectiveFrom + { + get + { + return this.GetAttributeValue>("effectivefrom"); + } + set + { + this.OnPropertyChanging("EffectiveFrom"); + this.SetAttributeValue("effectivefrom", value); + this.OnPropertyChanged("EffectiveFrom"); + } + } + + /// + /// Enter the expiration date or last day the quote pricing is effective for the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("effectiveto")] + public System.Nullable EffectiveTo + { + get + { + return this.GetAttributeValue>("effectiveto"); + } + set + { + this.OnPropertyChanging("EffectiveTo"); + this.SetAttributeValue("effectiveto", value); + this.OnPropertyChanged("EffectiveTo"); + } + } + + /// + /// The primary email address for the entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EmailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EmailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EmailAddress"); + } + } + + /// + /// Shows the conversion rate of the record's currency. The exchange rate is used to convert all money fields in the record from the local currency to the system's default currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Enter the date a decision or order is due from the customer to indicate the expiration date of the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("expireson")] + public System.Nullable ExpiresOn + { + get + { + return this.GetAttributeValue>("expireson"); + } + set + { + this.OnPropertyChanging("ExpiresOn"); + this.SetAttributeValue("expireson", value); + this.OnPropertyChanged("ExpiresOn"); + } + } + + /// + /// Type the cost of freight or shipping for the products included in the quote for use in calculating the Total Amount field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("freightamount")] + public Microsoft.Xrm.Sdk.Money FreightAmount + { + get + { + return this.GetAttributeValue("freightamount"); + } + set + { + this.OnPropertyChanging("FreightAmount"); + this.SetAttributeValue("freightamount", value); + this.OnPropertyChanged("FreightAmount"); + } + } + + /// + /// Value of the Freight Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("freightamount_base")] + public Microsoft.Xrm.Sdk.Money FreightAmount_Base + { + get + { + return this.GetAttributeValue("freightamount_base"); + } + } + + /// + /// Select the freight terms to make sure shipping charges are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("freighttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue FreightTermsCode + { + get + { + return this.GetAttributeValue("freighttermscode"); + } + set + { + this.OnPropertyChanging("FreightTermsCode"); + this.SetAttributeValue("freighttermscode", value); + this.OnPropertyChanged("FreightTermsCode"); + } + } + + /// + /// Select the freight terms to make sure shipping charges are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("freighttermscode")] + public virtual Quote_FreightTermsCode? FreightTermsCodeEnum + { + get + { + return ((Quote_FreightTermsCode?)(EntityOptionSetEnum.GetEnum(this, "freighttermscode"))); + } + set + { + this.OnPropertyChanging("FreightTermsCode"); + this.SetAttributeValue("freighttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("FreightTermsCode"); + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Contains the date time stamp of the last on hold time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastonholdtime")] + public System.Nullable LastOnHoldTime + { + get + { + return this.GetAttributeValue>("lastonholdtime"); + } + set + { + this.OnPropertyChanging("LastOnHoldTime"); + this.SetAttributeValue("lastonholdtime", value); + this.OnPropertyChanged("LastOnHoldTime"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Shows who last updated the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + set + { + this.OnPropertyChanging("ModifiedOnBehalfBy"); + this.SetAttributeValue("modifiedonbehalfby", value); + this.OnPropertyChanged("ModifiedOnBehalfBy"); + } + } + + /// + /// Type a descriptive name for the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Shows the duration in minutes for which the quote was on hold. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("onholdtime")] + public System.Nullable OnHoldTime + { + get + { + return this.GetAttributeValue>("onholdtime"); + } + } + + /// + /// Choose the opportunity that the quote is related to for reporting and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + public Microsoft.Xrm.Sdk.EntityReference OpportunityId + { + get + { + return this.GetAttributeValue("opportunityid"); + } + set + { + this.OnPropertyChanging("OpportunityId"); + this.SetAttributeValue("opportunityid", value); + this.OnPropertyChanged("OpportunityId"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Owner Id + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + set + { + this.OnPropertyChanging("OwnerId"); + this.SetAttributeValue("ownerid", value); + this.OnPropertyChanged("OwnerId"); + } + } + + /// + /// Unique identifier for the business unit that owns the record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + 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 + { + 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 + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Select the payment terms to indicate when the customer needs to pay the total amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("paymenttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue PaymentTermsCode + { + get + { + return this.GetAttributeValue("paymenttermscode"); + } + set + { + this.OnPropertyChanging("PaymentTermsCode"); + this.SetAttributeValue("paymenttermscode", value); + this.OnPropertyChanged("PaymentTermsCode"); + } + } + + /// + /// Select the payment terms to indicate when the customer needs to pay the total amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("paymenttermscode")] + public virtual Quote_PaymentTermsCode? PaymentTermsCodeEnum + { + get + { + return ((Quote_PaymentTermsCode?)(EntityOptionSetEnum.GetEnum(this, "paymenttermscode"))); + } + set + { + this.OnPropertyChanging("PaymentTermsCode"); + this.SetAttributeValue("paymenttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PaymentTermsCode"); + } + } + + /// + /// Choose the price list associated with this record to make sure the products associated with the campaign are offered at the correct prices. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + public Microsoft.Xrm.Sdk.EntityReference PriceLevelId + { + get + { + return this.GetAttributeValue("pricelevelid"); + } + set + { + this.OnPropertyChanging("PriceLevelId"); + this.SetAttributeValue("pricelevelid", value); + this.OnPropertyChanged("PriceLevelId"); + } + } + + /// + /// Pricing error for the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricingerrorcode")] + public Microsoft.Xrm.Sdk.OptionSetValue PricingErrorCode + { + get + { + return this.GetAttributeValue("pricingerrorcode"); + } + set + { + this.OnPropertyChanging("PricingErrorCode"); + this.SetAttributeValue("pricingerrorcode", value); + this.OnPropertyChanged("PricingErrorCode"); + } + } + + /// + /// Pricing error for the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricingerrorcode")] + public virtual Qooi_PricingErrorCode? PricingErrorCodeEnum + { + get + { + return ((Qooi_PricingErrorCode?)(EntityOptionSetEnum.GetEnum(this, "pricingerrorcode"))); + } + set + { + this.OnPropertyChanging("PricingErrorCode"); + this.SetAttributeValue("pricingerrorcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PricingErrorCode"); + } + } + + /// + /// Contains the id of the process associated with the entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteid")] + public System.Nullable QuoteId + { + get + { + return this.GetAttributeValue>("quoteid"); + } + set + { + this.OnPropertyChanging("QuoteId"); + this.SetAttributeValue("quoteid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("QuoteId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.QuoteId = value; + } + } + + /// + /// Shows the quote number for customer reference and searching capabilities. The number cannot be modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quotenumber")] + public string QuoteNumber + { + get + { + return this.GetAttributeValue("quotenumber"); + } + set + { + this.OnPropertyChanging("QuoteNumber"); + this.SetAttributeValue("quotenumber", value); + this.OnPropertyChanged("QuoteNumber"); + } + } + + /// + /// Enter the delivery date requested by the customer for all products in the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requestdeliveryby")] + public System.Nullable RequestDeliveryBy + { + get + { + return this.GetAttributeValue>("requestdeliveryby"); + } + set + { + this.OnPropertyChanging("RequestDeliveryBy"); + this.SetAttributeValue("requestdeliveryby", value); + this.OnPropertyChanged("RequestDeliveryBy"); + } + } + + /// + /// Shows the version number of the quote for revision history tracking. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("revisionnumber")] + public System.Nullable RevisionNumber + { + get + { + return this.GetAttributeValue>("revisionnumber"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shippingmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ShippingMethodCode + { + get + { + return this.GetAttributeValue("shippingmethodcode"); + } + set + { + this.OnPropertyChanging("ShippingMethodCode"); + this.SetAttributeValue("shippingmethodcode", value); + this.OnPropertyChanged("ShippingMethodCode"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shippingmethodcode")] + public virtual Quote_ShippingMethodCode? ShippingMethodCodeEnum + { + get + { + return ((Quote_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "shippingmethodcode"))); + } + set + { + this.OnPropertyChanging("ShippingMethodCode"); + this.SetAttributeValue("shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("ShippingMethodCode"); + } + } + + /// + /// Unique identifier of the shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_addressid")] + public System.Nullable ShipTo_AddressId + { + get + { + return this.GetAttributeValue>("shipto_addressid"); + } + set + { + this.OnPropertyChanging("ShipTo_AddressId"); + this.SetAttributeValue("shipto_addressid", value); + this.OnPropertyChanged("ShipTo_AddressId"); + } + } + + /// + /// Type the city for the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_city")] + public string ShipTo_City + { + get + { + return this.GetAttributeValue("shipto_city"); + } + set + { + this.OnPropertyChanging("ShipTo_City"); + this.SetAttributeValue("shipto_city", value); + this.OnPropertyChanged("ShipTo_City"); + } + } + + /// + /// Shows the complete Ship To address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_composite")] + public string ShipTo_Composite + { + get + { + return this.GetAttributeValue("shipto_composite"); + } + } + + /// + /// Type the primary contact name at the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_contactname")] + public string ShipTo_ContactName + { + get + { + return this.GetAttributeValue("shipto_contactname"); + } + set + { + this.OnPropertyChanging("ShipTo_ContactName"); + this.SetAttributeValue("shipto_contactname", value); + this.OnPropertyChanged("ShipTo_ContactName"); + } + } + + /// + /// Type the country or region for the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_country")] + public string ShipTo_Country + { + get + { + return this.GetAttributeValue("shipto_country"); + } + set + { + this.OnPropertyChanging("ShipTo_Country"); + this.SetAttributeValue("shipto_country", value); + this.OnPropertyChanged("ShipTo_Country"); + } + } + + /// + /// Type the fax number for the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_fax")] + public string ShipTo_Fax + { + get + { + return this.GetAttributeValue("shipto_fax"); + } + set + { + this.OnPropertyChanging("ShipTo_Fax"); + this.SetAttributeValue("shipto_fax", value); + this.OnPropertyChanged("ShipTo_Fax"); + } + } + + /// + /// Select the freight terms to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_freighttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue ShipTo_FreightTermsCode + { + get + { + return this.GetAttributeValue("shipto_freighttermscode"); + } + set + { + this.OnPropertyChanging("ShipTo_FreightTermsCode"); + this.SetAttributeValue("shipto_freighttermscode", value); + this.OnPropertyChanged("ShipTo_FreightTermsCode"); + } + } + + /// + /// Select the freight terms to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_freighttermscode")] + public virtual Quote_ShipTo_FreightTermsCode? ShipTo_FreightTermsCodeEnum + { + get + { + return ((Quote_ShipTo_FreightTermsCode?)(EntityOptionSetEnum.GetEnum(this, "shipto_freighttermscode"))); + } + set + { + this.OnPropertyChanging("ShipTo_FreightTermsCode"); + this.SetAttributeValue("shipto_freighttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("ShipTo_FreightTermsCode"); + } + } + + /// + /// Type the first line of the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_line1")] + public string ShipTo_Line1 + { + get + { + return this.GetAttributeValue("shipto_line1"); + } + set + { + this.OnPropertyChanging("ShipTo_Line1"); + this.SetAttributeValue("shipto_line1", value); + this.OnPropertyChanged("ShipTo_Line1"); + } + } + + /// + /// Type the second line of the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_line2")] + public string ShipTo_Line2 + { + get + { + return this.GetAttributeValue("shipto_line2"); + } + set + { + this.OnPropertyChanging("ShipTo_Line2"); + this.SetAttributeValue("shipto_line2", value); + this.OnPropertyChanged("ShipTo_Line2"); + } + } + + /// + /// Type the third line of the shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_line3")] + public string ShipTo_Line3 + { + get + { + return this.GetAttributeValue("shipto_line3"); + } + set + { + this.OnPropertyChanging("ShipTo_Line3"); + this.SetAttributeValue("shipto_line3", value); + this.OnPropertyChanged("ShipTo_Line3"); + } + } + + /// + /// Type a name for the customer's shipping address, such as "Headquarters" or "Field office", to identify the address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_name")] + public string ShipTo_Name + { + get + { + return this.GetAttributeValue("shipto_name"); + } + set + { + this.OnPropertyChanging("ShipTo_Name"); + this.SetAttributeValue("shipto_name", value); + this.OnPropertyChanged("ShipTo_Name"); + } + } + + /// + /// Type the ZIP Code or postal code for the shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_postalcode")] + public string ShipTo_PostalCode + { + get + { + return this.GetAttributeValue("shipto_postalcode"); + } + set + { + this.OnPropertyChanging("ShipTo_PostalCode"); + this.SetAttributeValue("shipto_postalcode", value); + this.OnPropertyChanged("ShipTo_PostalCode"); + } + } + + /// + /// Type the state or province for the shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_stateorprovince")] + public string ShipTo_StateOrProvince + { + get + { + return this.GetAttributeValue("shipto_stateorprovince"); + } + set + { + this.OnPropertyChanging("ShipTo_StateOrProvince"); + this.SetAttributeValue("shipto_stateorprovince", value); + this.OnPropertyChanged("ShipTo_StateOrProvince"); + } + } + + /// + /// Type the phone number for the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_telephone")] + public string ShipTo_Telephone + { + get + { + return this.GetAttributeValue("shipto_telephone"); + } + set + { + this.OnPropertyChanging("ShipTo_Telephone"); + this.SetAttributeValue("shipto_telephone", value); + this.OnPropertyChanged("ShipTo_Telephone"); + } + } + + /// + /// Skip Price Calculation (For Internal use) + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("skippricecalculation")] + public Microsoft.Xrm.Sdk.OptionSetValue SkipPriceCalculation + { + get + { + return this.GetAttributeValue("skippricecalculation"); + } + set + { + this.OnPropertyChanging("SkipPriceCalculation"); + this.SetAttributeValue("skippricecalculation", value); + this.OnPropertyChanged("SkipPriceCalculation"); + } + } + + /// + /// Skip Price Calculation (For Internal use) + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("skippricecalculation")] + public virtual qooi_skippricecalculation? SkipPriceCalculationEnum + { + get + { + return ((qooi_skippricecalculation?)(EntityOptionSetEnum.GetEnum(this, "skippricecalculation"))); + } + set + { + this.OnPropertyChanging("SkipPriceCalculation"); + this.SetAttributeValue("skippricecalculation", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("SkipPriceCalculation"); + } + } + + /// + /// Choose the service level agreement (SLA) that you want to apply to the quote record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("slaid")] + public Microsoft.Xrm.Sdk.EntityReference SLAId + { + get + { + return this.GetAttributeValue("slaid"); + } + set + { + this.OnPropertyChanging("SLAId"); + this.SetAttributeValue("slaid", value); + this.OnPropertyChanged("SLAId"); + } + } + + /// + /// Last SLA that was applied to this quote. This field is for internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("slainvokedid")] + public Microsoft.Xrm.Sdk.EntityReference SLAInvokedId + { + get + { + return this.GetAttributeValue("slainvokedid"); + } + } + + /// + /// Contains the id of the stage where the entity is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + public System.Nullable StageId + { + get + { + return this.GetAttributeValue>("stageid"); + } + set + { + this.OnPropertyChanging("StageId"); + this.SetAttributeValue("stageid", value); + this.OnPropertyChanged("StageId"); + } + } + + /// + /// Shows whether the quote is draft, active, won, or closed. Only draft quotes can be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((CrmSdk.QuoteState)(System.Enum.ToObject(typeof(CrmSdk.QuoteState), optionSet.Value))); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("StateCode"); + if ((value == null)) + { + this.SetAttributeValue("statecode", null); + } + else + { + this.SetAttributeValue("statecode", new Microsoft.Xrm.Sdk.OptionSetValue(((int)(value)))); + } + this.OnPropertyChanged("StateCode"); + } + } + + /// + /// Select the quote's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Shows the total amount due, calculated as the sum of the products, discounts, freight, and taxes for the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamount")] + public Microsoft.Xrm.Sdk.Money TotalAmount + { + get + { + return this.GetAttributeValue("totalamount"); + } + set + { + this.OnPropertyChanging("TotalAmount"); + this.SetAttributeValue("totalamount", value); + this.OnPropertyChanged("TotalAmount"); + } + } + + /// + /// Value of the Total Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamount_base")] + public Microsoft.Xrm.Sdk.Money TotalAmount_Base + { + get + { + return this.GetAttributeValue("totalamount_base"); + } + } + + /// + /// Shows the total product amount for the quote, minus any discounts. This value is added to freight and tax amounts in the calculation for the total amount due for the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamountlessfreight")] + public Microsoft.Xrm.Sdk.Money TotalAmountLessFreight + { + get + { + return this.GetAttributeValue("totalamountlessfreight"); + } + set + { + this.OnPropertyChanging("TotalAmountLessFreight"); + this.SetAttributeValue("totalamountlessfreight", value); + this.OnPropertyChanged("TotalAmountLessFreight"); + } + } + + /// + /// Value of the Total Pre-Freight Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamountlessfreight_base")] + public Microsoft.Xrm.Sdk.Money TotalAmountLessFreight_Base + { + get + { + return this.GetAttributeValue("totalamountlessfreight_base"); + } + } + + /// + /// Shows the total discount amount, based on the discount price and rate entered on the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaldiscountamount")] + public Microsoft.Xrm.Sdk.Money TotalDiscountAmount + { + get + { + return this.GetAttributeValue("totaldiscountamount"); + } + set + { + this.OnPropertyChanging("TotalDiscountAmount"); + this.SetAttributeValue("totaldiscountamount", value); + this.OnPropertyChanged("TotalDiscountAmount"); + } + } + + /// + /// Value of the Total Discount Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaldiscountamount_base")] + public Microsoft.Xrm.Sdk.Money TotalDiscountAmount_Base + { + get + { + return this.GetAttributeValue("totaldiscountamount_base"); + } + } + + /// + /// Shows the sum of all existing and write-in products included on the quote, based on the specified price list and quantities. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemamount")] + public Microsoft.Xrm.Sdk.Money TotalLineItemAmount + { + get + { + return this.GetAttributeValue("totallineitemamount"); + } + set + { + this.OnPropertyChanging("TotalLineItemAmount"); + this.SetAttributeValue("totallineitemamount", value); + this.OnPropertyChanged("TotalLineItemAmount"); + } + } + + /// + /// Value of the Total Detail Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemamount_base")] + public Microsoft.Xrm.Sdk.Money TotalLineItemAmount_Base + { + get + { + return this.GetAttributeValue("totallineitemamount_base"); + } + } + + /// + /// Shows the total of the Manual Discount amounts specified on all products included in the quote. This value is reflected in the Detail Amount field on the quote and is added to any discount amount or rate specified on the quote + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemdiscountamount")] + public Microsoft.Xrm.Sdk.Money TotalLineItemDiscountAmount + { + get + { + return this.GetAttributeValue("totallineitemdiscountamount"); + } + set + { + this.OnPropertyChanging("TotalLineItemDiscountAmount"); + this.SetAttributeValue("totallineitemdiscountamount", value); + this.OnPropertyChanged("TotalLineItemDiscountAmount"); + } + } + + /// + /// Value of the Total Line Item Discount Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemdiscountamount_base")] + public Microsoft.Xrm.Sdk.Money TotalLineItemDiscountAmount_Base + { + get + { + return this.GetAttributeValue("totallineitemdiscountamount_base"); + } + } + + /// + /// Shows the total of the Tax amounts specified on all products included in the quote, included in the Total Amount due calculation for the quote. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaltax")] + public Microsoft.Xrm.Sdk.Money TotalTax + { + get + { + return this.GetAttributeValue("totaltax"); + } + set + { + this.OnPropertyChanging("TotalTax"); + this.SetAttributeValue("totaltax", value); + this.OnPropertyChanged("TotalTax"); + } + } + + /// + /// Value of the Total Tax in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaltax_base")] + public Microsoft.Xrm.Sdk.Money TotalTax_Base + { + get + { + return this.GetAttributeValue("totaltax_base"); + } + } + + /// + /// Choose the local currency for the record to make sure budgets are reported in the correct currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// A comma separated list of string values representing the unique identifiers of stages in a Business Process Flow Instance in the order that they occur. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traversedpath")] + public string TraversedPath + { + get + { + return this.GetAttributeValue("traversedpath"); + } + set + { + this.OnPropertyChanging("TraversedPath"); + this.SetAttributeValue("traversedpath", value); + this.OnPropertyChanged("TraversedPath"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Select whether the products included in the quote should be shipped to the specified address or held until the customer calls with further pick up or delivery instructions. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("willcall")] + public System.Nullable WillCall + { + get + { + return this.GetAttributeValue>("willcall"); + } + set + { + this.OnPropertyChanging("WillCall"); + this.SetAttributeValue("willcall", value); + this.OnPropertyChanged("WillCall"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + public Quote(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (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["quoteid"] = base.Id; + break; + case "quoteid": + 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; + } + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum QuoteCloseState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Open = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Completed = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + } + + /// + /// Activity generated when a quote is closed. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("quoteclose")] + public partial class QuoteClose : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + public static class Fields + { + public const string ActivityAdditionalParams = "activityadditionalparams"; + public const string ActivityId = "activityid"; + public const string Id = "activityid"; + public const string ActivityTypeCode = "activitytypecode"; + public const string ActualDurationMinutes = "actualdurationminutes"; + public const string ActualEnd = "actualend"; + public const string ActualStart = "actualstart"; + public const string Bcc = "bcc"; + public const string Category = "category"; + public const string Cc = "cc"; + public const string Community = "community"; + public const string CreatedBy = "createdby"; + public const string CreatedByExternalParty = "createdbyexternalparty"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string Customers = "customers"; + public const string DeliveryLastAttemptedOn = "deliverylastattemptedon"; + public const string DeliveryPriorityCode = "deliveryprioritycode"; + public const string Description = "description"; + public const string ExchangeItemId = "exchangeitemid"; + public const string ExchangeRate = "exchangerate"; + public const string ExchangeWebLink = "exchangeweblink"; + public const string From = "from"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string InstanceTypeCode = "instancetypecode"; + public const string IsBilled = "isbilled"; + public const string IsMapiPrivate = "ismapiprivate"; + public const string IsRegularActivity = "isregularactivity"; + public const string IsWorkflowCreated = "isworkflowcreated"; + public const string LastOnHoldTime = "lastonholdtime"; + public const string LeftVoiceMail = "leftvoicemail"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedByExternalParty = "modifiedbyexternalparty"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string OnHoldTime = "onholdtime"; + public const string OptionalAttendees = "optionalattendees"; + public const string Organizer = "organizer"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OwnerId = "ownerid"; + public const string OwningBusinessUnit = "owningbusinessunit"; + public const string OwningTeam = "owningteam"; + public const string OwningUser = "owninguser"; + public const string Partners = "partners"; + public const string PostponeActivityProcessingUntil = "postponeactivityprocessinguntil"; + public const string PriorityCode = "prioritycode"; + public const string ProcessId = "processid"; + public const string QuoteId = "quoteid"; + public const string QuoteNumber = "quotenumber"; + public const string RegardingObjectId = "regardingobjectid"; + public const string RequiredAttendees = "requiredattendees"; + public const string Resources = "resources"; + public const string Revision = "revision"; + public const string ScheduledDurationMinutes = "scheduleddurationminutes"; + public const string ScheduledEnd = "scheduledend"; + public const string ScheduledStart = "scheduledstart"; + public const string SenderMailboxId = "sendermailboxid"; + public const string SentOn = "senton"; + public const string SeriesId = "seriesid"; + public const string ServiceId = "serviceid"; + public const string SLAId = "slaid"; + public const string SLAInvokedId = "slainvokedid"; + public const string SortDate = "sortdate"; + public const string StageId = "stageid"; + public const string StateCode = "statecode"; + public const string StatusCode = "statuscode"; + public const string Subcategory = "subcategory"; + public const string Subject = "subject"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string To = "to"; + public const string TransactionCurrencyId = "transactioncurrencyid"; + public const string TraversedPath = "traversedpath"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + } + + /// + /// Default Constructor. + /// + public QuoteClose() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "quoteclose"; + + public const string EntitySchemaName = "QuoteClose"; + + public const string PrimaryIdAttribute = "activityid"; + + public const string PrimaryNameAttribute = "subject"; + + public const string EntityLogicalCollectionName = "quotecloses"; + + public const string EntitySetName = "quotecloses"; + + public const int EntityTypeCode = 4211; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Additional information provided by the external application as JSON. For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityadditionalparams")] + public string ActivityAdditionalParams + { + get + { + return this.GetAttributeValue("activityadditionalparams"); + } + set + { + this.OnPropertyChanging("ActivityAdditionalParams"); + this.SetAttributeValue("activityadditionalparams", value); + this.OnPropertyChanged("ActivityAdditionalParams"); + } + } + + /// + /// Unique identifier of the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + public System.Nullable ActivityId + { + get + { + return this.GetAttributeValue>("activityid"); + } + set + { + this.OnPropertyChanging("ActivityId"); + this.SetAttributeValue("activityid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("ActivityId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activityid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.ActivityId = value; + } + } + + /// + /// Type of activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("activitytypecode")] + public string ActivityTypeCode + { + get + { + return this.GetAttributeValue("activitytypecode"); + } + } + + /// + /// Actual duration of the quote close activity in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualdurationminutes")] + public System.Nullable ActualDurationMinutes + { + get + { + return this.GetAttributeValue>("actualdurationminutes"); + } + set + { + this.OnPropertyChanging("ActualDurationMinutes"); + this.SetAttributeValue("actualdurationminutes", value); + this.OnPropertyChanged("ActualDurationMinutes"); + } + } + + /// + /// Actual end time of the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualend")] + public System.Nullable ActualEnd + { + get + { + return this.GetAttributeValue>("actualend"); + } + set + { + this.OnPropertyChanging("ActualEnd"); + this.SetAttributeValue("actualend", value); + this.OnPropertyChanged("ActualEnd"); + } + } + + /// + /// Actual start time of the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("actualstart")] + public System.Nullable ActualStart + { + get + { + return this.GetAttributeValue>("actualstart"); + } + set + { + this.OnPropertyChanging("ActualStart"); + this.SetAttributeValue("actualstart", value); + this.OnPropertyChanged("ActualStart"); + } + } + + /// + /// Blind Carbon-copy (bcc) recipients of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("bcc")] + public System.Collections.Generic.IEnumerable Bcc + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("bcc"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("Bcc"); + if ((value == null)) + { + this.SetAttributeValue("bcc", value); + } + else + { + this.SetAttributeValue("bcc", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("Bcc"); + } + } + + /// + /// Category of the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("category")] + public string Category + { + get + { + return this.GetAttributeValue("category"); + } + set + { + this.OnPropertyChanging("Category"); + this.SetAttributeValue("category", value); + this.OnPropertyChanged("Category"); + } + } + + /// + /// Carbon-copy (cc) recipients of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("cc")] + public System.Collections.Generic.IEnumerable Cc + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("cc"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("Cc"); + if ((value == null)) + { + this.SetAttributeValue("cc", value); + } + else + { + this.SetAttributeValue("cc", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("Cc"); + } + } + + /// + /// Shows how contact about the social activity originated, such as from Twitter or Facebook. This field is read-only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("community")] + public Microsoft.Xrm.Sdk.OptionSetValue Community + { + get + { + return this.GetAttributeValue("community"); + } + set + { + this.OnPropertyChanging("Community"); + this.SetAttributeValue("community", value); + this.OnPropertyChanged("Community"); + } + } + + /// + /// Shows how contact about the social activity originated, such as from Twitter or Facebook. This field is read-only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("community")] + public virtual SocialProfile_Community? CommunityEnum + { + get + { + return ((SocialProfile_Community?)(EntityOptionSetEnum.GetEnum(this, "community"))); + } + set + { + this.OnPropertyChanging("Community"); + this.SetAttributeValue("community", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("Community"); + } + } + + /// + /// Unique identifier of the user who created the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Shows the external party who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyexternalparty")] + public Microsoft.Xrm.Sdk.EntityReference CreatedByExternalParty + { + get + { + return this.GetAttributeValue("createdbyexternalparty"); + } + } + + /// + /// Date and time when the quote close activity was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Unique identifier of the delegate user who created the quoteclose. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + set + { + this.OnPropertyChanging("CreatedOnBehalfBy"); + this.SetAttributeValue("createdonbehalfby", value); + this.OnPropertyChanged("CreatedOnBehalfBy"); + } + } + + /// + /// Customer with which the activity is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customers")] + public System.Collections.Generic.IEnumerable Customers + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("customers"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("Customers"); + if ((value == null)) + { + this.SetAttributeValue("customers", value); + } + else + { + this.SetAttributeValue("customers", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("Customers"); + } + } + + /// + /// Date and time when the delivery of the activity was last attempted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deliverylastattemptedon")] + public System.Nullable DeliveryLastAttemptedOn + { + get + { + return this.GetAttributeValue>("deliverylastattemptedon"); + } + } + + /// + /// Priority of delivery of the activity to the email server. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deliveryprioritycode")] + public Microsoft.Xrm.Sdk.OptionSetValue DeliveryPriorityCode + { + get + { + return this.GetAttributeValue("deliveryprioritycode"); + } + set + { + this.OnPropertyChanging("DeliveryPriorityCode"); + this.SetAttributeValue("deliveryprioritycode", value); + this.OnPropertyChanged("DeliveryPriorityCode"); + } + } + + /// + /// Priority of delivery of the activity to the email server. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("deliveryprioritycode")] + public virtual activitypointer_DeliveryPriorityCode? DeliveryPriorityCodeEnum + { + get + { + return ((activitypointer_DeliveryPriorityCode?)(EntityOptionSetEnum.GetEnum(this, "deliveryprioritycode"))); + } + set + { + this.OnPropertyChanging("DeliveryPriorityCode"); + this.SetAttributeValue("deliveryprioritycode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("DeliveryPriorityCode"); + } + } + + /// + /// Activity generated when a quote is closed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// The message id of activity which is returned from Exchange Server. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangeitemid")] + public string ExchangeItemId + { + get + { + return this.GetAttributeValue("exchangeitemid"); + } + set + { + this.OnPropertyChanging("ExchangeItemId"); + this.SetAttributeValue("exchangeitemid", value); + this.OnPropertyChanged("ExchangeItemId"); + } + } + + /// + /// Exchange rate for the currency associated with the activitypointer with respect to the base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Shows the web link of Activity of type email. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangeweblink")] + public string ExchangeWebLink + { + get + { + return this.GetAttributeValue("exchangeweblink"); + } + set + { + this.OnPropertyChanging("ExchangeWebLink"); + this.SetAttributeValue("exchangeweblink", value); + this.OnPropertyChanged("ExchangeWebLink"); + } + } + + /// + /// Person who the activity is from. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("from")] + public System.Collections.Generic.IEnumerable From + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("from"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("From"); + if ((value == null)) + { + this.SetAttributeValue("from", value); + } + else + { + this.SetAttributeValue("from", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("From"); + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Type of instance of a recurring series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instancetypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue InstanceTypeCode + { + get + { + return this.GetAttributeValue("instancetypecode"); + } + } + + /// + /// Type of instance of a recurring series. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("instancetypecode")] + public virtual QuoteClose_InstanceTypeCode? InstanceTypeCodeEnum + { + get + { + return ((QuoteClose_InstanceTypeCode?)(EntityOptionSetEnum.GetEnum(this, "instancetypecode"))); + } + } + + /// + /// Information about whether the quote close activity was billed as part of resolving a case. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isbilled")] + public System.Nullable IsBilled + { + get + { + return this.GetAttributeValue>("isbilled"); + } + set + { + this.OnPropertyChanging("IsBilled"); + this.SetAttributeValue("isbilled", value); + this.OnPropertyChanged("IsBilled"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismapiprivate")] + public System.Nullable IsMapiPrivate + { + get + { + return this.GetAttributeValue>("ismapiprivate"); + } + set + { + this.OnPropertyChanging("IsMapiPrivate"); + this.SetAttributeValue("ismapiprivate", value); + this.OnPropertyChanged("IsMapiPrivate"); + } + } + + /// + /// Information regarding whether the activity is a regular activity type or event type. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isregularactivity")] + public System.Nullable IsRegularActivity + { + get + { + return this.GetAttributeValue>("isregularactivity"); + } + } + + /// + /// Information that specifies if the quote close activity was created from a workflow rule. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isworkflowcreated")] + public System.Nullable IsWorkflowCreated + { + get + { + return this.GetAttributeValue>("isworkflowcreated"); + } + set + { + this.OnPropertyChanging("IsWorkflowCreated"); + this.SetAttributeValue("isworkflowcreated", value); + this.OnPropertyChanged("IsWorkflowCreated"); + } + } + + /// + /// Contains the date and time stamp of the last on hold time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastonholdtime")] + public System.Nullable LastOnHoldTime + { + get + { + return this.GetAttributeValue>("lastonholdtime"); + } + set + { + this.OnPropertyChanging("LastOnHoldTime"); + this.SetAttributeValue("lastonholdtime", value); + this.OnPropertyChanged("LastOnHoldTime"); + } + } + + /// + /// Left the voice mail + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("leftvoicemail")] + public System.Nullable LeftVoiceMail + { + get + { + return this.GetAttributeValue>("leftvoicemail"); + } + set + { + this.OnPropertyChanging("LeftVoiceMail"); + this.SetAttributeValue("leftvoicemail", value); + this.OnPropertyChanged("LeftVoiceMail"); + } + } + + /// + /// Unique identifier of the user who last modified the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Shows the external party who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyexternalparty")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedByExternalParty + { + get + { + return this.GetAttributeValue("modifiedbyexternalparty"); + } + } + + /// + /// Date and time when the quote close activity was last modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who last modified the quoteclose. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + set + { + this.OnPropertyChanging("ModifiedOnBehalfBy"); + this.SetAttributeValue("modifiedonbehalfby", value); + this.OnPropertyChanged("ModifiedOnBehalfBy"); + } + } + + /// + /// Shows how long, in minutes, that the record was on hold. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("onholdtime")] + public System.Nullable OnHoldTime + { + get + { + return this.GetAttributeValue>("onholdtime"); + } + } + + /// + /// List of optional attendees for the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("optionalattendees")] + public System.Collections.Generic.IEnumerable OptionalAttendees + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("optionalattendees"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("OptionalAttendees"); + if ((value == null)) + { + this.SetAttributeValue("optionalattendees", value); + } + else + { + this.SetAttributeValue("optionalattendees", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("OptionalAttendees"); + } + } + + /// + /// Person who organized the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizer")] + public System.Collections.Generic.IEnumerable Organizer + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("organizer"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("Organizer"); + if ((value == null)) + { + this.SetAttributeValue("organizer", value); + } + else + { + this.SetAttributeValue("organizer", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("Organizer"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Unique identifier of the user or team who owns the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + set + { + this.OnPropertyChanging("OwnerId"); + this.SetAttributeValue("ownerid", value); + this.OnPropertyChanged("OwnerId"); + } + } + + /// + /// Unique identifier of the business unit that owns the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + /// + /// Unique identifier of the team that owns the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier of the user that owns the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Outsource vendor with which activity is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("partners")] + public System.Collections.Generic.IEnumerable Partners + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("partners"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("Partners"); + if ((value == null)) + { + this.SetAttributeValue("partners", value); + } + else + { + this.SetAttributeValue("partners", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("Partners"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("postponeactivityprocessinguntil")] + public System.Nullable PostponeActivityProcessingUntil + { + get + { + return this.GetAttributeValue>("postponeactivityprocessinguntil"); + } + } + + /// + /// Priority of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("prioritycode")] + public Microsoft.Xrm.Sdk.OptionSetValue PriorityCode + { + get + { + return this.GetAttributeValue("prioritycode"); + } + set + { + this.OnPropertyChanging("PriorityCode"); + this.SetAttributeValue("prioritycode", value); + this.OnPropertyChanged("PriorityCode"); + } + } + + /// + /// Priority of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("prioritycode")] + public virtual QuoteClose_PriorityCode? PriorityCodeEnum + { + get + { + return ((QuoteClose_PriorityCode?)(EntityOptionSetEnum.GetEnum(this, "prioritycode"))); + } + set + { + this.OnPropertyChanging("PriorityCode"); + this.SetAttributeValue("prioritycode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PriorityCode"); + } + } + + /// + /// Unique identifier of the Process. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Unique identifier of the quote with which the quote close activity is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteid")] + public Microsoft.Xrm.Sdk.EntityReference QuoteId + { + get + { + return this.GetAttributeValue("quoteid"); + } + set + { + this.OnPropertyChanging("QuoteId"); + this.SetAttributeValue("quoteid", value); + this.OnPropertyChanged("QuoteId"); + } + } + + /// + /// Quote number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quotenumber")] + public string QuoteNumber + { + get + { + return this.GetAttributeValue("quotenumber"); + } + set + { + this.OnPropertyChanging("QuoteNumber"); + this.SetAttributeValue("quotenumber", value); + this.OnPropertyChanged("QuoteNumber"); + } + } + + /// + /// Unique identifier of the object with which the activity is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] + public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId + { + get + { + return this.GetAttributeValue("regardingobjectid"); + } + set + { + this.OnPropertyChanging("RegardingObjectId"); + this.SetAttributeValue("regardingobjectid", value); + this.OnPropertyChanged("RegardingObjectId"); + } + } + + /// + /// List of required attendees for the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requiredattendees")] + public System.Collections.Generic.IEnumerable RequiredAttendees + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("requiredattendees"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("RequiredAttendees"); + if ((value == null)) + { + this.SetAttributeValue("requiredattendees", value); + } + else + { + this.SetAttributeValue("requiredattendees", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("RequiredAttendees"); + } + } + + /// + /// Users or facility/equipment that are required for the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("resources")] + public System.Collections.Generic.IEnumerable Resources + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("resources"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("Resources"); + if ((value == null)) + { + this.SetAttributeValue("resources", value); + } + else + { + this.SetAttributeValue("resources", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("Resources"); + } + } + + /// + /// Quote revision number. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("revision")] + public System.Nullable Revision + { + get + { + return this.GetAttributeValue>("revision"); + } + set + { + this.OnPropertyChanging("Revision"); + this.SetAttributeValue("revision", value); + this.OnPropertyChanged("Revision"); + } + } + + /// + /// Scheduled duration of the quote close activity, specified in minutes. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduleddurationminutes")] + public System.Nullable ScheduledDurationMinutes + { + get + { + return this.GetAttributeValue>("scheduleddurationminutes"); + } + } + + /// + /// Scheduled end time of the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledend")] + public System.Nullable ScheduledEnd + { + get + { + return this.GetAttributeValue>("scheduledend"); + } + set + { + this.OnPropertyChanging("ScheduledEnd"); + this.SetAttributeValue("scheduledend", value); + this.OnPropertyChanged("ScheduledEnd"); + } + } + + /// + /// Scheduled start time of the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("scheduledstart")] + public System.Nullable ScheduledStart + { + get + { + return this.GetAttributeValue>("scheduledstart"); + } + set + { + this.OnPropertyChanging("ScheduledStart"); + this.SetAttributeValue("scheduledstart", value); + this.OnPropertyChanged("ScheduledStart"); + } + } + + /// + /// Unique identifier of the mailbox associated with the sender of the email message. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sendermailboxid")] + public Microsoft.Xrm.Sdk.EntityReference SenderMailboxId + { + get + { + return this.GetAttributeValue("sendermailboxid"); + } + } + + /// + /// Date and time when the activity was sent. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("senton")] + public System.Nullable SentOn + { + get + { + return this.GetAttributeValue>("senton"); + } + } + + /// + /// Uniqueidentifier specifying the id of recurring series of an instance. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("seriesid")] + public System.Nullable SeriesId + { + get + { + return this.GetAttributeValue>("seriesid"); + } + } + + /// + /// Unique identifier of the service with which the quote close activity is associated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("serviceid")] + public Microsoft.Xrm.Sdk.EntityReference ServiceId + { + get + { + return this.GetAttributeValue("serviceid"); + } + set + { + this.OnPropertyChanging("ServiceId"); + this.SetAttributeValue("serviceid", value); + this.OnPropertyChanged("ServiceId"); + } + } + + /// + /// Choose the service level agreement (SLA) that you want to apply to the case record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("slaid")] + public Microsoft.Xrm.Sdk.EntityReference SLAId + { + get + { + return this.GetAttributeValue("slaid"); + } + set + { + this.OnPropertyChanging("SLAId"); + this.SetAttributeValue("slaid", value); + this.OnPropertyChanged("SLAId"); + } + } + + /// + /// Last SLA that was applied to this case. This field is for internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("slainvokedid")] + public Microsoft.Xrm.Sdk.EntityReference SLAInvokedId + { + get + { + return this.GetAttributeValue("slainvokedid"); + } + } + + /// + /// Shows the date and time by which the activities are sorted. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sortdate")] + public System.Nullable SortDate + { + get + { + return this.GetAttributeValue>("sortdate"); + } + set + { + this.OnPropertyChanging("SortDate"); + this.SetAttributeValue("sortdate", value); + this.OnPropertyChanged("SortDate"); + } + } + + /// + /// Unique identifier of the Stage. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + public System.Nullable StageId + { + get + { + return this.GetAttributeValue>("stageid"); + } + set + { + this.OnPropertyChanging("StageId"); + this.SetAttributeValue("stageid", value); + this.OnPropertyChanged("StageId"); + } + } + + /// + /// Shows whether the quote close activity is open, completed, or canceled. By default, quote close activities are completed. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((CrmSdk.QuoteCloseState)(System.Enum.ToObject(typeof(CrmSdk.QuoteCloseState), optionSet.Value))); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("StateCode"); + if ((value == null)) + { + this.SetAttributeValue("statecode", null); + } + else + { + this.SetAttributeValue("statecode", new Microsoft.Xrm.Sdk.OptionSetValue(((int)(value)))); + } + this.OnPropertyChanged("StateCode"); + } + } + + /// + /// Reason for the status of the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Reason for the status of the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual QuoteClose_StatusCode? StatusCodeEnum + { + get + { + return ((QuoteClose_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Subcategory of the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subcategory")] + public string Subcategory + { + get + { + return this.GetAttributeValue("subcategory"); + } + set + { + this.OnPropertyChanging("Subcategory"); + this.SetAttributeValue("subcategory", value); + this.OnPropertyChanged("Subcategory"); + } + } + + /// + /// Subject associated with the quote close activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("subject")] + public string Subject + { + get + { + return this.GetAttributeValue("subject"); + } + set + { + this.OnPropertyChanging("Subject"); + this.SetAttributeValue("subject", value); + this.OnPropertyChanged("Subject"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Person who is the receiver of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("to")] + public System.Collections.Generic.IEnumerable To + { + get + { + Microsoft.Xrm.Sdk.EntityCollection collection = this.GetAttributeValue("to"); + if (((collection != null) + && (collection.Entities != null))) + { + return System.Linq.Enumerable.Cast(collection.Entities); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("To"); + if ((value == null)) + { + this.SetAttributeValue("to", value); + } + else + { + this.SetAttributeValue("to", new Microsoft.Xrm.Sdk.EntityCollection(new System.Collections.Generic.List(value))); + } + this.OnPropertyChanged("To"); + } + } + + /// + /// Unique identifier of the currency associated with the activitypointer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traversedpath")] + public string TraversedPath + { + get + { + return this.GetAttributeValue("traversedpath"); + } + set + { + this.OnPropertyChanging("TraversedPath"); + this.SetAttributeValue("traversedpath", value); + this.OnPropertyChanged("TraversedPath"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version number of the activity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + public QuoteClose(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (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["activityid"] = base.Id; + break; + case "activityid": + 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; + } + } + } + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum SalesOrderState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Submitted = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Canceled = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Fulfilled = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Invoiced = 4, + } + + /// + /// Quote that has been accepted. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("salesorder")] + public partial class SalesOrder : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + public static class Fields + { + public const string AccountId = "accountid"; + public const string BillTo_AddressId = "billto_addressid"; + public const string BillTo_City = "billto_city"; + public const string BillTo_Composite = "billto_composite"; + public const string BillTo_ContactName = "billto_contactname"; + public const string BillTo_Country = "billto_country"; + public const string BillTo_Fax = "billto_fax"; + public const string BillTo_Line1 = "billto_line1"; + public const string BillTo_Line2 = "billto_line2"; + public const string BillTo_Line3 = "billto_line3"; + public const string BillTo_Name = "billto_name"; + public const string BillTo_PostalCode = "billto_postalcode"; + public const string BillTo_StateOrProvince = "billto_stateorprovince"; + public const string BillTo_Telephone = "billto_telephone"; + public const string CampaignId = "campaignid"; + public const string ContactId = "contactid"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CustomerId = "customerid"; + public const string DateFulfilled = "datefulfilled"; + public const string Description = "description"; + public const string DiscountAmount = "discountamount"; + public const string DiscountAmount_Base = "discountamount_base"; + public const string DiscountPercentage = "discountpercentage"; + 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 ExchangeRate = "exchangerate"; + public const string FreightAmount = "freightamount"; + public const string FreightAmount_Base = "freightamount_base"; + public const string FreightTermsCode = "freighttermscode"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string IsPriceLocked = "ispricelocked"; + public const string LastBackofficeSubmit = "lastbackofficesubmit"; + public const string LastOnHoldTime = "lastonholdtime"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string Name = "name"; + public const string OnHoldTime = "onholdtime"; + public const string OpportunityId = "opportunityid"; + public const string OrderNumber = "ordernumber"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OwnerId = "ownerid"; + public const string OwningBusinessUnit = "owningbusinessunit"; + public const string OwningTeam = "owningteam"; + public const string OwningUser = "owninguser"; + public const string PaymentTermsCode = "paymenttermscode"; + public const string PriceLevelId = "pricelevelid"; + public const string PricingErrorCode = "pricingerrorcode"; + public const string PriorityCode = "prioritycode"; + public const string ProcessId = "processid"; + public const string QuoteId = "quoteid"; + public const string RequestDeliveryBy = "requestdeliveryby"; + public const string SalesOrderId = "salesorderid"; + public const string Id = "salesorderid"; + public const string ShippingMethodCode = "shippingmethodcode"; + public const string ShipTo_AddressId = "shipto_addressid"; + public const string ShipTo_City = "shipto_city"; + public const string ShipTo_Composite = "shipto_composite"; + public const string ShipTo_ContactName = "shipto_contactname"; + public const string ShipTo_Country = "shipto_country"; + public const string ShipTo_Fax = "shipto_fax"; + public const string ShipTo_FreightTermsCode = "shipto_freighttermscode"; + public const string ShipTo_Line1 = "shipto_line1"; + public const string ShipTo_Line2 = "shipto_line2"; + public const string ShipTo_Line3 = "shipto_line3"; + public const string ShipTo_Name = "shipto_name"; + public const string ShipTo_PostalCode = "shipto_postalcode"; + public const string ShipTo_StateOrProvince = "shipto_stateorprovince"; + public const string ShipTo_Telephone = "shipto_telephone"; + public const string SkipPriceCalculation = "skippricecalculation"; + public const string SLAId = "slaid"; + public const string SLAInvokedId = "slainvokedid"; + public const string StageId = "stageid"; + public const string StateCode = "statecode"; + public const string StatusCode = "statuscode"; + public const string SubmitDate = "submitdate"; + public const string SubmitStatus = "submitstatus"; + public const string SubmitStatusDescription = "submitstatusdescription"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string TotalAmount = "totalamount"; + public const string TotalAmount_Base = "totalamount_base"; + public const string TotalAmountLessFreight = "totalamountlessfreight"; + public const string TotalAmountLessFreight_Base = "totalamountlessfreight_base"; + public const string TotalDiscountAmount = "totaldiscountamount"; + public const string TotalDiscountAmount_Base = "totaldiscountamount_base"; + public const string TotalLineItemAmount = "totallineitemamount"; + public const string TotalLineItemAmount_Base = "totallineitemamount_base"; + public const string TotalLineItemDiscountAmount = "totallineitemdiscountamount"; + public const string TotalLineItemDiscountAmount_Base = "totallineitemdiscountamount_base"; + public const string TotalTax = "totaltax"; + public const string TotalTax_Base = "totaltax_base"; + public const string TransactionCurrencyId = "transactioncurrencyid"; + public const string TraversedPath = "traversedpath"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + public const string WillCall = "willcall"; + } + + /// + /// Default Constructor. + /// + public SalesOrder() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "salesorder"; + + public const string EntitySchemaName = "SalesOrder"; + + public const string PrimaryIdAttribute = "salesorderid"; + + public const string PrimaryNameAttribute = "name"; + + public const string EntityLogicalCollectionName = "salesorders"; + + public const string EntitySetName = "salesorders"; + + public const int EntityTypeCode = 1088; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Shows the parent account related to the record. This information is used to link the sales order to the account selected in the Customer field for reporting and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountid")] + public Microsoft.Xrm.Sdk.EntityReference AccountId + { + get + { + return this.GetAttributeValue("accountid"); + } + } + + /// + /// Unique identifier of the billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_addressid")] + public System.Nullable BillTo_AddressId + { + get + { + return this.GetAttributeValue>("billto_addressid"); + } + set + { + this.OnPropertyChanging("BillTo_AddressId"); + this.SetAttributeValue("billto_addressid", value); + this.OnPropertyChanged("BillTo_AddressId"); + } + } + + /// + /// Type the city for the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_city")] + public string BillTo_City + { + get + { + return this.GetAttributeValue("billto_city"); + } + set + { + this.OnPropertyChanging("BillTo_City"); + this.SetAttributeValue("billto_city", value); + this.OnPropertyChanged("BillTo_City"); + } + } + + /// + /// Shows the complete Bill To address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_composite")] + public string BillTo_Composite + { + get + { + return this.GetAttributeValue("billto_composite"); + } + } + + /// + /// Type the primary contact name at the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_contactname")] + public string BillTo_ContactName + { + get + { + return this.GetAttributeValue("billto_contactname"); + } + set + { + this.OnPropertyChanging("BillTo_ContactName"); + this.SetAttributeValue("billto_contactname", value); + this.OnPropertyChanged("BillTo_ContactName"); + } + } + + /// + /// Type the country or region for the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_country")] + public string BillTo_Country + { + get + { + return this.GetAttributeValue("billto_country"); + } + set + { + this.OnPropertyChanging("BillTo_Country"); + this.SetAttributeValue("billto_country", value); + this.OnPropertyChanged("BillTo_Country"); + } + } + + /// + /// Type the fax number for the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_fax")] + public string BillTo_Fax + { + get + { + return this.GetAttributeValue("billto_fax"); + } + set + { + this.OnPropertyChanging("BillTo_Fax"); + this.SetAttributeValue("billto_fax", value); + this.OnPropertyChanged("BillTo_Fax"); + } + } + + /// + /// Type the first line of the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_line1")] + public string BillTo_Line1 + { + get + { + return this.GetAttributeValue("billto_line1"); + } + set + { + this.OnPropertyChanging("BillTo_Line1"); + this.SetAttributeValue("billto_line1", value); + this.OnPropertyChanged("BillTo_Line1"); + } + } + + /// + /// Type the second line of the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_line2")] + public string BillTo_Line2 + { + get + { + return this.GetAttributeValue("billto_line2"); + } + set + { + this.OnPropertyChanging("BillTo_Line2"); + this.SetAttributeValue("billto_line2", value); + this.OnPropertyChanged("BillTo_Line2"); + } + } + + /// + /// Type the third line of the billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_line3")] + public string BillTo_Line3 + { + get + { + return this.GetAttributeValue("billto_line3"); + } + set + { + this.OnPropertyChanging("BillTo_Line3"); + this.SetAttributeValue("billto_line3", value); + this.OnPropertyChanged("BillTo_Line3"); + } + } + + /// + /// Type a name for the customer's billing address, such as "Headquarters" or "Field office", to identify the address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_name")] + public string BillTo_Name + { + get + { + return this.GetAttributeValue("billto_name"); + } + set + { + this.OnPropertyChanging("BillTo_Name"); + this.SetAttributeValue("billto_name", value); + this.OnPropertyChanged("BillTo_Name"); + } + } + + /// + /// Type the ZIP Code or postal code for the billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_postalcode")] + public string BillTo_PostalCode + { + get + { + return this.GetAttributeValue("billto_postalcode"); + } + set + { + this.OnPropertyChanging("BillTo_PostalCode"); + this.SetAttributeValue("billto_postalcode", value); + this.OnPropertyChanged("BillTo_PostalCode"); + } + } + + /// + /// Type the state or province for the billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_stateorprovince")] + public string BillTo_StateOrProvince + { + get + { + return this.GetAttributeValue("billto_stateorprovince"); + } + set + { + this.OnPropertyChanging("BillTo_StateOrProvince"); + this.SetAttributeValue("billto_stateorprovince", value); + this.OnPropertyChanged("BillTo_StateOrProvince"); + } + } + + /// + /// Type the phone number for the customer's billing address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("billto_telephone")] + public string BillTo_Telephone + { + get + { + return this.GetAttributeValue("billto_telephone"); + } + set + { + this.OnPropertyChanging("BillTo_Telephone"); + this.SetAttributeValue("billto_telephone", value); + this.OnPropertyChanged("BillTo_Telephone"); + } + } + + /// + /// Shows the campaign that the order was created from. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("campaignid")] + public Microsoft.Xrm.Sdk.EntityReference CampaignId + { + get + { + return this.GetAttributeValue("campaignid"); + } + set + { + this.OnPropertyChanging("CampaignId"); + this.SetAttributeValue("campaignid", value); + this.OnPropertyChanged("CampaignId"); + } + } + + /// + /// Shows the parent contact related to the record. This information is used to link the contract to the contact selected in the Customer field for reporting and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("contactid")] + public Microsoft.Xrm.Sdk.EntityReference ContactId + { + get + { + return this.GetAttributeValue("contactid"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Shows who created the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + set + { + this.OnPropertyChanging("CreatedOnBehalfBy"); + this.SetAttributeValue("createdonbehalfby", value); + this.OnPropertyChanged("CreatedOnBehalfBy"); + } + } + + /// + /// Select the customer account or contact to provide a quick link to additional customer details, such as account information, activities, and opportunities. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("customerid")] + public Microsoft.Xrm.Sdk.EntityReference CustomerId + { + get + { + return this.GetAttributeValue("customerid"); + } + set + { + this.OnPropertyChanging("CustomerId"); + this.SetAttributeValue("customerid", value); + this.OnPropertyChanged("CustomerId"); + } + } + + /// + /// Enter the date that all or part of the order was shipped to the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("datefulfilled")] + public System.Nullable DateFulfilled + { + get + { + return this.GetAttributeValue>("datefulfilled"); + } + set + { + this.OnPropertyChanging("DateFulfilled"); + this.SetAttributeValue("datefulfilled", value); + this.OnPropertyChanged("DateFulfilled"); + } + } + + /// + /// Type additional information to describe the order, such as the products or services offered or details about the customer's product preferences. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Type the discount amount for the order if the customer is eligible for special savings. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discountamount")] + public Microsoft.Xrm.Sdk.Money DiscountAmount + { + get + { + return this.GetAttributeValue("discountamount"); + } + set + { + this.OnPropertyChanging("DiscountAmount"); + this.SetAttributeValue("discountamount", value); + this.OnPropertyChanged("DiscountAmount"); + } + } + + /// + /// Value of the Order Discount Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discountamount_base")] + public Microsoft.Xrm.Sdk.Money DiscountAmount_Base + { + get + { + return this.GetAttributeValue("discountamount_base"); + } + } + + /// + /// Type the discount rate that should be applied to the Detail Amount field to include additional savings for the customer in the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("discountpercentage")] + public System.Nullable DiscountPercentage + { + get + { + return this.GetAttributeValue>("discountpercentage"); + } + set + { + this.OnPropertyChanging("DiscountPercentage"); + this.SetAttributeValue("discountpercentage", value); + this.OnPropertyChanged("DiscountPercentage"); + } + } + + /// + /// The primary email address for the entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] + public string EmailAddress + { + get + { + return this.GetAttributeValue("emailaddress"); + } + set + { + this.OnPropertyChanging("EmailAddress"); + this.SetAttributeValue("emailaddress", value); + this.OnPropertyChanged("EmailAddress"); + } + } + + /// + /// The default image for the entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage")] + public byte[] EntityImage + { + get + { + return this.GetAttributeValue("entityimage"); + } + set + { + this.OnPropertyChanging("EntityImage"); + this.SetAttributeValue("entityimage", value); + this.OnPropertyChanged("EntityImage"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_timestamp")] + public System.Nullable EntityImage_Timestamp + { + get + { + return this.GetAttributeValue>("entityimage_timestamp"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimage_url")] + public string EntityImage_URL + { + get + { + return this.GetAttributeValue("entityimage_url"); + } + } + + /// + /// + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityimageid")] + public System.Nullable EntityImageId + { + get + { + return this.GetAttributeValue>("entityimageid"); + } + } + + /// + /// Shows the conversion rate of the record's currency. The exchange rate is used to convert all money fields in the record from the local currency to the system's default currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Type the cost of freight or shipping for the products included in the order for use in calculating the Total Amount field. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("freightamount")] + public Microsoft.Xrm.Sdk.Money FreightAmount + { + get + { + return this.GetAttributeValue("freightamount"); + } + set + { + this.OnPropertyChanging("FreightAmount"); + this.SetAttributeValue("freightamount", value); + this.OnPropertyChanged("FreightAmount"); + } + } + + /// + /// Value of the Freight Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("freightamount_base")] + public Microsoft.Xrm.Sdk.Money FreightAmount_Base + { + get + { + return this.GetAttributeValue("freightamount_base"); + } + } + + /// + /// Select the freight terms to make sure shipping charges are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("freighttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue FreightTermsCode + { + get + { + return this.GetAttributeValue("freighttermscode"); + } + set + { + this.OnPropertyChanging("FreightTermsCode"); + this.SetAttributeValue("freighttermscode", value); + this.OnPropertyChanged("FreightTermsCode"); + } + } + + /// + /// Select the freight terms to make sure shipping charges are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("freighttermscode")] + public virtual SalesOrder_FreightTermsCode? FreightTermsCodeEnum + { + get + { + return ((SalesOrder_FreightTermsCode?)(EntityOptionSetEnum.GetEnum(this, "freighttermscode"))); + } + set + { + this.OnPropertyChanging("FreightTermsCode"); + this.SetAttributeValue("freighttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("FreightTermsCode"); + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Select whether prices specified on the invoice are locked from any further updates. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispricelocked")] + public System.Nullable IsPriceLocked + { + get + { + return this.GetAttributeValue>("ispricelocked"); + } + set + { + this.OnPropertyChanging("IsPriceLocked"); + this.SetAttributeValue("ispricelocked", value); + this.OnPropertyChanged("IsPriceLocked"); + } + } + + /// + /// Enter the date and time when the order was last submitted to an accounting or ERP system for processing. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastbackofficesubmit")] + public System.Nullable LastBackofficeSubmit + { + get + { + return this.GetAttributeValue>("lastbackofficesubmit"); + } + set + { + this.OnPropertyChanging("LastBackofficeSubmit"); + this.SetAttributeValue("lastbackofficesubmit", value); + this.OnPropertyChanged("LastBackofficeSubmit"); + } + } + + /// + /// Contains the date time stamp of the last on hold time. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lastonholdtime")] + public System.Nullable LastOnHoldTime + { + get + { + return this.GetAttributeValue>("lastonholdtime"); + } + set + { + this.OnPropertyChanging("LastOnHoldTime"); + this.SetAttributeValue("lastonholdtime", value); + this.OnPropertyChanged("LastOnHoldTime"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Shows who last updated the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + set + { + this.OnPropertyChanging("ModifiedOnBehalfBy"); + this.SetAttributeValue("modifiedonbehalfby", value); + this.OnPropertyChanged("ModifiedOnBehalfBy"); + } + } + + /// + /// Type a descriptive name for the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] + public string Name + { + get + { + return this.GetAttributeValue("name"); + } + set + { + this.OnPropertyChanging("Name"); + this.SetAttributeValue("name", value); + this.OnPropertyChanged("Name"); + } + } + + /// + /// Shows the duration in minutes for which the order was on hold. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("onholdtime")] + public System.Nullable OnHoldTime + { + get + { + return this.GetAttributeValue>("onholdtime"); + } + } + + /// + /// Choose the related opportunity so that the data for the order and opportunity are linked for reporting and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("opportunityid")] + public Microsoft.Xrm.Sdk.EntityReference OpportunityId + { + get + { + return this.GetAttributeValue("opportunityid"); + } + set + { + this.OnPropertyChanging("OpportunityId"); + this.SetAttributeValue("opportunityid", value); + this.OnPropertyChanged("OpportunityId"); + } + } + + /// + /// Shows the order number for customer reference and to use in search. The number cannot be modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ordernumber")] + public string OrderNumber + { + get + { + return this.GetAttributeValue("ordernumber"); + } + set + { + this.OnPropertyChanging("OrderNumber"); + this.SetAttributeValue("ordernumber", value); + this.OnPropertyChanged("OrderNumber"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Owner Id + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + get + { + return this.GetAttributeValue("ownerid"); + } + set + { + this.OnPropertyChanging("OwnerId"); + this.SetAttributeValue("ownerid", value); + this.OnPropertyChanged("OwnerId"); + } + } + + /// + /// Unique identifier for the business unit that owns the record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + 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 + { + 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 + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Select the payment terms to indicate when the customer needs to pay the total amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("paymenttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue PaymentTermsCode + { + get + { + return this.GetAttributeValue("paymenttermscode"); + } + set + { + this.OnPropertyChanging("PaymentTermsCode"); + this.SetAttributeValue("paymenttermscode", value); + this.OnPropertyChanged("PaymentTermsCode"); + } + } + + /// + /// Select the payment terms to indicate when the customer needs to pay the total amount. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("paymenttermscode")] + public virtual SalesOrder_PaymentTermsCode? PaymentTermsCodeEnum + { + get + { + return ((SalesOrder_PaymentTermsCode?)(EntityOptionSetEnum.GetEnum(this, "paymenttermscode"))); + } + set + { + this.OnPropertyChanging("PaymentTermsCode"); + this.SetAttributeValue("paymenttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PaymentTermsCode"); + } + } + + /// + /// Choose the price list associated with this record to make sure the products associated with the campaign are offered at the correct prices. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricelevelid")] + public Microsoft.Xrm.Sdk.EntityReference PriceLevelId + { + get + { + return this.GetAttributeValue("pricelevelid"); + } + set + { + this.OnPropertyChanging("PriceLevelId"); + this.SetAttributeValue("pricelevelid", value); + this.OnPropertyChanged("PriceLevelId"); + } + } + + /// + /// Select the type of pricing error, such as a missing or invalid product, or missing quantity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricingerrorcode")] + public Microsoft.Xrm.Sdk.OptionSetValue PricingErrorCode + { + get + { + return this.GetAttributeValue("pricingerrorcode"); + } + set + { + this.OnPropertyChanging("PricingErrorCode"); + this.SetAttributeValue("pricingerrorcode", value); + this.OnPropertyChanged("PricingErrorCode"); + } + } + + /// + /// Select the type of pricing error, such as a missing or invalid product, or missing quantity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricingerrorcode")] + public virtual Qooi_PricingErrorCode? PricingErrorCodeEnum + { + get + { + return ((Qooi_PricingErrorCode?)(EntityOptionSetEnum.GetEnum(this, "pricingerrorcode"))); + } + set + { + this.OnPropertyChanging("PricingErrorCode"); + this.SetAttributeValue("pricingerrorcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PricingErrorCode"); + } + } + + /// + /// Select the priority so that preferred customers or critical issues are handled quickly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("prioritycode")] + public Microsoft.Xrm.Sdk.OptionSetValue PriorityCode + { + get + { + return this.GetAttributeValue("prioritycode"); + } + set + { + this.OnPropertyChanging("PriorityCode"); + this.SetAttributeValue("prioritycode", value); + this.OnPropertyChanged("PriorityCode"); + } + } + + /// + /// Select the priority so that preferred customers or critical issues are handled quickly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("prioritycode")] + public virtual SalesOrder_PriorityCode? PriorityCodeEnum + { + get + { + return ((SalesOrder_PriorityCode?)(EntityOptionSetEnum.GetEnum(this, "prioritycode"))); + } + set + { + this.OnPropertyChanging("PriorityCode"); + this.SetAttributeValue("prioritycode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PriorityCode"); + } + } + + /// + /// Contains the id of the process associated with the entity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] + public System.Nullable ProcessId + { + get + { + return this.GetAttributeValue>("processid"); + } + set + { + this.OnPropertyChanging("ProcessId"); + this.SetAttributeValue("processid", value); + this.OnPropertyChanged("ProcessId"); + } + } + + /// + /// Choose the related quote so that order data and quote data are linked for reporting and analytics. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quoteid")] + public Microsoft.Xrm.Sdk.EntityReference QuoteId + { + get + { + return this.GetAttributeValue("quoteid"); + } + set + { + this.OnPropertyChanging("QuoteId"); + this.SetAttributeValue("quoteid", value); + this.OnPropertyChanged("QuoteId"); + } + } + + /// + /// Enter the delivery date requested by the customer for all products in the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requestdeliveryby")] + public System.Nullable RequestDeliveryBy + { + get + { + return this.GetAttributeValue>("requestdeliveryby"); + } + set + { + this.OnPropertyChanging("RequestDeliveryBy"); + this.SetAttributeValue("requestdeliveryby", value); + this.OnPropertyChanged("RequestDeliveryBy"); + } + } + + /// + /// Unique identifier of the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderid")] + public System.Nullable SalesOrderId + { + get + { + return this.GetAttributeValue>("salesorderid"); + } + set + { + this.OnPropertyChanging("SalesOrderId"); + this.SetAttributeValue("salesorderid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SalesOrderId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SalesOrderId = value; + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shippingmethodcode")] + public Microsoft.Xrm.Sdk.OptionSetValue ShippingMethodCode + { + get + { + return this.GetAttributeValue("shippingmethodcode"); + } + set + { + this.OnPropertyChanging("ShippingMethodCode"); + this.SetAttributeValue("shippingmethodcode", value); + this.OnPropertyChanged("ShippingMethodCode"); + } + } + + /// + /// Select a shipping method for deliveries sent to this address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shippingmethodcode")] + public virtual SalesOrder_ShippingMethodCode? ShippingMethodCodeEnum + { + get + { + return ((SalesOrder_ShippingMethodCode?)(EntityOptionSetEnum.GetEnum(this, "shippingmethodcode"))); + } + set + { + this.OnPropertyChanging("ShippingMethodCode"); + this.SetAttributeValue("shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("ShippingMethodCode"); + } + } + + /// + /// Unique identifier of the shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_addressid")] + public System.Nullable ShipTo_AddressId + { + get + { + return this.GetAttributeValue>("shipto_addressid"); + } + set + { + this.OnPropertyChanging("ShipTo_AddressId"); + this.SetAttributeValue("shipto_addressid", value); + this.OnPropertyChanged("ShipTo_AddressId"); + } + } + + /// + /// Type the city for the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_city")] + public string ShipTo_City + { + get + { + return this.GetAttributeValue("shipto_city"); + } + set + { + this.OnPropertyChanging("ShipTo_City"); + this.SetAttributeValue("shipto_city", value); + this.OnPropertyChanged("ShipTo_City"); + } + } + + /// + /// Shows the complete Ship To address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_composite")] + public string ShipTo_Composite + { + get + { + return this.GetAttributeValue("shipto_composite"); + } + } + + /// + /// Type the primary contact name at the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_contactname")] + public string ShipTo_ContactName + { + get + { + return this.GetAttributeValue("shipto_contactname"); + } + set + { + this.OnPropertyChanging("ShipTo_ContactName"); + this.SetAttributeValue("shipto_contactname", value); + this.OnPropertyChanged("ShipTo_ContactName"); + } + } + + /// + /// Type the country or region for the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_country")] + public string ShipTo_Country + { + get + { + return this.GetAttributeValue("shipto_country"); + } + set + { + this.OnPropertyChanging("ShipTo_Country"); + this.SetAttributeValue("shipto_country", value); + this.OnPropertyChanged("ShipTo_Country"); + } + } + + /// + /// Type the fax number for the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_fax")] + public string ShipTo_Fax + { + get + { + return this.GetAttributeValue("shipto_fax"); + } + set + { + this.OnPropertyChanging("ShipTo_Fax"); + this.SetAttributeValue("shipto_fax", value); + this.OnPropertyChanged("ShipTo_Fax"); + } + } + + /// + /// Select the freight terms to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_freighttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue ShipTo_FreightTermsCode + { + get + { + return this.GetAttributeValue("shipto_freighttermscode"); + } + set + { + this.OnPropertyChanging("ShipTo_FreightTermsCode"); + this.SetAttributeValue("shipto_freighttermscode", value); + this.OnPropertyChanged("ShipTo_FreightTermsCode"); + } + } + + /// + /// Select the freight terms to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_freighttermscode")] + public virtual SalesOrder_ShipTo_FreightTermsCode? ShipTo_FreightTermsCodeEnum + { + get + { + return ((SalesOrder_ShipTo_FreightTermsCode?)(EntityOptionSetEnum.GetEnum(this, "shipto_freighttermscode"))); + } + set + { + this.OnPropertyChanging("ShipTo_FreightTermsCode"); + this.SetAttributeValue("shipto_freighttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("ShipTo_FreightTermsCode"); + } + } + + /// + /// Type the first line of the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_line1")] + public string ShipTo_Line1 + { + get + { + return this.GetAttributeValue("shipto_line1"); + } + set + { + this.OnPropertyChanging("ShipTo_Line1"); + this.SetAttributeValue("shipto_line1", value); + this.OnPropertyChanged("ShipTo_Line1"); + } + } + + /// + /// Type the second line of the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_line2")] + public string ShipTo_Line2 + { + get + { + return this.GetAttributeValue("shipto_line2"); + } + set + { + this.OnPropertyChanging("ShipTo_Line2"); + this.SetAttributeValue("shipto_line2", value); + this.OnPropertyChanged("ShipTo_Line2"); + } + } + + /// + /// Type the third line of the shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_line3")] + public string ShipTo_Line3 + { + get + { + return this.GetAttributeValue("shipto_line3"); + } + set + { + this.OnPropertyChanging("ShipTo_Line3"); + this.SetAttributeValue("shipto_line3", value); + this.OnPropertyChanged("ShipTo_Line3"); + } + } + + /// + /// Type a name for the customer's shipping address, such as "Headquarters" or "Field office", to identify the address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_name")] + public string ShipTo_Name + { + get + { + return this.GetAttributeValue("shipto_name"); + } + set + { + this.OnPropertyChanging("ShipTo_Name"); + this.SetAttributeValue("shipto_name", value); + this.OnPropertyChanged("ShipTo_Name"); + } + } + + /// + /// Type the ZIP Code or postal code for the shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_postalcode")] + public string ShipTo_PostalCode + { + get + { + return this.GetAttributeValue("shipto_postalcode"); + } + set + { + this.OnPropertyChanging("ShipTo_PostalCode"); + this.SetAttributeValue("shipto_postalcode", value); + this.OnPropertyChanged("ShipTo_PostalCode"); + } + } + + /// + /// Type the state or province for the shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_stateorprovince")] + public string ShipTo_StateOrProvince + { + get + { + return this.GetAttributeValue("shipto_stateorprovince"); + } + set + { + this.OnPropertyChanging("ShipTo_StateOrProvince"); + this.SetAttributeValue("shipto_stateorprovince", value); + this.OnPropertyChanged("ShipTo_StateOrProvince"); + } + } + + /// + /// Type the phone number for the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_telephone")] + public string ShipTo_Telephone + { + get + { + return this.GetAttributeValue("shipto_telephone"); + } + set + { + this.OnPropertyChanging("ShipTo_Telephone"); + this.SetAttributeValue("shipto_telephone", value); + this.OnPropertyChanged("ShipTo_Telephone"); + } + } + + /// + /// Skip Price Calculation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("skippricecalculation")] + public Microsoft.Xrm.Sdk.OptionSetValue SkipPriceCalculation + { + get + { + return this.GetAttributeValue("skippricecalculation"); + } + set + { + this.OnPropertyChanging("SkipPriceCalculation"); + this.SetAttributeValue("skippricecalculation", value); + this.OnPropertyChanged("SkipPriceCalculation"); + } + } + + /// + /// Skip Price Calculation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("skippricecalculation")] + public virtual qooi_skippricecalculation? SkipPriceCalculationEnum + { + get + { + return ((qooi_skippricecalculation?)(EntityOptionSetEnum.GetEnum(this, "skippricecalculation"))); + } + set + { + this.OnPropertyChanging("SkipPriceCalculation"); + this.SetAttributeValue("skippricecalculation", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("SkipPriceCalculation"); + } + } + + /// + /// Choose the service level agreement (SLA) that you want to apply to the sales order record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("slaid")] + public Microsoft.Xrm.Sdk.EntityReference SLAId + { + get + { + return this.GetAttributeValue("slaid"); + } + set + { + this.OnPropertyChanging("SLAId"); + this.SetAttributeValue("slaid", value); + this.OnPropertyChanged("SLAId"); + } + } + + /// + /// Last SLA that was applied to this sales order. This field is for internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("slainvokedid")] + public Microsoft.Xrm.Sdk.EntityReference SLAInvokedId + { + get + { + return this.GetAttributeValue("slainvokedid"); + } + } + + /// + /// Contains the id of the stage where the entity is located. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] + public System.Nullable StageId + { + get + { + return this.GetAttributeValue>("stageid"); + } + set + { + this.OnPropertyChanging("StageId"); + this.SetAttributeValue("stageid", value); + this.OnPropertyChanged("StageId"); + } + } + + /// + /// Shows whether the order is active, submitted, fulfilled, canceled, or invoiced. Only active orders can be edited. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public System.Nullable StateCode + { + get + { + Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode"); + if ((optionSet != null)) + { + return ((CrmSdk.SalesOrderState)(System.Enum.ToObject(typeof(CrmSdk.SalesOrderState), optionSet.Value))); + } + else + { + return null; + } + } + set + { + this.OnPropertyChanging("StateCode"); + if ((value == null)) + { + this.SetAttributeValue("statecode", null); + } + else + { + this.SetAttributeValue("statecode", new Microsoft.Xrm.Sdk.OptionSetValue(((int)(value)))); + } + this.OnPropertyChanged("StateCode"); + } + } + + /// + /// Select the order's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public Microsoft.Xrm.Sdk.OptionSetValue StatusCode + { + get + { + return this.GetAttributeValue("statuscode"); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Select the order's status. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual SalesOrder_StatusCode? StatusCodeEnum + { + get + { + return ((SalesOrder_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + set + { + this.OnPropertyChanging("StatusCode"); + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("StatusCode"); + } + } + + /// + /// Enter the date when the order was submitted to the fulfillment or shipping center. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("submitdate")] + public System.Nullable SubmitDate + { + get + { + return this.GetAttributeValue>("submitdate"); + } + set + { + this.OnPropertyChanging("SubmitDate"); + this.SetAttributeValue("submitdate", value); + this.OnPropertyChanged("SubmitDate"); + } + } + + /// + /// Type the code for the submitted status in the fulfillment or shipping center system. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("submitstatus")] + public System.Nullable SubmitStatus + { + get + { + return this.GetAttributeValue>("submitstatus"); + } + set + { + this.OnPropertyChanging("SubmitStatus"); + this.SetAttributeValue("submitstatus", value); + this.OnPropertyChanged("SubmitStatus"); + } + } + + /// + /// Type additional details or notes about the order for the fulfillment or shipping center. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("submitstatusdescription")] + public string SubmitStatusDescription + { + get + { + return this.GetAttributeValue("submitstatusdescription"); + } + set + { + this.OnPropertyChanging("SubmitStatusDescription"); + this.SetAttributeValue("submitstatusdescription", value); + this.OnPropertyChanged("SubmitStatusDescription"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Shows the total amount due, calculated as the sum of the products, discounts, freight, and taxes for the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamount")] + public Microsoft.Xrm.Sdk.Money TotalAmount + { + get + { + return this.GetAttributeValue("totalamount"); + } + set + { + this.OnPropertyChanging("TotalAmount"); + this.SetAttributeValue("totalamount", value); + this.OnPropertyChanged("TotalAmount"); + } + } + + /// + /// Value of the Total Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamount_base")] + public Microsoft.Xrm.Sdk.Money TotalAmount_Base + { + get + { + return this.GetAttributeValue("totalamount_base"); + } + } + + /// + /// Shows the total product amount for the order, minus any discounts. This value is added to freight and tax amounts in the calculation for the total amount due for the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamountlessfreight")] + public Microsoft.Xrm.Sdk.Money TotalAmountLessFreight + { + get + { + return this.GetAttributeValue("totalamountlessfreight"); + } + set + { + this.OnPropertyChanging("TotalAmountLessFreight"); + this.SetAttributeValue("totalamountlessfreight", value); + this.OnPropertyChanged("TotalAmountLessFreight"); + } + } + + /// + /// Value of the Total Pre-Freight Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totalamountlessfreight_base")] + public Microsoft.Xrm.Sdk.Money TotalAmountLessFreight_Base + { + get + { + return this.GetAttributeValue("totalamountlessfreight_base"); + } + } + + /// + /// Shows the total discount amount, based on the discount price and rate entered on the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaldiscountamount")] + public Microsoft.Xrm.Sdk.Money TotalDiscountAmount + { + get + { + return this.GetAttributeValue("totaldiscountamount"); + } + set + { + this.OnPropertyChanging("TotalDiscountAmount"); + this.SetAttributeValue("totaldiscountamount", value); + this.OnPropertyChanged("TotalDiscountAmount"); + } + } + + /// + /// Value of the Total Discount Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaldiscountamount_base")] + public Microsoft.Xrm.Sdk.Money TotalDiscountAmount_Base + { + get + { + return this.GetAttributeValue("totaldiscountamount_base"); + } + } + + /// + /// Shows the sum of all existing and write-in products included on the order, based on the specified price list and quantities. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemamount")] + public Microsoft.Xrm.Sdk.Money TotalLineItemAmount + { + get + { + return this.GetAttributeValue("totallineitemamount"); + } + set + { + this.OnPropertyChanging("TotalLineItemAmount"); + this.SetAttributeValue("totallineitemamount", value); + this.OnPropertyChanged("TotalLineItemAmount"); + } + } + + /// + /// Value of the Total Detail Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemamount_base")] + public Microsoft.Xrm.Sdk.Money TotalLineItemAmount_Base + { + get + { + return this.GetAttributeValue("totallineitemamount_base"); + } + } + + /// + /// Shows the total of the Manual Discount amounts specified on all products included in the order. This value is reflected in the Detail Amount field on the order and is added to any discount amount or rate specified on the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemdiscountamount")] + public Microsoft.Xrm.Sdk.Money TotalLineItemDiscountAmount + { + get + { + return this.GetAttributeValue("totallineitemdiscountamount"); + } + set + { + this.OnPropertyChanging("TotalLineItemDiscountAmount"); + this.SetAttributeValue("totallineitemdiscountamount", value); + this.OnPropertyChanged("TotalLineItemDiscountAmount"); + } + } + + /// + /// Value of the Total Line Item Discount Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totallineitemdiscountamount_base")] + public Microsoft.Xrm.Sdk.Money TotalLineItemDiscountAmount_Base + { + get + { + return this.GetAttributeValue("totallineitemdiscountamount_base"); + } + } + + /// + /// Shows the Tax amounts specified on all products included in the order, included in the Total Amount due calculation for the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaltax")] + public Microsoft.Xrm.Sdk.Money TotalTax + { + get + { + return this.GetAttributeValue("totaltax"); + } + set + { + this.OnPropertyChanging("TotalTax"); + this.SetAttributeValue("totaltax", value); + this.OnPropertyChanged("TotalTax"); + } + } + + /// + /// Value of the Total Tax in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("totaltax_base")] + public Microsoft.Xrm.Sdk.Money TotalTax_Base + { + get + { + return this.GetAttributeValue("totaltax_base"); + } + } + + /// + /// Choose the local currency for the record to make sure budgets are reported in the correct currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// A comma separated list of string values representing the unique identifiers of stages in a Business Process Flow Instance in the order that they occur. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traversedpath")] + public string TraversedPath + { + get + { + return this.GetAttributeValue("traversedpath"); + } + set + { + this.OnPropertyChanging("TraversedPath"); + this.SetAttributeValue("traversedpath", value); + this.OnPropertyChanged("TraversedPath"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Select whether the products included in the order should be shipped to the specified address or held until the customer calls with further pick-up or delivery instructions. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("willcall")] + public System.Nullable WillCall + { + get + { + return this.GetAttributeValue>("willcall"); + } + set + { + this.OnPropertyChanging("WillCall"); + this.SetAttributeValue("willcall", value); + this.OnPropertyChanged("WillCall"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + public SalesOrder(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (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["salesorderid"] = base.Id; + break; + case "salesorderid": + 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; + } + } + } + } + + /// + /// Line item in a sales order. + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("salesorderdetail")] + public partial class SalesOrderDetail : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged + { + + public static class Fields + { + public const string BaseAmount = "baseamount"; + public const string BaseAmount_Base = "baseamount_base"; + public const string CreatedBy = "createdby"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string Description = "description"; + public const string ExchangeRate = "exchangerate"; + public const string ExtendedAmount = "extendedamount"; + public const string ExtendedAmount_Base = "extendedamount_base"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string IsCopied = "iscopied"; + public const string IsPriceOverridden = "ispriceoverridden"; + public const string IsProductOverridden = "isproductoverridden"; + public const string LineItemNumber = "lineitemnumber"; + public const string ManualDiscountAmount = "manualdiscountamount"; + public const string ManualDiscountAmount_Base = "manualdiscountamount_base"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OwnerId = "ownerid"; + public const string OwningBusinessUnit = "owningbusinessunit"; + public const string OwningTeam = "owningteam"; + public const string OwningUser = "owninguser"; + public const string ParentBundleId = "parentbundleid"; + public const string ParentBundleIdRef = "parentbundleidref"; + public const string PricePerUnit = "priceperunit"; + public const string PricePerUnit_Base = "priceperunit_base"; + public const string PricingErrorCode = "pricingerrorcode"; + public const string ProductAssociationId = "productassociationid"; + public const string ProductDescription = "productdescription"; + public const string ProductId = "productid"; + public const string ProductName = "productname"; + public const string ProductNumber = "productnumber"; + public const string ProductTypeCode = "producttypecode"; + public const string PropertyConfigurationStatus = "propertyconfigurationstatus"; + public const string Quantity = "quantity"; + public const string QuantityBackordered = "quantitybackordered"; + public const string QuantityCancelled = "quantitycancelled"; + public const string QuantityShipped = "quantityshipped"; + public const string QuoteDetailId = "quotedetailid"; + public const string RequestDeliveryBy = "requestdeliveryby"; + public const string SalesOrderDetailId = "salesorderdetailid"; + public const string Id = "salesorderdetailid"; + public const string SalesOrderDetailName = "salesorderdetailname"; + public const string SalesOrderId = "salesorderid"; + public const string SalesOrderIsPriceLocked = "salesorderispricelocked"; + public const string SalesRepId = "salesrepid"; + public const string SequenceNumber = "sequencenumber"; + public const string ShipTo_AddressId = "shipto_addressid"; + public const string ShipTo_City = "shipto_city"; + public const string ShipTo_ContactName = "shipto_contactname"; + public const string ShipTo_Country = "shipto_country"; + public const string ShipTo_Fax = "shipto_fax"; + public const string ShipTo_FreightTermsCode = "shipto_freighttermscode"; + public const string ShipTo_Line1 = "shipto_line1"; + public const string ShipTo_Line2 = "shipto_line2"; + public const string ShipTo_Line3 = "shipto_line3"; + public const string ShipTo_Name = "shipto_name"; + public const string ShipTo_PostalCode = "shipto_postalcode"; + public const string ShipTo_StateOrProvince = "shipto_stateorprovince"; + public const string ShipTo_Telephone = "shipto_telephone"; + public const string SkipPriceCalculation = "skippricecalculation"; + public const string Tax = "tax"; + public const string Tax_Base = "tax_base"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string TransactionCurrencyId = "transactioncurrencyid"; + public const string UoMId = "uomid"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + public const string VolumeDiscountAmount = "volumediscountamount"; + public const string VolumeDiscountAmount_Base = "volumediscountamount_base"; + public const string WillCall = "willcall"; + } + + /// + /// Default Constructor. + /// + public SalesOrderDetail() : + base(EntityLogicalName) + { + } + + public const string EntityLogicalName = "salesorderdetail"; + + public const string EntitySchemaName = "SalesOrderDetail"; + + public const string PrimaryIdAttribute = "salesorderdetailid"; + + public const string PrimaryNameAttribute = "salesorderdetailname"; + + public const string EntityLogicalCollectionName = "salesorderdetails"; + + public const string EntitySetName = "salesorderdetails"; + + public const int EntityTypeCode = 1089; + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; + + private void OnPropertyChanged(string propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + private void OnPropertyChanging(string propertyName) + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName)); + } + } + + /// + /// Shows the total price of the order product, based on the price per unit, volume discount, and quantity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseamount")] + public Microsoft.Xrm.Sdk.Money BaseAmount + { + get + { + return this.GetAttributeValue("baseamount"); + } + set + { + this.OnPropertyChanging("BaseAmount"); + this.SetAttributeValue("baseamount", value); + this.OnPropertyChanged("BaseAmount"); + } + } + + /// + /// Value of the Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baseamount_base")] + public Microsoft.Xrm.Sdk.Money BaseAmount_Base + { + get + { + return this.GetAttributeValue("baseamount_base"); + } + } + + /// + /// Shows who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedBy + { + get + { + return this.GetAttributeValue("createdby"); + } + } + + /// + /// Date and time when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] + public System.Nullable CreatedOn + { + get + { + return this.GetAttributeValue>("createdon"); + } + } + + /// + /// Shows who created the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + set + { + this.OnPropertyChanging("CreatedOnBehalfBy"); + this.SetAttributeValue("createdonbehalfby", value); + this.OnPropertyChanged("CreatedOnBehalfBy"); + } + } + + /// + /// Type additional information to describe the order product, such as manufacturing details or acceptable substitutions. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] + public string Description + { + get + { + return this.GetAttributeValue("description"); + } + set + { + this.OnPropertyChanging("Description"); + this.SetAttributeValue("description", value); + this.OnPropertyChanged("Description"); + } + } + + /// + /// Shows the conversion rate of the record's currency. The exchange rate is used to convert all money fields in the record from the local currency to the system's default currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] + public System.Nullable ExchangeRate + { + get + { + return this.GetAttributeValue>("exchangerate"); + } + } + + /// + /// Shows the total amount due for the order product, based on the sum of the unit price, quantity, discounts, and tax. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extendedamount")] + public Microsoft.Xrm.Sdk.Money ExtendedAmount + { + get + { + return this.GetAttributeValue("extendedamount"); + } + set + { + this.OnPropertyChanging("ExtendedAmount"); + this.SetAttributeValue("extendedamount", value); + this.OnPropertyChanged("ExtendedAmount"); + } + } + + /// + /// Value of the Extended Amount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("extendedamount_base")] + public Microsoft.Xrm.Sdk.Money ExtendedAmount_Base + { + get + { + return this.GetAttributeValue("extendedamount_base"); + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + set + { + this.OnPropertyChanging("ImportSequenceNumber"); + this.SetAttributeValue("importsequencenumber", value); + this.OnPropertyChanged("ImportSequenceNumber"); + } + } + + /// + /// Select whether the invoice line item is copied from another item or data source. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("iscopied")] + public System.Nullable IsCopied + { + get + { + return this.GetAttributeValue>("iscopied"); + } + set + { + this.OnPropertyChanging("IsCopied"); + this.SetAttributeValue("iscopied", value); + this.OnPropertyChanged("IsCopied"); + } + } + + /// + /// Select whether the price per unit is fixed at the value in the specified price list or can be overridden by users who have edit rights to the order product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ispriceoverridden")] + public System.Nullable IsPriceOverridden + { + get + { + return this.GetAttributeValue>("ispriceoverridden"); + } + set + { + this.OnPropertyChanging("IsPriceOverridden"); + this.SetAttributeValue("ispriceoverridden", value); + this.OnPropertyChanged("IsPriceOverridden"); + } + } + + /// + /// Select whether the product exists in the Microsoft Dynamics 365 product catalog or is a write-in product specific to the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isproductoverridden")] + public System.Nullable IsProductOverridden + { + get + { + return this.GetAttributeValue>("isproductoverridden"); + } + set + { + this.OnPropertyChanging("IsProductOverridden"); + this.SetAttributeValue("isproductoverridden", value); + this.OnPropertyChanged("IsProductOverridden"); + } + } + + /// + /// Type the line item number for the order product to easily identify the product in the order and make sure it's listed in the correct sequence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("lineitemnumber")] + public System.Nullable LineItemNumber + { + get + { + return this.GetAttributeValue>("lineitemnumber"); + } + set + { + this.OnPropertyChanging("LineItemNumber"); + this.SetAttributeValue("lineitemnumber", value); + this.OnPropertyChanged("LineItemNumber"); + } + } + + /// + /// Type the manual discount amount for the order product to deduct any negotiated or other savings from the product total on the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("manualdiscountamount")] + public Microsoft.Xrm.Sdk.Money ManualDiscountAmount + { + get + { + return this.GetAttributeValue("manualdiscountamount"); + } + set + { + this.OnPropertyChanging("ManualDiscountAmount"); + this.SetAttributeValue("manualdiscountamount", value); + this.OnPropertyChanged("ManualDiscountAmount"); + } + } + + /// + /// Value of the Manual Discount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("manualdiscountamount_base")] + public Microsoft.Xrm.Sdk.Money ManualDiscountAmount_Base + { + get + { + return this.GetAttributeValue("manualdiscountamount_base"); + } + } + + /// + /// Shows who last updated the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Shows who last updated the record on behalf of another user. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + set + { + this.OnPropertyChanging("ModifiedOnBehalfBy"); + this.SetAttributeValue("modifiedonbehalfby", value); + this.OnPropertyChanged("ModifiedOnBehalfBy"); + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + set + { + this.OnPropertyChanging("OverriddenCreatedOn"); + this.SetAttributeValue("overriddencreatedon", value); + this.OnPropertyChanged("OverriddenCreatedOn"); + } + } + + /// + /// Owner Id + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + 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 + { + 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 + { + 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 + { + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Choose the parent bundle associated with this product + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentbundleid")] + public System.Nullable ParentBundleId + { + get + { + return this.GetAttributeValue>("parentbundleid"); + } + set + { + this.OnPropertyChanging("ParentBundleId"); + this.SetAttributeValue("parentbundleid", value); + this.OnPropertyChanged("ParentBundleId"); + } + } + + /// + /// Choose the parent bundle associated with this product + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentbundleidref")] + public Microsoft.Xrm.Sdk.EntityReference ParentBundleIdRef + { + get + { + return this.GetAttributeValue("parentbundleidref"); + } + set + { + this.OnPropertyChanging("ParentBundleIdRef"); + this.SetAttributeValue("parentbundleidref", value); + this.OnPropertyChanged("ParentBundleIdRef"); + } + } + + /// + /// Type the price per unit of the order product. The default is the value in the price list specified on the order for existing products. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("priceperunit")] + public Microsoft.Xrm.Sdk.Money PricePerUnit + { + get + { + return this.GetAttributeValue("priceperunit"); + } + set + { + this.OnPropertyChanging("PricePerUnit"); + this.SetAttributeValue("priceperunit", value); + this.OnPropertyChanged("PricePerUnit"); + } + } + + /// + /// Value of the Price Per Unit in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("priceperunit_base")] + public Microsoft.Xrm.Sdk.Money PricePerUnit_Base + { + get + { + return this.GetAttributeValue("priceperunit_base"); + } + } + + /// + /// Select the type of pricing error, such as a missing or invalid product, or missing quantity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricingerrorcode")] + public Microsoft.Xrm.Sdk.OptionSetValue PricingErrorCode + { + get + { + return this.GetAttributeValue("pricingerrorcode"); + } + set + { + this.OnPropertyChanging("PricingErrorCode"); + this.SetAttributeValue("pricingerrorcode", value); + this.OnPropertyChanged("PricingErrorCode"); + } + } + + /// + /// Select the type of pricing error, such as a missing or invalid product, or missing quantity. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("pricingerrorcode")] + public virtual Qooi_PricingErrorCode? PricingErrorCodeEnum + { + get + { + return ((Qooi_PricingErrorCode?)(EntityOptionSetEnum.GetEnum(this, "pricingerrorcode"))); + } + set + { + this.OnPropertyChanging("PricingErrorCode"); + this.SetAttributeValue("pricingerrorcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PricingErrorCode"); + } + } + + /// + /// Unique identifier of the product line item association with bundle in the sales order + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productassociationid")] + public System.Nullable ProductAssociationId + { + get + { + return this.GetAttributeValue>("productassociationid"); + } + set + { + this.OnPropertyChanging("ProductAssociationId"); + this.SetAttributeValue("productassociationid", value); + this.OnPropertyChanged("ProductAssociationId"); + } + } + + /// + /// Type a name or description to identify the type of write-in product included in the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productdescription")] + public string ProductDescription + { + get + { + return this.GetAttributeValue("productdescription"); + } + set + { + this.OnPropertyChanging("ProductDescription"); + this.SetAttributeValue("productdescription", value); + this.OnPropertyChanged("ProductDescription"); + } + } + + /// + /// Choose the product to include on the order to link the product's pricing and other information to the parent order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productid")] + public Microsoft.Xrm.Sdk.EntityReference ProductId + { + get + { + return this.GetAttributeValue("productid"); + } + set + { + this.OnPropertyChanging("ProductId"); + this.SetAttributeValue("productid", value); + this.OnPropertyChanged("ProductId"); + } + } + + /// + /// Calculated field that will be populated by name and description of the product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productname")] + public string ProductName + { + get + { + return this.GetAttributeValue("productname"); + } + set + { + this.OnPropertyChanging("ProductName"); + this.SetAttributeValue("productname", value); + this.OnPropertyChanged("ProductName"); + } + } + + /// + /// User-defined product ID. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("productnumber")] + public string ProductNumber + { + get + { + return this.GetAttributeValue("productnumber"); + } + } + + /// + /// Product Type + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("producttypecode")] + public Microsoft.Xrm.Sdk.OptionSetValue ProductTypeCode + { + get + { + return this.GetAttributeValue("producttypecode"); + } + set + { + this.OnPropertyChanging("ProductTypeCode"); + this.SetAttributeValue("producttypecode", value); + this.OnPropertyChanged("ProductTypeCode"); + } + } + + /// + /// Product Type + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("producttypecode")] + public virtual QooiProduct_ProductType? ProductTypeCodeEnum + { + get + { + return ((QooiProduct_ProductType?)(EntityOptionSetEnum.GetEnum(this, "producttypecode"))); + } + set + { + this.OnPropertyChanging("ProductTypeCode"); + this.SetAttributeValue("producttypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("ProductTypeCode"); + } + } + + /// + /// Status of the property configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("propertyconfigurationstatus")] + public Microsoft.Xrm.Sdk.OptionSetValue PropertyConfigurationStatus + { + get + { + return this.GetAttributeValue("propertyconfigurationstatus"); + } + set + { + this.OnPropertyChanging("PropertyConfigurationStatus"); + this.SetAttributeValue("propertyconfigurationstatus", value); + this.OnPropertyChanged("PropertyConfigurationStatus"); + } + } + + /// + /// Status of the property configuration. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("propertyconfigurationstatus")] + public virtual QooiProduct_PropertiesConfigurationStatus? PropertyConfigurationStatusEnum + { + get + { + return ((QooiProduct_PropertiesConfigurationStatus?)(EntityOptionSetEnum.GetEnum(this, "propertyconfigurationstatus"))); + } + set + { + this.OnPropertyChanging("PropertyConfigurationStatus"); + this.SetAttributeValue("propertyconfigurationstatus", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("PropertyConfigurationStatus"); + } + } + + /// + /// Type the amount or quantity of the product ordered by the customer. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quantity")] + public System.Nullable Quantity + { + get + { + return this.GetAttributeValue>("quantity"); + } + set + { + this.OnPropertyChanging("Quantity"); + this.SetAttributeValue("quantity", value); + this.OnPropertyChanged("Quantity"); + } + } + + /// + /// Type the amount or quantity of the product that is back ordered for the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quantitybackordered")] + public System.Nullable QuantityBackordered + { + get + { + return this.GetAttributeValue>("quantitybackordered"); + } + set + { + this.OnPropertyChanging("QuantityBackordered"); + this.SetAttributeValue("quantitybackordered", value); + this.OnPropertyChanged("QuantityBackordered"); + } + } + + /// + /// Type the amount or quantity of the product that was canceled. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quantitycancelled")] + public System.Nullable QuantityCancelled + { + get + { + return this.GetAttributeValue>("quantitycancelled"); + } + set + { + this.OnPropertyChanging("QuantityCancelled"); + this.SetAttributeValue("quantitycancelled", value); + this.OnPropertyChanged("QuantityCancelled"); + } + } + + /// + /// Type the amount or quantity of the product that was shipped for the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quantityshipped")] + public System.Nullable QuantityShipped + { + get + { + return this.GetAttributeValue>("quantityshipped"); + } + set + { + this.OnPropertyChanging("QuantityShipped"); + this.SetAttributeValue("quantityshipped", value); + this.OnPropertyChanged("QuantityShipped"); + } + } + + /// + /// Unique identifier for Quote Line associated with Order Line. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("quotedetailid")] + public Microsoft.Xrm.Sdk.EntityReference QuoteDetailId + { + get + { + return this.GetAttributeValue("quotedetailid"); + } + set + { + this.OnPropertyChanging("QuoteDetailId"); + this.SetAttributeValue("quotedetailid", value); + this.OnPropertyChanged("QuoteDetailId"); + } + } + + /// + /// Enter the delivery date requested by the customer for the order product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("requestdeliveryby")] + public System.Nullable RequestDeliveryBy + { + get + { + return this.GetAttributeValue>("requestdeliveryby"); + } + set + { + this.OnPropertyChanging("RequestDeliveryBy"); + this.SetAttributeValue("requestdeliveryby", value); + this.OnPropertyChanged("RequestDeliveryBy"); + } + } + + /// + /// Unique identifier of the product specified in the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderdetailid")] + public System.Nullable SalesOrderDetailId + { + get + { + return this.GetAttributeValue>("salesorderdetailid"); + } + set + { + this.OnPropertyChanging("SalesOrderDetailId"); + this.SetAttributeValue("salesorderdetailid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + this.OnPropertyChanged("SalesOrderDetailId"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderdetailid")] + public override System.Guid Id + { + get + { + return base.Id; + } + set + { + this.SalesOrderDetailId = value; + } + } + + /// + /// Sales Order Detail Name. Added for 1:n referential relationship (internal purposes only) + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderdetailname")] + public string SalesOrderDetailName + { + get + { + return this.GetAttributeValue("salesorderdetailname"); + } + set + { + this.OnPropertyChanging("SalesOrderDetailName"); + this.SetAttributeValue("salesorderdetailname", value); + this.OnPropertyChanged("SalesOrderDetailName"); + } + } + + /// + /// Shows the order for the product. The ID is used to link product pricing and other details to the total amounts and other information on the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderid")] + public Microsoft.Xrm.Sdk.EntityReference SalesOrderId + { + get + { + return this.GetAttributeValue("salesorderid"); + } + set + { + this.OnPropertyChanging("SalesOrderId"); + this.SetAttributeValue("salesorderid", value); + this.OnPropertyChanged("SalesOrderId"); + } + } + + /// + /// Tells whether product pricing is locked for the order. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesorderispricelocked")] + public System.Nullable SalesOrderIsPriceLocked + { + get + { + return this.GetAttributeValue>("salesorderispricelocked"); + } + } + + /// + /// Choose the user responsible for the sale of the order product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("salesrepid")] + public Microsoft.Xrm.Sdk.EntityReference SalesRepId + { + get + { + return this.GetAttributeValue("salesrepid"); + } + set + { + this.OnPropertyChanging("SalesRepId"); + this.SetAttributeValue("salesrepid", value); + this.OnPropertyChanged("SalesRepId"); + } + } + + /// + /// Shows the ID of the data that maintains the sequence. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sequencenumber")] + public System.Nullable SequenceNumber + { + get + { + return this.GetAttributeValue>("sequencenumber"); + } + set + { + this.OnPropertyChanging("SequenceNumber"); + this.SetAttributeValue("sequencenumber", value); + this.OnPropertyChanged("SequenceNumber"); + } + } + + /// + /// Unique identifier of the shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_addressid")] + public System.Nullable ShipTo_AddressId + { + get + { + return this.GetAttributeValue>("shipto_addressid"); + } + set + { + this.OnPropertyChanging("ShipTo_AddressId"); + this.SetAttributeValue("shipto_addressid", value); + this.OnPropertyChanged("ShipTo_AddressId"); + } + } + + /// + /// Type the city for the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_city")] + public string ShipTo_City + { + get + { + return this.GetAttributeValue("shipto_city"); + } + set + { + this.OnPropertyChanging("ShipTo_City"); + this.SetAttributeValue("shipto_city", value); + this.OnPropertyChanged("ShipTo_City"); + } + } + + /// + /// Type the primary contact name at the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_contactname")] + public string ShipTo_ContactName + { + get + { + return this.GetAttributeValue("shipto_contactname"); + } + set + { + this.OnPropertyChanging("ShipTo_ContactName"); + this.SetAttributeValue("shipto_contactname", value); + this.OnPropertyChanged("ShipTo_ContactName"); + } + } + + /// + /// Type the country or region for the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_country")] + public string ShipTo_Country + { + get + { + return this.GetAttributeValue("shipto_country"); + } + set + { + this.OnPropertyChanging("ShipTo_Country"); + this.SetAttributeValue("shipto_country", value); + this.OnPropertyChanged("ShipTo_Country"); + } + } + + /// + /// Type the fax number for the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_fax")] + public string ShipTo_Fax + { + get + { + return this.GetAttributeValue("shipto_fax"); + } + set + { + this.OnPropertyChanging("ShipTo_Fax"); + this.SetAttributeValue("shipto_fax", value); + this.OnPropertyChanged("ShipTo_Fax"); + } + } + + /// + /// Select the freight terms to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_freighttermscode")] + public Microsoft.Xrm.Sdk.OptionSetValue ShipTo_FreightTermsCode + { + get + { + return this.GetAttributeValue("shipto_freighttermscode"); + } + set + { + this.OnPropertyChanging("ShipTo_FreightTermsCode"); + this.SetAttributeValue("shipto_freighttermscode", value); + this.OnPropertyChanged("ShipTo_FreightTermsCode"); + } + } + + /// + /// Select the freight terms to make sure shipping orders are processed correctly. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_freighttermscode")] + public virtual SalesOrderDetail_ShipTo_FreightTermsCode? ShipTo_FreightTermsCodeEnum + { + get + { + return ((SalesOrderDetail_ShipTo_FreightTermsCode?)(EntityOptionSetEnum.GetEnum(this, "shipto_freighttermscode"))); + } + set + { + this.OnPropertyChanging("ShipTo_FreightTermsCode"); + this.SetAttributeValue("shipto_freighttermscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("ShipTo_FreightTermsCode"); + } + } + + /// + /// Type the first line of the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_line1")] + public string ShipTo_Line1 + { + get + { + return this.GetAttributeValue("shipto_line1"); + } + set + { + this.OnPropertyChanging("ShipTo_Line1"); + this.SetAttributeValue("shipto_line1", value); + this.OnPropertyChanged("ShipTo_Line1"); + } + } + + /// + /// Type the second line of the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_line2")] + public string ShipTo_Line2 + { + get + { + return this.GetAttributeValue("shipto_line2"); + } + set + { + this.OnPropertyChanging("ShipTo_Line2"); + this.SetAttributeValue("shipto_line2", value); + this.OnPropertyChanged("ShipTo_Line2"); + } + } + + /// + /// Type the third line of the shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_line3")] + public string ShipTo_Line3 + { + get + { + return this.GetAttributeValue("shipto_line3"); + } + set + { + this.OnPropertyChanging("ShipTo_Line3"); + this.SetAttributeValue("shipto_line3", value); + this.OnPropertyChanged("ShipTo_Line3"); + } + } + + /// + /// Type a name for the customer's shipping address, such as "Headquarters" or "Field office", to identify the address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_name")] + public string ShipTo_Name + { + get + { + return this.GetAttributeValue("shipto_name"); + } + set + { + this.OnPropertyChanging("ShipTo_Name"); + this.SetAttributeValue("shipto_name", value); + this.OnPropertyChanged("ShipTo_Name"); + } + } + + /// + /// Type the ZIP Code or postal code for the shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_postalcode")] + public string ShipTo_PostalCode + { + get + { + return this.GetAttributeValue("shipto_postalcode"); + } + set + { + this.OnPropertyChanging("ShipTo_PostalCode"); + this.SetAttributeValue("shipto_postalcode", value); + this.OnPropertyChanged("ShipTo_PostalCode"); + } + } + + /// + /// Type the state or province for the shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_stateorprovince")] + public string ShipTo_StateOrProvince + { + get + { + return this.GetAttributeValue("shipto_stateorprovince"); + } + set + { + this.OnPropertyChanging("ShipTo_StateOrProvince"); + this.SetAttributeValue("shipto_stateorprovince", value); + this.OnPropertyChanged("ShipTo_StateOrProvince"); + } + } + + /// + /// Type the phone number for the customer's shipping address. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("shipto_telephone")] + public string ShipTo_Telephone + { + get + { + return this.GetAttributeValue("shipto_telephone"); + } + set + { + this.OnPropertyChanging("ShipTo_Telephone"); + this.SetAttributeValue("shipto_telephone", value); + this.OnPropertyChanged("ShipTo_Telephone"); + } + } + + /// + /// Skip the price calculation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("skippricecalculation")] + public Microsoft.Xrm.Sdk.OptionSetValue SkipPriceCalculation + { + get + { + return this.GetAttributeValue("skippricecalculation"); + } + set + { + this.OnPropertyChanging("SkipPriceCalculation"); + this.SetAttributeValue("skippricecalculation", value); + this.OnPropertyChanged("SkipPriceCalculation"); + } + } + + /// + /// Skip the price calculation + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("skippricecalculation")] + public virtual qooidetail_skippricecalculation? SkipPriceCalculationEnum + { + get + { + return ((qooidetail_skippricecalculation?)(EntityOptionSetEnum.GetEnum(this, "skippricecalculation"))); + } + set + { + this.OnPropertyChanging("SkipPriceCalculation"); + this.SetAttributeValue("skippricecalculation", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + this.OnPropertyChanged("SkipPriceCalculation"); + } + } + + /// + /// Type the tax amount for the order product. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tax")] + public Microsoft.Xrm.Sdk.Money Tax + { + get + { + return this.GetAttributeValue("tax"); + } + set + { + this.OnPropertyChanging("Tax"); + this.SetAttributeValue("tax", value); + this.OnPropertyChanged("Tax"); + } + } + + /// + /// Value of the Tax in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tax_base")] + public Microsoft.Xrm.Sdk.Money Tax_Base + { + get + { + return this.GetAttributeValue("tax_base"); + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + set + { + this.OnPropertyChanging("TimeZoneRuleVersionNumber"); + this.SetAttributeValue("timezoneruleversionnumber", value); + this.OnPropertyChanged("TimeZoneRuleVersionNumber"); + } + } + + /// + /// Choose the local currency for the record to make sure budgets are reported in the correct currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] + public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId + { + get + { + return this.GetAttributeValue("transactioncurrencyid"); + } + set + { + this.OnPropertyChanging("TransactionCurrencyId"); + this.SetAttributeValue("transactioncurrencyid", value); + this.OnPropertyChanged("TransactionCurrencyId"); + } + } + + /// + /// Choose the unit of measurement for the base unit quantity for this purchase, such as each or dozen. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("uomid")] + public Microsoft.Xrm.Sdk.EntityReference UoMId + { + get + { + return this.GetAttributeValue("uomid"); + } + set + { + this.OnPropertyChanging("UoMId"); + this.SetAttributeValue("uomid", value); + this.OnPropertyChanged("UoMId"); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + set + { + this.OnPropertyChanging("UTCConversionTimeZoneCode"); + this.SetAttributeValue("utcconversiontimezonecode", value); + this.OnPropertyChanged("UTCConversionTimeZoneCode"); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Shows the discount amount per unit if a specified volume is purchased. Configure volume discounts in the Product Catalog in the Settings area. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("volumediscountamount")] + public Microsoft.Xrm.Sdk.Money VolumeDiscountAmount + { + get + { + return this.GetAttributeValue("volumediscountamount"); + } + } + + /// + /// Value of the Volume Discount in base currency. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("volumediscountamount_base")] + public Microsoft.Xrm.Sdk.Money VolumeDiscountAmount_Base + { + get + { + return this.GetAttributeValue("volumediscountamount_base"); + } + } + + /// + /// Select whether the order product should be shipped to the specified address or held until the customer calls with further pick up or delivery instructions. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("willcall")] + public System.Nullable WillCall + { + get + { + return this.GetAttributeValue>("willcall"); + } + set + { + this.OnPropertyChanging("WillCall"); + this.SetAttributeValue("willcall", value); + this.OnPropertyChanged("WillCall"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + public SalesOrderDetail(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (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["salesorderdetailid"] = base.Id; + break; + case "salesorderdetailid": + 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; + } + } + } + } + + /// + /// Represents a source of entities bound to a CRM service. It tracks and manages changes made to the retrieved entities. + /// + public partial class DvServiceContext : Microsoft.Xrm.Sdk.Client.OrganizationServiceContext + { + + /// + /// Constructor. + /// + public DvServiceContext(Microsoft.Xrm.Sdk.IOrganizationService service) : + base(service) + { + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable AccountSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ContactSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DynamicPropertySet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DynamicPropertyAssociationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable DynamicPropertyInstanceSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ProductSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ProductAssociationSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ProductSubstituteSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable QuoteSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable QuoteCloseSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SalesOrderSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable SalesOrderDetailSet + { + get + { + return this.CreateQuery(); + } + } + } + + internal sealed class EntityOptionSetEnum + { + + 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; + } + } + + /// + /// Attribute to handle storing the OptionSet's Metadata. + /// + [System.AttributeUsageAttribute(System.AttributeTargets.Field)] + public sealed class OptionSetMetadataAttribute : System.Attribute + { + + /// + /// 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; } + + /// + /// 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. + public OptionSetMetadataAttribute(string name, int displayIndex, string color = null, string description = null, string externalValue = null) + { + this.Color = color; + this.Description = description; + this.ExternalValue = externalValue; + this.DisplayIndex = displayIndex; + this.Name = name; + } + } + + /// + /// 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!"); + } + } +} diff --git a/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/TestData/OptionSets.cs b/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/TestData/OptionSets.cs new file mode 100644 index 0000000..570bbc7 --- /dev/null +++ b/src/GeneralTools/DataverseClient/UnitTests/LivePackageTestsConsole/TestData/OptionSets.cs @@ -0,0 +1,1905 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CrmSdk +{ + + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_AccountCategoryCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Preferred Customer", 0)] + PreferredCustomer = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Standard", 1)] + Standard = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_AccountClassificationCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_AccountRatingCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_Address1_AddressTypeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Bill To", 0)] + BillTo = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Other", 3)] + Other = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Primary", 2)] + Primary = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Ship To", 1)] + ShipTo = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_Address1_FreightTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("FOB", 0)] + FOB = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("No Charge", 1)] + NoCharge = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_Address1_ShippingMethodCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Airborne", 0)] + Airborne = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("DHL", 1)] + DHL = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("FedEx", 2)] + FedEx = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Full Load", 5)] + FullLoad = 6, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Postal Mail", 4)] + PostalMail = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("UPS", 3)] + UPS = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Will Call", 6)] + WillCall = 7, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_Address2_AddressTypeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_Address2_FreightTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_Address2_ShippingMethodCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_BusinessTypeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_CustomerSizeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_CustomerTypeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Competitor", 0)] + Competitor = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Consultant", 1)] + Consultant = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Customer", 2)] + Customer = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Influencer", 5)] + Influencer = 6, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Investor", 3)] + Investor = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Other", 11)] + Other = 12, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Partner", 4)] + Partner = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Press", 6)] + Press = 7, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Prospect", 7)] + Prospect = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Reseller", 8)] + Reseller = 9, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Supplier", 9)] + Supplier = 10, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Vendor", 10)] + Vendor = 11, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_IndustryCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Accounting", 0)] + Accounting = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Agriculture and Non-petrol Natural Resource Extraction", 1)] + AgricultureandNonpetrolNaturalResourceExtraction = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Broadcasting Printing and Publishing", 2)] + BroadcastingPrintingandPublishing = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Brokers", 3)] + Brokers = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Building Supply Retail", 4)] + BuildingSupplyRetail = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Business Services", 5)] + BusinessServices = 6, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Consulting", 6)] + Consulting = 7, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Consumer Services", 7)] + ConsumerServices = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Design, Direction and Creative Management", 8)] + DesignDirectionandCreativeManagement = 9, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Distributors, Dispatchers and Processors", 9)] + DistributorsDispatchersandProcessors = 10, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Doctor\'s Offices and Clinics", 10)] + DoctorsOfficesandClinics = 11, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Durable Manufacturing", 11)] + DurableManufacturing = 12, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Eating and Drinking Places", 12)] + EatingandDrinkingPlaces = 13, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Entertainment Retail", 13)] + EntertainmentRetail = 14, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Equipment Rental and Leasing", 14)] + EquipmentRentalandLeasing = 15, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Financial", 15)] + Financial = 16, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Food and Tobacco Processing", 16)] + FoodandTobaccoProcessing = 17, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Inbound Capital Intensive Processing", 17)] + InboundCapitalIntensiveProcessing = 18, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Inbound Repair and Services", 18)] + InboundRepairandServices = 19, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Insurance", 19)] + Insurance = 20, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Legal Services", 20)] + LegalServices = 21, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Non-Durable Merchandise Retail", 21)] + NonDurableMerchandiseRetail = 22, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Outbound Consumer Service", 22)] + OutboundConsumerService = 23, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Petrochemical Extraction and Distribution", 23)] + PetrochemicalExtractionandDistribution = 24, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Service Retail", 24)] + ServiceRetail = 25, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("SIG Affiliations", 25)] + SIGAffiliations = 26, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Social Services", 26)] + SocialServices = 27, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Special Outbound Trade Contractors", 27)] + SpecialOutboundTradeContractors = 28, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Specialty Realty", 28)] + SpecialtyRealty = 29, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Transportation", 29)] + Transportation = 30, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Utility Creation and Distribution", 30)] + UtilityCreationandDistribution = 31, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Vehicle Retail", 31)] + VehicleRetail = 32, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Wholesale", 32)] + Wholesale = 33, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_msemr_AccountType + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Organization", 1, "#0000ff")] + Organization = 935000001, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Practice", 0, "#0000ff")] + Practice = 935000000, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_OwnershipCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Other", 3)] + Other = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Private", 1)] + Private = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Public", 0)] + Public = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Subsidiary", 2)] + Subsidiary = 3, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_PaymentTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("2% 10, Net 30", 1)] + _210Net30 = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Net 30", 0)] + Net30 = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Net 45", 2)] + Net45 = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Net 60", 3)] + Net60 = 4, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_PreferredAppointmentDayCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Friday", 5)] + Friday = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Monday", 1)] + Monday = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Saturday", 6)] + Saturday = 6, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Sunday", 0)] + Sunday = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Thursday", 4)] + Thursday = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Tuesday", 2)] + Tuesday = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Wednesday", 3)] + Wednesday = 3, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_PreferredAppointmentTimeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Afternoon", 1)] + Afternoon = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Evening", 2)] + Evening = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Morning", 0)] + Morning = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_PreferredContactMethodCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Any", 0)] + Any = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Email", 1)] + Email = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Fax", 3)] + Fax = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Mail", 4)] + Mail = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Phone", 2)] + Phone = 3, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_ShippingMethodCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_StatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Active", 0)] + Active = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Inactive", 1)] + Inactive = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Account_TerritoryCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum activitypointer_DeliveryPriorityCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("High", 2)] + High = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Low", 0)] + Low = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Normal", 1)] + Normal = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_AccountRoleCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Decision Maker", 0)] + DecisionMaker = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Employee", 1)] + Employee = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Influencer", 2)] + Influencer = 3, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_Address1_AddressTypeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Bill To", 0)] + BillTo = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Other", 3)] + Other = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Primary", 2)] + Primary = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Ship To", 1)] + ShipTo = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_Address1_FreightTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("FOB", 0)] + FOB = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("No Charge", 1)] + NoCharge = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_Address1_ShippingMethodCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Airborne", 0)] + Airborne = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("DHL", 1)] + DHL = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("FedEx", 2)] + FedEx = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Full Load", 5)] + FullLoad = 6, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Postal Mail", 4)] + PostalMail = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("UPS", 3)] + UPS = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Will Call", 6)] + WillCall = 7, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_Address2_AddressTypeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_Address2_FreightTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_Address2_ShippingMethodCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_Address3_AddressTypeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_Address3_FreightTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_Address3_ShippingMethodCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_CustomerSizeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_CustomerTypeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_EducationCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_FamilyStatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Divorced", 2)] + Divorced = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Married", 1)] + Married = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Single", 0)] + Single = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Widowed", 3)] + Widowed = 4, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_GenderCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Female", 1)] + Female = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Male", 0)] + Male = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_HasChildrenCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_LeadSourceCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_msdyn_orgchangestatus + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Ignore", 2, "#0000ff")] + Ignore = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("No Feedback", 0, "#0000ff")] + NoFeedback = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Not at Company", 1, "#0000ff")] + NotatCompany = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_msemr_ContactType + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Patient", 0, "#0000ff")] + Patient = 935000000, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Practitioner", 1, "#0000ff")] + Practitioner = 935000001, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Related Person", 2, "#0000ff")] + RelatedPerson = 935000002, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_PaymentTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("2% 10, Net 30", 1)] + _210Net30 = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Net 30", 0)] + Net30 = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Net 45", 2)] + Net45 = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Net 60", 3)] + Net60 = 4, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_PreferredAppointmentDayCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Friday", 5)] + Friday = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Monday", 1)] + Monday = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Saturday", 6)] + Saturday = 6, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Sunday", 0)] + Sunday = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Thursday", 4)] + Thursday = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Tuesday", 2)] + Tuesday = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Wednesday", 3)] + Wednesday = 3, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_PreferredAppointmentTimeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Afternoon", 1)] + Afternoon = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Evening", 2)] + Evening = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Morning", 0)] + Morning = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_PreferredContactMethodCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Any", 0)] + Any = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Email", 1)] + Email = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Fax", 3)] + Fax = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Mail", 4)] + Mail = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Phone", 2)] + Phone = 3, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_ShippingMethodCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_StatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Active", 0)] + Active = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Inactive", 1)] + Inactive = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Contact_TerritoryCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum DynamicProperty_DataType + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Decimal", 1)] + Decimal = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Floating Point Number", 2)] + FloatingPointNumber = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Option Set", 0)] + OptionSet = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Single Line Of Text", 3)] + SingleLineOfText = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Whole Number", 4)] + WholeNumber = 4, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum DynamicProperty_StatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Active", 0)] + Active = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Draft", 1)] + Draft = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Retired", 2)] + Retired = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum DynamicPropertyAssociation_AssociationStatus + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Active", 0)] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Deleted", 1)] + Deleted = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Draft", 2)] + Draft = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Draft Added", 3)] + DraftAdded = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Draft Deleted", 4)] + DraftDeleted = 4, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum DynamicPropertyAssociation_InheritanceState + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Inherited", 0)] + Inherited = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Overridden", 1)] + Overridden = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Owned", 2)] + Owned = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum msemr_nameuse + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Anonymus", 6, "#0000ff")] + Anonymus = 935000006, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Maiden", 4, "#0000ff")] + Maiden = 935000004, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Nick", 3, "#0000ff")] + Nick = 935000003, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Official", 1, "#0000ff")] + Official = 935000001, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Old", 5, "#0000ff")] + Old = 935000005, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Temp", 2, "#0000ff")] + Temp = 935000002, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Usual", 0, "#0000ff")] + Usual = 935000000, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum msemr_TelecomSystem + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Email", 1, "#0000ff")] + Email = 935000001, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Fax", 2, "#0000ff")] + Fax = 935000002, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Pager", 3, "#0000ff")] + Pager = 935000003, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Phone", 0, "#0000ff")] + Phone = 935000000, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Skype", 5, "#0000ff")] + Skype = 935000005, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("SMS", 4, "#0000ff")] + SMS = 935000004, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum msemr_telecomuse + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Home", 0, "#0000ff")] + Home = 935000000, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Mobile", 3, "#0000ff")] + Mobile = 935000003, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Old", 4, "#0000ff")] + Old = 935000004, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Temp", 2, "#0000ff")] + Temp = 935000002, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Work", 1, "#0000ff")] + Work = 935000001, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum msevtmgt_nooryes + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("No", 0, "#0000ff")] + No = 100000001, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Yes", 1, "#0000ff")] + Yes = 100000002, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum msgdpr_gdpr_Consent_option_set + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("(1) Consent", 0, "#0000ff")] + @__1Consent = 587030001, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("(2) Transactional", 1, "#0000ff")] + @__2Transactional = 587030002, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("(3) Subscriptions", 2, "#0000ff")] + @__3Subscriptions = 587030003, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("(4) Marketing", 3, "#0000ff")] + @__4Marketing = 587030004, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("(5) Profiling", 4, "#0000ff")] + @__5Profiling = 587030005, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Product_ProductStructure + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Product", 0)] + Product = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Product Bundle", 2)] + ProductBundle = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Product Family", 1)] + ProductFamily = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Product_ProductTypeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Flat Fees", 3)] + FlatFees = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Miscellaneous Charges", 1)] + MiscellaneousCharges = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Sales Inventory", 0)] + SalesInventory = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Services", 2)] + Services = 3, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Product_StatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Active", 0)] + Active = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Draft", 2)] + Draft = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Retired", 1)] + Retired = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Under Revision", 3)] + UnderRevision = 3, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum ProductAssociation_ProductIsRequired + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Optional", 0)] + Optional = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Required", 1)] + Required = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum ProductAssociation_PropertyCustomizationStatus + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Available", 1)] + Available = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Not Available", 0)] + NotAvailable = 0, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum ProductAssociation_StatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Active", 0)] + Active = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Draft", 2)] + Draft = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("DraftActive", 3)] + DraftActive = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Inactive", 1)] + Inactive = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum ProductSubstitute_Direction + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Bi-Directional", 1)] + BiDirectional = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Uni-Directional", 0)] + UniDirectional = 0, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum ProductSubstitute_SalesRelationshipType + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Accessory", 2)] + Accessory = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Cross-sell", 1)] + Crosssell = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Substitute", 3)] + Substitute = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Up-sell", 0)] + Upsell = 0, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum ProductSubstitute_StatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Active", 0)] + Active = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Inactive", 1)] + Inactive = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Qooi_PricingErrorCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Base Currency Attribute Overflow", 36)] + BaseCurrencyAttributeOverflow = 36, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Base Currency Attribute Underflow", 37)] + BaseCurrencyAttributeUnderflow = 37, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Detail Error", 1)] + DetailError = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Discount Type Invalid State", 27)] + DiscountTypeInvalidState = 27, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Inactive Discount Type", 33)] + InactiveDiscountType = 33, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Inactive Price Level", 3)] + InactivePriceLevel = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Current Cost", 20)] + InvalidCurrentCost = 20, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Discount", 28)] + InvalidDiscount = 28, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Discount Type", 26)] + InvalidDiscountType = 26, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Price", 19)] + InvalidPrice = 19, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Price Level Amount", 17)] + InvalidPriceLevelAmount = 17, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Price Level Currency", 34)] + InvalidPriceLevelCurrency = 34, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Price Level Percentage", 18)] + InvalidPriceLevelPercentage = 18, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Pricing Code", 9)] + InvalidPricingCode = 9, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Pricing Precision", 30)] + InvalidPricingPrecision = 30, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Product", 7)] + InvalidProduct = 7, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Quantity", 29)] + InvalidQuantity = 29, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Rounding Amount", 24)] + InvalidRoundingAmount = 24, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Rounding Option", 23)] + InvalidRoundingOption = 23, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Rounding Policy", 22)] + InvalidRoundingPolicy = 22, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invalid Standard Cost", 21)] + InvalidStandardCost = 21, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Missing Current Cost", 15)] + MissingCurrentCost = 15, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Missing Price", 14)] + MissingPrice = 14, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Missing Price Level", 2)] + MissingPriceLevel = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Missing Price Level Amount", 12)] + MissingPriceLevelAmount = 12, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Missing Price Level Percentage", 13)] + MissingPriceLevelPercentage = 13, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Missing Pricing Code", 8)] + MissingPricingCode = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Missing Product", 6)] + MissingProduct = 6, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Missing Product Default UOM", 31)] + MissingProductDefaultUOM = 31, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Missing Product UOM Schedule ", 32)] + MissingProductUOMSchedule = 32, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Missing Quantity", 4)] + MissingQuantity = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Missing Standard Cost", 16)] + MissingStandardCost = 16, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Missing Unit Price", 5)] + MissingUnitPrice = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Missing UOM", 10)] + MissingUOM = 10, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("None", 0)] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Price Attribute Out Of Range", 35)] + PriceAttributeOutOfRange = 35, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Price Calculation Error", 25)] + PriceCalculationError = 25, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Product Not In Price Level", 11)] + ProductNotInPriceLevel = 11, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Transaction currency is not set for the product price list item", 38)] + Transactioncurrencyisnotsetfortheproductpricelistitem = 38, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum qooi_skippricecalculation + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("DoPriceCalcAlways", 0)] + DoPriceCalcAlways = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("SkipPriceCalcOnRetrieve", 1)] + SkipPriceCalcOnRetrieve = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum qooidetail_skippricecalculation + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("DoPriceCalcAlways", 0)] + DoPriceCalcAlways = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("SkipPriceCalcOnCreate", 1)] + SkipPriceCalcOnCreate = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("SkipPriceCalcOnUpdate", 2)] + SkipPriceCalcOnUpdate = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("SkipPriceCalcOnUpSert", 3)] + SkipPriceCalcOnUpSert = 3, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum QooiProduct_ProductType + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Bundle", 1)] + Bundle = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Optional Bundle Product", 3)] + OptionalBundleProduct = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Product", 0)] + Product = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Project-based Service", 4)] + ProjectbasedService = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Required Bundle Product", 2)] + RequiredBundleProduct = 3, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum QooiProduct_PropertiesConfigurationStatus + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Edit", 0)] + Edit = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Not Configured", 2)] + NotConfigured = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Rectify", 1)] + Rectify = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Quote_FreightTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("FOB", 0)] + FOB = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("No Charge", 1)] + NoCharge = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Quote_PaymentTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("2% 10, Net 30", 1)] + _210Net30 = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Net 30", 0)] + Net30 = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Net 45", 2)] + Net45 = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Net 60", 3)] + Net60 = 4, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Quote_ShippingMethodCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Airborne", 0)] + Airborne = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("DHL", 1)] + DHL = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("FedEx", 2)] + FedEx = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Full Load", 5)] + FullLoad = 6, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Postal Mail", 4)] + PostalMail = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("UPS", 3)] + UPS = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Will Call", 6)] + WillCall = 7, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum Quote_ShipTo_FreightTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum QuoteClose_InstanceTypeCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Not Recurring", 0)] + NotRecurring = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Recurring Exception", 3)] + RecurringException = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Recurring Future Exception", 4)] + RecurringFutureException = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Recurring Instance", 2)] + RecurringInstance = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Recurring Master", 1)] + RecurringMaster = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum QuoteClose_PriorityCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("High", 2)] + High = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Low", 0)] + Low = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Normal", 1)] + Normal = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum QuoteClose_StatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Canceled", 2)] + Canceled = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Completed", 1)] + Completed = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Open", 0)] + Open = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum SalesOrder_FreightTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("FOB", 0)] + FOB = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("No Charge", 1)] + NoCharge = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum SalesOrder_PaymentTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("2% 10, Net 30", 1)] + _210Net30 = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Net 30", 0)] + Net30 = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Net 45", 2)] + Net45 = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Net 60", 3)] + Net60 = 4, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum SalesOrder_PriorityCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum SalesOrder_ShippingMethodCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Airborne", 0)] + Airborne = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("DHL", 1)] + DHL = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("FedEx", 2)] + FedEx = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Full Load", 5)] + FullLoad = 6, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Postal Mail", 4)] + PostalMail = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("UPS", 3)] + UPS = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Will Call", 6)] + WillCall = 7, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum SalesOrder_ShipTo_FreightTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Default Value", 0)] + DefaultValue = 1, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum SalesOrder_StatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Complete", 4)] + Complete = 100001, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("In Progress", 0)] + InProgress = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Invoiced", 6)] + Invoiced = 100003, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("New", 2)] + New = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("No Money", 1)] + NoMoney = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Partial", 5)] + Partial = 100002, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Pending", 3)] + Pending = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum SalesOrderDetail_ShipTo_FreightTermsCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("FOB", 0)] + FOB = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("No Charge", 1)] + NoCharge = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum SocialProfile_Community + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Cortana", 0, "#0000ff")] + Cortana = 5, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Direct Line", 1, "#0000ff")] + DirectLine = 6, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Direct Line Speech", 3, "#0000ff")] + DirectLineSpeech = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Email", 4, "#0000ff")] + Email = 9, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Facebook", 13, "", "Facebook item.")] + Facebook = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("GroupMe", 5, "#0000ff")] + GroupMe = 10, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Kik", 6, "#0000ff")] + Kik = 11, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Line", 11, "#0000ff")] + Line = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Microsoft Teams", 2, "#0000ff")] + MicrosoftTeams = 7, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Other", 15, "", "Other default")] + Other = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Skype", 8, "#0000ff")] + Skype = 13, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Slack", 9, "#0000ff")] + Slack = 14, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Telegram", 7, "#0000ff")] + Telegram = 12, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Twitter", 14, "", "Twitter.")] + Twitter = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Wechat", 12, "#0000ff")] + Wechat = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("WhatsApp", 10, "#0000ff")] + WhatsApp = 15, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum appaction_ClientType + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Browser", 0, "#0000ff")] + Browser = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Mobile", 1, "#0000ff")] + Mobile = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Mail App", 2, "#0000ff")] + MailApp = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum msdyn_oc_daysofweek + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Sun", 0, "#0000ff", "Sunday")] + Sun = 192350000, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Mon", 1, "#0000ff", "Monday")] + Mon = 192350001, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Tue", 2, "#0000ff", "Tuesday")] + Tue = 192350002, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Wed", 3, "#0000ff", "Wednesday")] + Wed = 192350003, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Thu", 4, "#0000ff", "Thursday")] + Thu = 192350004, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Fri", 5, "#0000ff", "Friday")] + Fri = 192350005, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Sat", 6, "#0000ff", "Saturday")] + Sat = 192350006, + } + + [System.Runtime.Serialization.DataContractAttribute()] + public enum msdyn_msdyn_requirementrelationship_msdyn_resourcegroupings + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Organizational Unit", 0, "#0000ff")] + OrganizationalUnit = 192350000, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Related Resource Pools", 1, "#0000ff")] + RelatedResourcePools = 192350001, + + [System.Runtime.Serialization.EnumMemberAttribute()] + [OptionSetMetadataAttribute("Location", 2, "#0000ff")] + Location = 192350002, + } +} diff --git a/src/GeneralTools/DataverseClient/WebResourceUtility/Microsoft.PowerPlatform.Dataverse.WebResourceUtility.csproj b/src/GeneralTools/DataverseClient/WebResourceUtility/Microsoft.PowerPlatform.Dataverse.WebResourceUtility.csproj index 1eb7ff9..22dcb7f 100644 --- a/src/GeneralTools/DataverseClient/WebResourceUtility/Microsoft.PowerPlatform.Dataverse.WebResourceUtility.csproj +++ b/src/GeneralTools/DataverseClient/WebResourceUtility/Microsoft.PowerPlatform.Dataverse.WebResourceUtility.csproj @@ -1,6 +1,6 @@ - + - DataverseConnectControl + DataverseClient Properties Microsoft.PowerPlatform.Dataverse.WebResourceUtility Microsoft.PowerPlatform.Dataverse.WebResourceUtility diff --git a/src/nuspecs/Microsoft.Dynamics.Sdk.Messages.ReleaseNotes.txt b/src/nuspecs/Microsoft.Dynamics.Sdk.Messages.ReleaseNotes.txt index 7367574..c8413c8 100644 --- a/src/nuspecs/Microsoft.Dynamics.Sdk.Messages.ReleaseNotes.txt +++ b/src/nuspecs/Microsoft.Dynamics.Sdk.Messages.ReleaseNotes.txt @@ -6,6 +6,9 @@ Notice: https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages?view=dynamics-general-ce-9 ++CURRENTRELEASEID++ + Updated Min dependency to DV ServiceClient 0.5.10 + +0.5.10: Updated Newtonsoft.Json to v11.0.2 to match server. 0.4.12: diff --git a/src/nuspecs/Microsoft.Dynamics.Sdk.Messages.nuspec b/src/nuspecs/Microsoft.Dynamics.Sdk.Messages.nuspec index d7c9ce9..0f7ebf3 100644 --- a/src/nuspecs/Microsoft.Dynamics.Sdk.Messages.nuspec +++ b/src/nuspecs/Microsoft.Dynamics.Sdk.Messages.nuspec @@ -15,19 +15,19 @@ Dynamics CommonDataService CDS PowerApps PowerPlatform - + - + - + - + - + diff --git a/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.Dynamics.ReleaseNotes.txt b/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.Dynamics.ReleaseNotes.txt index 88a1340..509614b 100644 --- a/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.Dynamics.ReleaseNotes.txt +++ b/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.Dynamics.ReleaseNotes.txt @@ -3,6 +3,9 @@ Notice: This package is intended to work with .net full framework 4.6.2, 4.7.2 and 4.8, .net core 3.0 and 3.1 ++CURRENTRELEASEID++ + updated min dependency to DV ServiceClient 0.5.10 + +0.5.10: Updated Newtonsoft.Json to v11.0.2 to match server. 0.4.12: diff --git a/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.Dynamics.nuspec b/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.Dynamics.nuspec index f8b347b..1782f12 100644 --- a/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.Dynamics.nuspec +++ b/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.Dynamics.nuspec @@ -15,19 +15,19 @@ Dynamics CommonDataService CDS PowerApps PowerPlatform CdsServiceClient Dataverse - + - + - + - + - + diff --git a/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.ReleaseNotes.txt b/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.ReleaseNotes.txt index d2edf8b..748f8e7 100644 --- a/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.ReleaseNotes.txt +++ b/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.ReleaseNotes.txt @@ -8,6 +8,13 @@ Notice: Note: that only OAuth, Certificate, ClientSecret Authentication types are supported at this time. ++CURRENTRELEASEID++ + Accepted fix requested here: https://github.com/microsoft/PowerPlatform-DataverseServiceClient/issues/205 + fixing delete by alternate key request in client. + Fixed dependency issue for System.Security.Premisions (git #203) + Refactored AuthorityResolver to discover AAD authentication authorities to allow for direct access by other clients. + + +0.5.10: Added new property "RecommendedDegreesOfParallelism". This property will report the recommended number of threads for communicating with Dataverse. diff --git a/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.nuspec b/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.nuspec index 4877577..302a365 100644 --- a/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.nuspec +++ b/src/nuspecs/Microsoft.PowerPlatform.Dataverse.Client.nuspec @@ -58,10 +58,10 @@ - - - - + + + + @@ -88,10 +88,10 @@ - - - - + + + +